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.

revert color changes

Oleg Isonenc1523a7294bf
diff --git a/apps/designer/app/designer/designer.tsx b/apps/designer/app/designer/designer.tsx
index f83e56ef82..e69252688c 100644
--- a/apps/designer/app/designer/designer.tsx
+++ b/apps/designer/app/designer/designer.tsx
@@ -244,7 +244,7 @@ const NavigatorPanel = ({ publish, isPreviewMode }: NavigatorPanelProps) => {
<SidePanel gridArea="navigator" isPreviewMode={isPreviewMode}>
<Box
css={{
- borderRight: "1px solid $muted",
+ borderRight: "1px solid $slate7",
width: PANEL_WIDTH,
height: "100%",
}}
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx b/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx
index 377b879768..90f966767b 100644
--- a/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx
@@ -6,7 +6,7 @@ const Thumb = styled(Flex, {
px: "$1",
width: 72,
height: 72,
- border: "1px solid $muted",
+ border: "1px solid $slate6",
userSelect: "none",
color: "$hiContrast",
cursor: "grab",
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx
index ccae3e1202..44b7f6aa1f 100644
--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx
@@ -49,7 +49,7 @@ export const SettingsPanel = ({
flexGrow: 1,
width: 424,
background: "$loContrast",
- borderRight: "1px solid $muted",
+ borderRight: "1px solid $slate7",
position: "relative",
}}
>
diff --git a/apps/designer/app/designer/features/style-panel/controls/select/select-control.tsx b/apps/designer/app/designer/features/style-panel/controls/select/select-control.tsx
index 8ed380e786..b09942843e 100644
--- a/apps/designer/app/designer/features/style-panel/controls/select/select-control.tsx
+++ b/apps/designer/app/designer/features/style-panel/controls/select/select-control.tsx
@@ -29,7 +29,7 @@ export const SelectControl = ({
gap: "calc($sizes$1 / 2)",
paddingLeft: "calc($sizes$4 / 2)",
height: "calc($sizes$5 + $sizes$1)",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
textTransform: "capitalize",
fontWeight: "inherit",
"&:hover": { background: "none" },
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 ac94be63fa..dc2f8aad55 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
@@ -84,10 +84,10 @@ const StyledTrigger = styled(SelectPrimitive.SelectTrigger, {
alignItems: "center",
color: "$hiContrast",
"&:hover": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
},
"&:focus": {
- backgroundColor: "$primary",
+ backgroundColor: "$blue10",
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 622d54a07e..897caf6ff6 100644
--- a/apps/designer/app/designer/shared/fonts-manager/list.tsx
+++ b/apps/designer/app/designer/shared/fonts-manager/list.tsx
@@ -27,8 +27,7 @@ const ListboxItemBase = styled("li", {
listStyle: "none",
borderRadius: "$1",
"&[data-highlighted], &[aria-selected=true]": {
- boxShadow:
- "0px 0px 0px 2px $colors$primary, 0px 0px 0px 2px $colors$primary",
+ boxShadow: "0px 0px 0px 2px $colors$blue10, 0px 0px 0px 2px $colors$blue10",
...getItemMenuVars("visible"),
},
"&[disabled]": {
diff --git a/packages/design-system/src/components/accordion.tsx b/packages/design-system/src/components/accordion.tsx
index 6236f398f9..7f6b0e754f 100644
--- a/packages/design-system/src/components/accordion.tsx
+++ b/packages/design-system/src/components/accordion.tsx
@@ -25,10 +25,10 @@ export const Accordion = React.forwardRef<
Accordion.displayName = "Accordion";
const StyledItem = styled(AccordionPrimitive.Item, {
- borderTop: "1px solid $colors$muted",
+ borderTop: "1px solid $colors$slate6",
"&:last-of-type": {
- borderBottom: "1px solid $colors$muted",
+ borderBottom: "1px solid $colors$slate6",
},
});
diff --git a/packages/design-system/src/components/alert.tsx b/packages/design-system/src/components/alert.tsx
index e2acb2c869..b1fa34f3d8 100644
--- a/packages/design-system/src/components/alert.tsx
+++ b/packages/design-system/src/components/alert.tsx
@@ -22,11 +22,11 @@ export const Alert = styled("div", {
variant: {
loContrast: {
backgroundColor: "$loContrast",
- borderColor: "$muted",
+ borderColor: "$slate6",
},
gray: {
backgroundColor: "$slate2",
- borderColor: "$muted",
+ borderColor: "$slate6",
},
blue: {
backgroundColor: "$blue2",
diff --git a/packages/design-system/src/components/app-bar.tsx b/packages/design-system/src/components/app-bar.tsx
index b0c5c6b3c8..473a639f88 100644
--- a/packages/design-system/src/components/app-bar.tsx
+++ b/packages/design-system/src/components/app-bar.tsx
@@ -72,7 +72,7 @@ export const AppBar = styled("div", {
border: "true",
color: "plain",
css: {
- borderColor: "$muted",
+ borderColor: "$slate6",
},
},
{
@@ -86,7 +86,7 @@ export const AppBar = styled("div", {
border: "true",
color: "loContrast",
css: {
- borderColor: "$muted",
+ borderColor: "$slate6",
},
},
],
diff --git a/packages/design-system/src/components/avatar.tsx b/packages/design-system/src/components/avatar.tsx
index 1c4a2587c7..2f39c8c1ce 100644
--- a/packages/design-system/src/components/avatar.tsx
+++ b/packages/design-system/src/components/avatar.tsx
@@ -67,7 +67,7 @@ const StyledAvatar = styled(AvatarPrimitive.Root, {
color: "$loContrast",
},
gray: {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
},
tomato: {
backgroundColor: "$tomato5",
diff --git a/packages/design-system/src/components/banner.tsx b/packages/design-system/src/components/banner.tsx
index 7228008a1e..3a41eb7469 100644
--- a/packages/design-system/src/components/banner.tsx
+++ b/packages/design-system/src/components/banner.tsx
@@ -55,7 +55,7 @@ export const Banner = styled("div", {
border: "true",
variant: "gray",
css: {
- borderColor: "$muted",
+ borderColor: "$slate6",
},
},
{
@@ -69,7 +69,7 @@ export const Banner = styled("div", {
border: "true",
variant: "loContrast",
css: {
- borderColor: "$muted",
+ borderColor: "$slate6",
},
},
],
diff --git a/packages/design-system/src/components/button.tsx b/packages/design-system/src/components/button.tsx
index 42e17046b0..ade004b281 100644
--- a/packages/design-system/src/components/button.tsx
+++ b/packages/design-system/src/components/button.tsx
@@ -32,7 +32,7 @@ export const Button = styled("button", {
"&:disabled": {
backgroundColor: "$slate2",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
color: "$slate8",
pointerEvents: "none",
},
@@ -61,7 +61,7 @@ export const Button = styled("button", {
variant: {
gray: {
backgroundColor: "$loContrast",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
color: "$hiContrast",
"@hover": {
"&:hover": {
@@ -81,13 +81,13 @@ export const Button = styled("button", {
},
},
blue: {
- backgroundColor: "$primary",
+ backgroundColor: "$blue10",
color: "white",
"@hover": {
"&:hover": {
backgroundColor: "$loContrast",
- color: "$primary",
- boxShadow: "inset 0 0 0 1.5px $colors$primary",
+ color: "$blue10",
+ boxShadow: "inset 0 0 0 1.5px $colors$blue10",
},
},
"&:active": {
@@ -191,12 +191,12 @@ export const Button = styled("button", {
color: "$slate11",
"@hover": {
"&:hover": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
boxShadow: "inset 0 0 0 1px $colors$slate8",
},
},
"&:active": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
},
"&:focus": {
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
@@ -209,12 +209,12 @@ export const Button = styled("button", {
pointerEvents: "none",
"@hover": {
"&:hover": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
boxShadow: "inset 0 0 0 1px $colors$slate8",
},
},
"&:active": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
},
"&:focus": {
boxShadow: "inset 0 0 0 1px $colors$slate8",
@@ -270,7 +270,7 @@ export const Button = styled("button", {
},
"&:focus": {
boxShadow:
- "0px 0px 0px 2px $colors$primary, 0px 0px 0px 2px $colors$primary",
+ "0px 0px 0px 2px $colors$blue10, 0px 0px 0px 2px $colors$blue10",
},
'&[data-state="open"]': {
backgroundColor: "$blueA4",
diff --git a/packages/design-system/src/components/checkbox.tsx b/packages/design-system/src/components/checkbox.tsx
index 405639c4fc..d44cf6f4ee 100644
--- a/packages/design-system/src/components/checkbox.tsx
+++ b/packages/design-system/src/components/checkbox.tsx
@@ -25,7 +25,7 @@ const StyledCheckbox = styled(CheckboxPrimitive.Root, {
WebkitTapHighlightColor: "rgba(0,0,0,0)",
color: "$hiContrast",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
overflow: "hidden",
"@hover": {
"&:hover": {
diff --git a/packages/design-system/src/components/control-group.tsx b/packages/design-system/src/components/control-group.tsx
index fd4cdb40a1..5d5bcef7d7 100644
--- a/packages/design-system/src/components/control-group.tsx
+++ b/packages/design-system/src/components/control-group.tsx
@@ -13,7 +13,7 @@ export const ControlGroup = styled("div", {
[`& ${Button}`]: {
borderRadius: 0,
boxShadow:
- "inset 0 1px $colors$muted, inset -1px 0 $colors$muted, inset 0 -1px $colors$muted",
+ "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
"&:hover": {
boxShadow:
"-1px 0 $colors$slate8, inset 0 1px $colors$slate8, inset -1px 0 $colors$slate8, inset 0 -1px $colors$slate8",
@@ -25,7 +25,7 @@ export const ControlGroup = styled("div", {
"&:first-child": {
borderTopLeftRadius: "$1",
borderBottomLeftRadius: "$1",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
"&:hover": {
boxShadow: "inset 0 0 0 1px $colors$slate8",
},
@@ -37,7 +37,7 @@ export const ControlGroup = styled("div", {
borderTopRightRadius: "$1",
borderBottomRightRadius: "$1",
boxShadow:
- "inset 0 1px $colors$muted, inset -1px 0 $colors$muted, inset 0 -1px $colors$muted",
+ "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
"&:focus": {
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
},
@@ -46,7 +46,7 @@ export const ControlGroup = styled("div", {
[`& ${TextField}`]: {
borderRadius: 0,
boxShadow:
- "inset 0 1px $colors$muted, inset -1px 0 $colors$muted, inset 0 -1px $colors$muted",
+ "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
"&:focus": {
zIndex: 1,
boxShadow:
@@ -55,7 +55,7 @@ export const ControlGroup = styled("div", {
"&:first-child": {
borderTopLeftRadius: "$1",
borderBottomLeftRadius: "$1",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
"&:focus": {
boxShadow:
"inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
@@ -65,7 +65,7 @@ export const ControlGroup = styled("div", {
borderTopRightRadius: "$1",
borderBottomRightRadius: "$1",
boxShadow:
- "inset 0 1px $colors$muted, inset -1px 0 $colors$muted, inset 0 -1px $colors$muted",
+ "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
"&:focus": {
boxShadow:
"inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
@@ -75,7 +75,7 @@ export const ControlGroup = styled("div", {
[`& ${Select}`]: {
borderRadius: 0,
boxShadow:
- "inset 0 1px $colors$muted, inset -1px 0 $colors$muted, inset 0 -1px $colors$muted",
+ "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
"&:focus-within": {
boxShadow:
"inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
@@ -83,7 +83,7 @@ export const ControlGroup = styled("div", {
"&:first-child": {
borderTopLeftRadius: "$1",
borderBottomLeftRadius: "$1",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
"&:focus-within": {
boxShadow:
"inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
@@ -93,7 +93,7 @@ export const ControlGroup = styled("div", {
borderTopRightRadius: "$1",
borderBottomRightRadius: "$1",
boxShadow:
- "inset 0 1px $colors$muted, inset -1px 0 $colors$muted, inset 0 -1px $colors$muted",
+ "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
"&:focus-within": {
boxShadow:
"inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
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 2567b0cb0d..f6fd3afc02 100644
--- a/packages/design-system/src/components/icon-button-with-menu.tsx
+++ b/packages/design-system/src/components/icon-button-with-menu.tsx
@@ -19,7 +19,7 @@ const itemStyles = {
all: "unset",
fontSize: "$2",
lineHeight: 1,
- color: "$hiContrast",
+ color: "$colors$slate12",
borderRadius: "$radii$1",
display: "flex",
alignItems: "center",
@@ -31,7 +31,7 @@ const itemStyles = {
userSelect: "none",
gap: "$space$2",
"&[data-highlighted]": {
- background: "$colors$primary",
+ background: "$colors$blue10",
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 f1be709bbe..86080c893a 100644
--- a/packages/design-system/src/components/icon-button.tsx
+++ b/packages/design-system/src/components/icon-button.tsx
@@ -24,20 +24,19 @@ export const IconButton = styled("button", {
boxSizing: "border-box",
},
"&:hover, &:active": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
outline: "none",
},
"&:focus": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
outline: "none",
border: "2px solid white",
- boxShadow:
- "0px 0px 0px 2px $colors$primary, 0px 0px 0px 2px $colors$primary",
+ boxShadow: "0px 0px 0px 2px $colors$blue10, 0px 0px 0px 2px $colors$blue10",
},
"&:disabled": {
pointerEvents: "none",
backgroundColor: "transparent",
- color: "$muted",
+ color: "$slate6",
},
variants: {
@@ -69,7 +68,7 @@ export const IconButton = styled("button", {
state: {
active: {
color: "$loContrast",
- backgroundColor: "$primary",
+ backgroundColor: "$blue10",
},
},
},
diff --git a/packages/design-system/src/components/link.tsx b/packages/design-system/src/components/link.tsx
index f490224419..e890f710c7 100644
--- a/packages/design-system/src/components/link.tsx
+++ b/packages/design-system/src/components/link.tsx
@@ -47,7 +47,7 @@ export const Link = styled("a", {
textDecorationColor: "$slate4",
"@hover": {
"&:hover": {
- textDecorationColor: "$muted",
+ textDecorationColor: "$slate7",
},
},
"&:focus": {
diff --git a/packages/design-system/src/components/menu.tsx b/packages/design-system/src/components/menu.tsx
index 49b949b99e..a4b7fb09c0 100644
--- a/packages/design-system/src/components/menu.tsx
+++ b/packages/design-system/src/components/menu.tsx
@@ -25,11 +25,11 @@ export const itemCss = css(baseItemCss, {
color: "$hiContrast",
"&:focus, &[data-found], &[aria-selected=true]": {
outline: "none",
- backgroundColor: "$primary",
+ backgroundColor: "$blue10",
color: "white",
},
"&[data-disabled], &[aria-disabled]": {
- color: "$hint",
+ color: "$slate9",
},
});
@@ -46,7 +46,7 @@ export const menuCss = css({
export const separatorCss = css({
height: 1,
my: "$1",
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
});
export const Menu = styled(MenuPrimitive.Root, menuCss);
diff --git a/packages/design-system/src/components/panel.tsx b/packages/design-system/src/components/panel.tsx
index 2c601e276b..d4abe937ef 100644
--- a/packages/design-system/src/components/panel.tsx
+++ b/packages/design-system/src/components/panel.tsx
@@ -2,7 +2,7 @@ import { css, styled } from "../stitches.config";
export const panelStyles = css({
overflow: "auto",
- backgroundColor: "white",
+ backgroundColor: "$slate4",
borderRadius: "$1",
boxShadow: "0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15)",
});
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 7aa65021c9..c9770086eb 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: "$primary",
+ background: "$blue10",
pointerEvents: "none",
};
diff --git a/packages/design-system/src/components/progress-bar.tsx b/packages/design-system/src/components/progress-bar.tsx
index 1a36b17fa9..b44298b9c7 100644
--- a/packages/design-system/src/components/progress-bar.tsx
+++ b/packages/design-system/src/components/progress-bar.tsx
@@ -31,7 +31,7 @@ const StyledProgressBar = styled(ProgressPrimitive.Root, {
animationDuration: "1500ms",
animationIterationCount: "infinite",
animationTimingFunction: "cubic-bezier(0.65, 0, 0.35, 1)",
- backgroundColor: "$muted",
+ backgroundColor: "$slate7",
boxSizing: "border-box",
borderRadius: "$pill",
content: '""',
diff --git a/packages/design-system/src/components/radio-card.tsx b/packages/design-system/src/components/radio-card.tsx
index 2062af5f9d..eb9ac1ef13 100644
--- a/packages/design-system/src/components/radio-card.tsx
+++ b/packages/design-system/src/components/radio-card.tsx
@@ -13,7 +13,7 @@ const StyledRadioButton = styled("div", {
borderRadius: "$round",
width: 25,
height: 25,
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
flexShrink: 0,
mr: "$3",
});
@@ -39,7 +39,7 @@ const StyledRadio = styled(RadioGroupPrimitive.Item, {
display: "flex",
alignItems: "center",
borderRadius: "$2",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
p: "$3",
"@hover": {
"&:hover": {
diff --git a/packages/design-system/src/components/radio-grid.tsx b/packages/design-system/src/components/radio-grid.tsx
index df4c286e58..2ccee0e1da 100644
--- a/packages/design-system/src/components/radio-grid.tsx
+++ b/packages/design-system/src/components/radio-grid.tsx
@@ -19,7 +19,7 @@ export const RadioGrid = styled(RadioGroupPrimitive.Item, {
boxSizing: "border-box",
},
borderRadius: "$2",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
px: "$1",
height: "$6",
lineHeight: "$sizes$6",
diff --git a/packages/design-system/src/components/radio.tsx b/packages/design-system/src/components/radio.tsx
index e7c6a2e43f..e5c1ec2532 100644
--- a/packages/design-system/src/components/radio.tsx
+++ b/packages/design-system/src/components/radio.tsx
@@ -46,7 +46,7 @@ const StyledRadio = styled(RadioGroupPrimitive.Item, {
borderRadius: "50%",
color: "$hiContrast",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
overflow: "hidden",
"@hover": {
"&:hover": {
diff --git a/packages/design-system/src/components/search-field.tsx b/packages/design-system/src/components/search-field.tsx
index 5459eacd0c..7830c32370 100644
--- a/packages/design-system/src/components/search-field.tsx
+++ b/packages/design-system/src/components/search-field.tsx
@@ -9,6 +9,12 @@ import {
import { Cross2Icon, MagnifyingGlassIcon } from "@webstudio-is/icons";
import { TextField } from "./text-field";
import { IconButton } from "./icon-button";
+import { styled } from "..";
+
+const SearchIcon = styled(MagnifyingGlassIcon, {
+ color: "$hint",
+ padding: "$1",
+});
const SearchFieldBase: ForwardRefRenderFunction<
HTMLInputElement,
@@ -27,11 +33,7 @@ const SearchFieldBase: ForwardRefRenderFunction<
type="search"
value={value}
inputRef={inputRef}
- prefix={
- <IconButton aria-label="Search" css={{ color: "$hint" }} tabIndex={-1}>
- <MagnifyingGlassIcon />
- </IconButton>
- }
+ prefix={<SearchIcon />}
suffix={
value.length > 0 ? (
<IconButton
diff --git a/packages/design-system/src/components/select.tsx b/packages/design-system/src/components/select.tsx
index e1ef6d5bc5..02aff00957 100644
--- a/packages/design-system/src/components/select.tsx
+++ b/packages/design-system/src/components/select.tsx
@@ -16,12 +16,12 @@ const StyledTrigger = styled(SelectPrimitive.SelectTrigger, {
borderRadius: "$1",
backgroundColor: "$loContrast",
color: "$hiContrast",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
height: 28, // @todo waiting for the sizing scale
px: "$2",
fontSize: "$1",
"&:hover": {
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
},
"&:focus": {
boxShadow:
@@ -82,7 +82,7 @@ const StyledItem = styled(SelectPrimitive.Item, {
},
"&:focus": {
- backgroundColor: "$primary",
+ backgroundColor: "$blue10",
color: "white",
},
});
diff --git a/packages/design-system/src/components/separator.tsx b/packages/design-system/src/components/separator.tsx
index 897d93d3f4..fb4c7eceb5 100644
--- a/packages/design-system/src/components/separator.tsx
+++ b/packages/design-system/src/components/separator.tsx
@@ -5,7 +5,7 @@ export const Separator = styled(SeparatorPrimitive.Root, {
border: "none",
margin: 0,
flexShrink: 0,
- backgroundColor: "$muted",
+ backgroundColor: "$slate7",
cursor: "default",
variants: {
diff --git a/packages/design-system/src/components/sidebar-tabs.tsx b/packages/design-system/src/components/sidebar-tabs.tsx
index 1361378465..99f3236bb5 100644
--- a/packages/design-system/src/components/sidebar-tabs.tsx
+++ b/packages/design-system/src/components/sidebar-tabs.tsx
@@ -33,7 +33,7 @@ export const SidebarTabsTrigger = styled(TabsPrimitive.Trigger, {
'&[data-state="active"]': {
color: "$hiContrast",
backgroundColor: "$slateA4",
- borderColor: "$muted",
+ borderColor: "$slate6",
},
});
@@ -44,7 +44,7 @@ const StyledTabsList = styled(TabsPrimitive.List, {
alignItems: "center",
outline: "none",
'&[data-state="active"]': {
- borderRight: "1px solid $muted",
+ borderRight: "1px solid $slate7",
},
});
@@ -71,6 +71,6 @@ export const SidebarTabsContent = styled(TabsPrimitive.Content, {
bc: "$loContrast",
outline: "none",
'&[data-state="active"]': {
- borderRight: "1px solid $muted",
+ borderRight: "1px solid $slate7",
},
});
diff --git a/packages/design-system/src/components/skeleton.tsx b/packages/design-system/src/components/skeleton.tsx
index 58826479cf..a4194c41ee 100644
--- a/packages/design-system/src/components/skeleton.tsx
+++ b/packages/design-system/src/components/skeleton.tsx
@@ -16,7 +16,7 @@ export const Skeleton = styled("div", {
animationDirection: "alternate",
animationIterationCount: "infinite",
animationTimingFunction: "ease-in-out",
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
borderRadius: "inherit",
bottom: 0,
content: '""',
diff --git a/packages/design-system/src/components/slider.tsx b/packages/design-system/src/components/slider.tsx
index 9d67f51ed8..ed65c23a70 100644
--- a/packages/design-system/src/components/slider.tsx
+++ b/packages/design-system/src/components/slider.tsx
@@ -5,7 +5,7 @@ import * as SliderPrimitive from "@radix-ui/react-slider";
const SliderTrack = styled(SliderPrimitive.Track, {
position: "relative",
flexGrow: 1,
- backgroundColor: "$muted",
+ backgroundColor: "$slate7",
borderRadius: "$pill",
'&[data-orientation="horizontal"]': {
height: 2,
diff --git a/packages/design-system/src/components/status.tsx b/packages/design-system/src/components/status.tsx
index 94bb9e375d..f9285a2c78 100644
--- a/packages/design-system/src/components/status.tsx
+++ b/packages/design-system/src/components/status.tsx
@@ -17,7 +17,7 @@ export const Status = styled("div", {
},
variant: {
gray: {
- backgroundColor: "$muted",
+ backgroundColor: "$slate7",
},
blue: {
backgroundColor: "$blue9",
diff --git a/packages/design-system/src/components/switch.tsx b/packages/design-system/src/components/switch.tsx
index 222ead8f62..56e42f908b 100644
--- a/packages/design-system/src/components/switch.tsx
+++ b/packages/design-system/src/components/switch.tsx
@@ -40,7 +40,7 @@ const StyledSwitch = styled(SwitchPrimitive.Root, {
outline: "none",
WebkitTapHighlightColor: "rgba(0,0,0,0)",
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
borderRadius: "$pill",
position: "relative",
"&:focus": {
diff --git a/packages/design-system/src/components/text-area.tsx b/packages/design-system/src/components/text-area.tsx
index f0fefb5a6c..f04dcbeb2d 100644
--- a/packages/design-system/src/components/text-area.tsx
+++ b/packages/design-system/src/components/text-area.tsx
@@ -24,7 +24,7 @@ export const TextArea = styled("textarea", {
zIndex: "1",
},
"&::placeholder": {
- color: "$hint",
+ color: "$slate9",
},
"&:disabled": {
pointerEvents: "none",
@@ -33,13 +33,13 @@ export const TextArea = styled("textarea", {
cursor: "not-allowed",
resize: "none",
"&::placeholder": {
- color: "$muted",
+ color: "$slate7",
},
},
"&:read-only": {
backgroundColor: "$slate2",
"&:focus": {
- boxShadow: "inset 0px 0px 0px 1px $colors$muted",
+ boxShadow: "inset 0px 0px 0px 1px $colors$slate7",
},
},
diff --git a/packages/design-system/src/components/text-field.tsx b/packages/design-system/src/components/text-field.tsx
index 7170b59785..8c895e80b8 100644
--- a/packages/design-system/src/components/text-field.tsx
+++ b/packages/design-system/src/components/text-field.tsx
@@ -12,13 +12,13 @@ const colorVar = cssVars.define("color");
const getButtonSuffixCssVars = (state: "focus" | "hover") => {
if (state === "focus") {
return {
- [backgroundColorVar]: "$colors$primary",
+ [backgroundColorVar]: "$colors$blue10",
[colorVar]: "white",
};
}
return {
- [backgroundColorVar]: "$colors$muted",
+ [backgroundColorVar]: "$colors$slate7",
[colorVar]: "$colors$hiContrast",
};
};
@@ -85,7 +85,7 @@ const InputBase = styled("input", {
color: "$slate8",
cursor: "not-allowed",
"&::placeholder": {
- color: "$muted",
+ color: "$slate7",
},
},
});
@@ -93,8 +93,8 @@ const InputBase = styled("input", {
const TextFieldBase = styled("div", {
// Custom
display: "flex",
- backgroundColor: "white",
- boxShadow: "inset 0 0 0 1px $colors$muted",
+ backgroundColor: "$loContrast",
+ boxShadow: "inset 0 0 0 1px $colors$slate7",
color: "$hiContrast",
fontVariantNumeric: "tabular-nums",
gap: "$1",
@@ -109,7 +109,7 @@ const TextFieldBase = styled("div", {
"&:focus-within": {
boxShadow:
- "inset 0px 0px 0px 1px $colors$primary, 0px 0px 0px 1px $colors$primary",
+ "inset 0px 0px 0px 1px $colors$blue10, 0px 0px 0px 1px $colors$blue10",
...getButtonSuffixCssVars("focus"),
},
@@ -120,7 +120,7 @@ const TextFieldBase = styled("div", {
"&:is(input:read-only)": {
backgroundColor: "$slate2",
"&:focus": {
- boxShadow: "inset 0px 0px 0px 1px $colors$muted",
+ boxShadow: "inset 0px 0px 0px 1px $colors$slate7",
},
},
@@ -137,7 +137,7 @@ const TextFieldBase = styled("div", {
"&:focus": {
backgroundColor: "$loContrast",
boxShadow:
- "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$primary",
+ "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue10",
},
"&:disabled": {
backgroundColor: "transparent",
@@ -148,7 +148,7 @@ const TextFieldBase = styled("div", {
},
active: {
boxShadow:
- "inset 0px 0px 0px 1px $colors$primary, 0px 0px 0px 1px $colors$primary",
+ "inset 0px 0px 0px 1px $colors$blue10, 0px 0px 0px 1px $colors$blue10",
...getButtonSuffixCssVars("focus"),
},
},
diff --git a/packages/design-system/src/components/toggle-group.tsx b/packages/design-system/src/components/toggle-group.tsx
index 6f9616220f..c0456df718 100644
--- a/packages/design-system/src/components/toggle-group.tsx
+++ b/packages/design-system/src/components/toggle-group.tsx
@@ -3,7 +3,7 @@ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
export const Root = styled(ToggleGroupPrimitive.Root, {
display: "inline-flex",
- backgroundColor: "$muted",
+ backgroundColor: "$slate6",
borderRadius: 4,
boxShadow: `0 2px 10px $blackA7`,
});
diff --git a/packages/design-system/src/components/tree/placement-indicator.tsx b/packages/design-system/src/components/tree/placement-indicator.tsx
index e542874a8d..b9ef27e8b1 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 $primary",
+ border: "solid $blue10",
borderWidth: 2,
borderRadius: "50%",
pointerEvents: "none",
@@ -32,7 +32,7 @@ const Circle = styled(Box, {
const Line = styled(Box, {
boxSizing: "content-box",
position: "absolute",
- background: "$primary",
+ background: "$blue10",
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 9631881a9f..1531ffe7de 100644
--- a/packages/design-system/src/components/tree/tree-node.tsx
+++ b/packages/design-system/src/components/tree/tree-node.tsx
@@ -38,7 +38,7 @@ const NestingLine = styled(Box, {
height: ITEM_HEIGHT,
borderRight: "solid",
borderRightWidth: 1,
- borderColor: "$hint",
+ borderColor: "$slate9",
variants: {
isSelected: { true: { borderColor: "$blue7" } },
},
@@ -104,7 +104,7 @@ const hoverStyle = {
left: 2,
right: 2,
height: ITEM_HEIGHT,
- border: "solid $primary",
+ border: "solid $blue10",
borderWidth: 2,
borderRadius: "$2",
pointerEvents: "none",
@@ -117,7 +117,7 @@ const ItemWrapper = styled(Flex, {
position: "relative",
variants: {
isSelected: {
- true: { color: "$loContrast", bc: "$primary" },
+ true: { color: "$loContrast", bc: "$blue10" },
},
parentIsSelected: {
true: { bc: "$blue4" },