Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

use $primary for $blue10 everywhere, fix dropPlacement is blue10 too

Oleg Isonen8de1be1515a5
diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx
index b1c9f279f1..ac94be63fa 100644
--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/unit-select.tsx
@@ -87,7 +87,7 @@ const StyledTrigger = styled(SelectPrimitive.SelectTrigger, {
backgroundColor: "$muted",
},
"&:focus": {
- backgroundColor: "$blue10",
+ backgroundColor: "$primary",
color: "$loContrast",
},
});
diff --git a/apps/designer/app/designer/shared/fonts-manager/list.tsx b/apps/designer/app/designer/shared/fonts-manager/list.tsx
index d136ca3ef7..67b3b87ca2 100644
--- a/apps/designer/app/designer/shared/fonts-manager/list.tsx
+++ b/apps/designer/app/designer/shared/fonts-manager/list.tsx
@@ -27,7 +27,8 @@ const ListboxItemBase = styled("li", {
listStyle: "none",
borderRadius: "$1",
"&[data-highlighted], &[aria-selected=true]": {
- boxShadow: "0px 0px 0px 2px $colors$blue10, 0px 0px 0px 2px $colors$blue10",
+ boxShadow:
+ "0px 0px 0px 2px $colors$primary, 0px 0px 0px 2px $colors$primary",
[itemMenuVars.visibility]: "visible",
},
"&[disabled]": {
diff --git a/packages/design-system/src/components/button.tsx b/packages/design-system/src/components/button.tsx
index 3bdf8b3900..42e17046b0 100644
--- a/packages/design-system/src/components/button.tsx
+++ b/packages/design-system/src/components/button.tsx
@@ -81,13 +81,13 @@ export const Button = styled("button", {
},
},
blue: {
- backgroundColor: "$blue10",
+ backgroundColor: "$primary",
color: "white",
"@hover": {
"&:hover": {
backgroundColor: "$loContrast",
- color: "$blue10",
- boxShadow: "inset 0 0 0 1.5px $colors$blue10",
+ color: "$primary",
+ boxShadow: "inset 0 0 0 1.5px $colors$primary",
},
},
"&:active": {
@@ -270,7 +270,7 @@ export const Button = styled("button", {
},
"&:focus": {
boxShadow:
- "0px 0px 0px 2px $colors$blue10, 0px 0px 0px 2px $colors$blue10",
+ "0px 0px 0px 2px $colors$primary, 0px 0px 0px 2px $colors$primary",
},
'&[data-state="open"]': {
backgroundColor: "$blueA4",
diff --git a/packages/design-system/src/components/icon-button-with-menu.tsx b/packages/design-system/src/components/icon-button-with-menu.tsx
index a5c1c254a8..2567b0cb0d 100644
--- a/packages/design-system/src/components/icon-button-with-menu.tsx
+++ b/packages/design-system/src/components/icon-button-with-menu.tsx
@@ -31,7 +31,7 @@ const itemStyles = {
userSelect: "none",
gap: "$space$2",
"&[data-highlighted]": {
- background: "$colors$blue10",
+ background: "$colors$primary",
color: "$colors$blue1",
"& *": { fill: "$colors$blue1" },
},
diff --git a/packages/design-system/src/components/icon-button.tsx b/packages/design-system/src/components/icon-button.tsx
index ab9a1ee40c..415703c999 100644
--- a/packages/design-system/src/components/icon-button.tsx
+++ b/packages/design-system/src/components/icon-button.tsx
@@ -31,7 +31,8 @@ export const IconButton = styled("button", {
backgroundColor: "$muted",
outline: "none",
border: "2px solid white",
- boxShadow: "0px 0px 0px 2px $colors$blue10, 0px 0px 0px 2px $colors$blue10",
+ boxShadow:
+ "0px 0px 0px 2px $colors$primary, 0px 0px 0px 2px $colors$primary",
},
"&:disabled": {
pointerEvents: "none",
@@ -65,7 +66,7 @@ export const IconButton = styled("button", {
state: {
active: {
color: "$loContrast",
- backgroundColor: "$blue10",
+ backgroundColor: "$primary",
},
},
},
diff --git a/packages/design-system/src/components/menu.tsx b/packages/design-system/src/components/menu.tsx
index f0f958f75c..49b949b99e 100644
--- a/packages/design-system/src/components/menu.tsx
+++ b/packages/design-system/src/components/menu.tsx
@@ -25,7 +25,7 @@ export const itemCss = css(baseItemCss, {
color: "$hiContrast",
"&:focus, &[data-found], &[aria-selected=true]": {
outline: "none",
- backgroundColor: "$blue10",
+ backgroundColor: "$primary",
color: "white",
},
"&[data-disabled], &[aria-disabled]": {
diff --git a/packages/design-system/src/components/primitives/dnd/placement-indicator.tsx b/packages/design-system/src/components/primitives/dnd/placement-indicator.tsx
index 43b51fe45a..7aa65021c9 100644
--- a/packages/design-system/src/components/primitives/dnd/placement-indicator.tsx
+++ b/packages/design-system/src/components/primitives/dnd/placement-indicator.tsx
@@ -4,7 +4,7 @@ import { type Placement } from "./geometry-utils";
const placementStyle = {
boxSizing: "content-box",
position: "absolute",
- background: "$dropPlacement",
+ background: "$primary",
pointerEvents: "none",
};
diff --git a/packages/design-system/src/components/select.tsx b/packages/design-system/src/components/select.tsx
index 15122d5c4c..e1ef6d5bc5 100644
--- a/packages/design-system/src/components/select.tsx
+++ b/packages/design-system/src/components/select.tsx
@@ -82,7 +82,7 @@ const StyledItem = styled(SelectPrimitive.Item, {
},
"&:focus": {
- backgroundColor: "$blue10",
+ backgroundColor: "$primary",
color: "white",
},
});
diff --git a/packages/design-system/src/components/tree/placement-indicator.tsx b/packages/design-system/src/components/tree/placement-indicator.tsx
index de38e5d226..e542874a8d 100644
--- a/packages/design-system/src/components/tree/placement-indicator.tsx
+++ b/packages/design-system/src/components/tree/placement-indicator.tsx
@@ -23,7 +23,7 @@ const Circle = styled(Box, {
width: CIRCLE_SIZE,
height: CIRCLE_SIZE,
position: "absolute",
- border: "solid $dropPlacement",
+ border: "solid $primary",
borderWidth: 2,
borderRadius: "50%",
pointerEvents: "none",
@@ -32,7 +32,7 @@ const Circle = styled(Box, {
const Line = styled(Box, {
boxSizing: "content-box",
position: "absolute",
- background: "$dropPlacement",
+ background: "$primary",
pointerEvents: "none",
outline: "solid $loContrast",
outlineWidth: OUTLINE_WIDTH,
diff --git a/packages/design-system/src/components/tree/tree-node.tsx b/packages/design-system/src/components/tree/tree-node.tsx
index ecd373bf68..9631881a9f 100644
--- a/packages/design-system/src/components/tree/tree-node.tsx
+++ b/packages/design-system/src/components/tree/tree-node.tsx
@@ -104,7 +104,7 @@ const hoverStyle = {
left: 2,
right: 2,
height: ITEM_HEIGHT,
- border: "solid $blue10",
+ border: "solid $primary",
borderWidth: 2,
borderRadius: "$2",
pointerEvents: "none",
@@ -117,7 +117,7 @@ const ItemWrapper = styled(Flex, {
position: "relative",
variants: {
isSelected: {
- true: { color: "$loContrast", bc: "$blue10" },
+ true: { color: "$loContrast", bc: "$primary" },
},
parentIsSelected: {
true: { bc: "$blue4" },
diff --git a/packages/design-system/src/stitches.config.ts b/packages/design-system/src/stitches.config.ts
index aa5d860e37..614df53171 100644
--- a/packages/design-system/src/stitches.config.ts
+++ b/packages/design-system/src/stitches.config.ts
@@ -197,7 +197,7 @@ const {
loContrast: "$slate1",
hint: "$slate9",
muted: "$slate6",
- primary: "$blue12",
+ primary: "$blue10",
canvas: "hsl(0 0% 93%)",
panel: "white",
panelOutline: "hsl(0deg 0% 0% / 10%)",
@@ -206,7 +206,6 @@ const {
shadowDark: "hsl(206 22% 7% / 20%)",
background: "$slate1",
text: "$slate12",
- dropPlacement: "$blue9",
},
fonts: {
sans: "Inter, -apple-system, system-ui, sans-serif",
@@ -482,7 +481,7 @@ export const darkTheme = createTheme({
loContrast: "hsl(0 0% 17%)",
hint: "$slate9",
muted: "$slate8",
- primary: "$blue9",
+ primary: "$blue10",
canvas: "hsl(0 0% 15%)",
panel: "$slate3",
panelOutline: "hsl(0deg 0% 100% / 10%)",
@@ -491,6 +490,5 @@ export const darkTheme = createTheme({
shadowDark: "hsl(206 22% 7% / 20%)",
background: "$slate12",
text: "$slate1",
- dropPlacement: "$blue9",
},
});