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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Style Select accorindg to theme. Add more semantic colors
Andrey Okonetchnikov7a41b9fe5076
diff --git a/app/shared/design-system/components/select.tsx b/app/shared/design-system/components/select.tsxindex 803268831d..7fdee4fff7 100644--- a/app/shared/design-system/components/select.tsx+++ b/app/shared/design-system/components/select.tsx@@ -21,8 +21,8 @@ const StyledTrigger = styled(SelectPrimitive.SelectTrigger, {gap: "$2",flexShrink: 0,borderRadius: "$1",- backgroundColor: "$loContrast",- color: "$hiContrast",+ backgroundColor: "$background",+ color: "$text",boxShadow: "inset 0 0 0 1px $colors$slate7","&:hover": {backgroundColor: "$slateA3",@@ -54,8 +54,8 @@ const StyledIcon = styled(SelectPrimitive.Icon, {const StyledContent = styled(SelectPrimitive.Content, {overflow: "hidden",- backgroundColor: "white",- borderRadius: 6,+ backgroundColor: "$muted",+ borderRadius: "$1",boxShadow:"0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",});@@ -68,23 +68,22 @@ const StyledItem = styled(SelectPrimitive.Item, {all: "unset",fontSize: "$1",lineHeight: 1,- color: "$hiContrast",- borderRadius: "$1",+ color: "$text",display: "flex",alignItems: "center",height: "$5",- padding: "0 35px 0 25px",+ padding: "0 $6 0 $5",position: "relative",userSelect: "none","&[data-disabled]": {- color: "$loContrast",+ color: "$muted",pointerEvents: "none",},"&:focus": {- backgroundColor: "$slateA3",- color: "$hiContrast",+ backgroundColor: "$primary",+ color: "$text",},});@@ -102,8 +101,7 @@ const scrollButtonStyles = {alignItems: "center",justifyContent: "center",height: 25,- backgroundColor: "white",- color: "$hiContrast",+ color: "$text",cursor: "default",};diff --git a/app/shared/design-system/stitches.config.ts b/app/shared/design-system/stitches.config.tsindex 5274768da6..e45dc88e3f 100644--- a/app/shared/design-system/stitches.config.ts+++ b/app/shared/design-system/stitches.config.ts@@ -193,9 +193,12 @@ export const {...blackA,// Semantic colors+ background: "white",+ text: "black",hiContrast: "$slate12",- // loContrast: '$slate1',- loContrast: "white",+ loContrast: "$slate1",+ muted: "$slate6",+ primary: "$blue12",canvas: "hsl(0 0% 93%)",panel: "white",transparentPanel: "hsl(0 0% 0% / 97%)",@@ -493,6 +496,8 @@ export const darkTheme = createTheme("dark-theme", {// Semantic colorsbackground: "$slate1",text: "$slate12",+ muted: "$slate8",+ primary: "$blue9",hiContrast: "$slate12",loContrast: "$slate1",canvas: "hsl(0 0% 15%)",