diff --git a/packages/design-system/icons/src/components/ellipse-mini-solid.tsx b/packages/design-system/icons/src/components/ellipse-mini-solid.tsx index 59b8392df1..266c1ca922 100644 --- a/packages/design-system/icons/src/components/ellipse-mini-solid.tsx +++ b/packages/design-system/icons/src/components/ellipse-mini-solid.tsx @@ -11,7 +11,7 @@ const EllipseMiniSolid = React.forwardRef( ref={ref} {...props} > - + ) } diff --git a/packages/design-system/toolbox/src/create-cli.ts b/packages/design-system/toolbox/src/create-cli.ts index 31cc42d118..e87fce31c2 100644 --- a/packages/design-system/toolbox/src/create-cli.ts +++ b/packages/design-system/toolbox/src/create-cli.ts @@ -1,7 +1,8 @@ -import { generateIcons } from "@/commands/icons/command" import { Command } from "commander" +import { generateIcons } from "@/commands/icons/command" import { generateTokens } from "@/commands/tokens/command" + import pkg from "../package.json" export async function createCli() { diff --git a/packages/design-system/ui-preset/src/theme/extension/theme.ts b/packages/design-system/ui-preset/src/theme/extension/theme.ts index 7d2736943a..930e42d6b1 100644 --- a/packages/design-system/ui-preset/src/theme/extension/theme.ts +++ b/packages/design-system/ui-preset/src/theme/extension/theme.ts @@ -116,9 +116,6 @@ export const theme = { "danger": { "DEFAULT": "var(--border-danger)" }, - "loud": { - "DEFAULT": "var(--border-loud)" - }, "strong": { "DEFAULT": "var(--border-strong)" }, @@ -127,6 +124,14 @@ export const theme = { }, "transparent": { "DEFAULT": "var(--border-transparent)" + }, + "menu": { + "bot": { + "DEFAULT": "var(--border-menu-bot)" + }, + "top": { + "DEFAULT": "var(--border-menu-top)" + } } }, "bg": { @@ -136,24 +141,6 @@ export const theme = { "DEFAULT": "var(--bg-highlight-hover)" } }, - "base": { - "DEFAULT": "var(--bg-base)", - "pressed": { - "DEFAULT": "var(--bg-base-pressed)" - }, - "hover": { - "DEFAULT": "var(--bg-base-hover)" - } - }, - "subtle": { - "pressed": { - "DEFAULT": "var(--bg-subtle-pressed)" - }, - "DEFAULT": "var(--bg-subtle)", - "hover": { - "DEFAULT": "var(--bg-subtle-hover)" - } - }, "interactive": { "DEFAULT": "var(--bg-interactive)" }, @@ -183,14 +170,32 @@ export const theme = { "disabled": { "DEFAULT": "var(--bg-disabled)" }, - "component": { - "hover": { - "DEFAULT": "var(--bg-component-hover)" + "base": { + "pressed": { + "DEFAULT": "var(--bg-base-pressed)" }, + "hover": { + "DEFAULT": "var(--bg-base-hover)" + }, + "DEFAULT": "var(--bg-base)" + }, + "component": { "pressed": { "DEFAULT": "var(--bg-component-pressed)" }, - "DEFAULT": "var(--bg-component)" + "DEFAULT": "var(--bg-component)", + "hover": { + "DEFAULT": "var(--bg-component-hover)" + } + }, + "subtle": { + "DEFAULT": "var(--bg-subtle)", + "pressed": { + "DEFAULT": "var(--bg-subtle-pressed)" + }, + "hover": { + "DEFAULT": "var(--bg-subtle-hover)" + } } }, "fg": { diff --git a/packages/design-system/ui-preset/src/theme/tokens/colors.ts b/packages/design-system/ui-preset/src/theme/tokens/colors.ts index 8f96ad4b21..480940c8eb 100644 --- a/packages/design-system/ui-preset/src/theme/tokens/colors.ts +++ b/packages/design-system/ui-preset/src/theme/tokens/colors.ts @@ -3,96 +3,77 @@ export const colors = { "--fg-on-color": "rgba(255, 255, 255, 1)", "--border-danger": "rgba(190, 18, 60, 1)", "--border-interactive": "rgba(96, 165, 250, 1)", - "--fg-interactive-hover": "rgba(59, 130, 246, 1)", + "--fg-interactive-hover": "rgba(147, 197, 253, 1)", "--fg-error": "rgba(251, 113, 133, 1)", "--bg-interactive": "rgba(96, 165, 250, 1)", - "--border-error": "rgba(244, 63, 94, 1)", + "--border-error": "rgba(251, 113, 133, 1)", "--button-danger": "rgba(159, 18, 57, 1)", - "--button-danger-gradient-from": "rgba(255, 255, 255, 1)", - "--button-danger-gradient-to": "rgba(255, 255, 255, 0)", "--fg-interactive": "rgba(96, 165, 250, 1)", "--tag-red-border": "rgba(136, 19, 55, 1)", "--tag-red-bg": "rgba(76, 5, 25, 1)", - "--tag-blue-text": "rgba(96, 165, 250, 1)", - "--tag-orange-text": "rgba(251, 191, 36, 1)", + "--tag-blue-text": "rgba(147, 197, 253, 1)", + "--tag-orange-text": "rgba(253, 186, 116, 1)", "--tag-green-text": "rgba(52, 211, 153, 1)", - "--tag-orange-border": "rgba(120, 53, 15, 1)", + "--tag-orange-border": "rgba(124, 45, 18, 1)", "--tag-green-border": "rgba(6, 78, 59, 1)", - "--tag-red-text": "rgba(251, 113, 133, 1)", + "--tag-red-text": "rgba(253, 164, 175, 1)", "--tag-green-bg-hover": "rgba(6, 78, 59, 1)", "--tag-purple-bg-hover": "rgba(76, 29, 149, 1)", "--tag-red-bg-hover": "rgba(136, 19, 55, 1)", "--border-transparent": "rgba(255, 255, 255, 0)", - "--tag-orange-icon": "rgba(245, 158, 11, 1)", - "--tag-purple-bg": "rgba(46, 16, 100, 1)", + "--tag-orange-icon": "rgba(251, 146, 60, 1)", + "--tag-purple-bg": "rgba(46, 16, 101, 1)", "--tag-blue-bg": "rgba(23, 37, 84, 1)", "--tag-green-bg": "rgba(2, 44, 34, 1)", "--tag-blue-border": "rgba(30, 58, 138, 1)", - "--tag-purple-border": "rgba(76, 29, 149, 1)", + "--tag-purple-border": "rgba(91, 33, 182, 1)", "--tag-blue-bg-hover": "rgba(30, 42, 138, 1)", - "--tag-orange-bg": "rgba(69, 26, 3, 1)", + "--tag-orange-bg": "rgba(67, 20, 7, 1)", "--tag-orange-bg-hover": "rgba(120, 53, 15, 1)", - "--tag-blue-icon": "rgba(59, 130, 246, 1)", - "--tag-red-icon": "rgba(244, 63, 94, 1)", - "--tag-purple-icon": "rgba(139, 92, 246, 1)", - "--tag-purple-text": "rgba(167, 139, 250, 1)", + "--tag-blue-icon": "rgba(96, 165, 250, 1)", + "--tag-red-icon": "rgba(251, 113, 133, 1)", + "--tag-purple-icon": "rgba(167, 139, 250, 1)", + "--tag-purple-text": "rgba(196, 181, 253, 1)", "--tag-green-icon": "rgba(16, 185, 129, 1)", "--button-danger-pressed": "rgba(225, 29, 72, 1)", - "--button-danger-pressed-gradient-from": "rgba(255, 255, 255, 1)", - "--button-danger-pressed-gradient-to": "rgba(255, 255, 255, 0)", "--button-danger-hover": "rgba(190, 18, 60, 1)", - "--button-danger-hover-gradient-from": "rgba(255, 255, 255, 1)", - "--button-danger-hover-gradient-to": "rgba(255, 255, 255, 0)", - "--button-transparent": "rgba(0, 0, 0, 0.01)", + "--button-transparent": "rgba(255, 255, 255, 0)", "--code-bg-base": "rgba(9, 9, 11, 1)", "--button-neutral": "rgba(39, 39, 42, 1)", - "--button-neutral-gradient-from": "rgba(255, 255, 255, 1)", - "--button-neutral-gradient-to": "rgba(255, 255, 255, 0)", "--button-transparent-hover": "rgba(39, 39, 42, 1)", "--code-fg-subtle": "rgba(161, 161, 170, 1)", "--tag-neutral-bg-hover": "rgba(63, 63, 70, 1)", "--contrast-border-base": "rgba(82, 82, 91, 1)", "--button-neutral-pressed": "rgba(82, 82, 91, 1)", - "--button-neutral-pressed-gradient-from": "rgba(255, 255, 255, 1)", - "--button-neutral-pressed-gradient-to": "rgba(255, 255, 255, 0)", - "--tag-neutral-bg": "rgba(39, 39, 42, 1)", + "--tag-neutral-bg": "rgba(255, 255, 255, 0.08)", "--bg-highlight": "rgba(23, 37, 84, 1)", "--code-fg-base": "rgba(250, 250, 250, 1)", "--tag-neutral-icon": "rgba(113, 113, 122, 1)", "--bg-switch-off-hover": "rgba(82, 82, 91, 1)", "--bg-base": "rgba(24, 24, 27, 1)", "--button-inverted-pressed": "rgba(161, 161, 170, 1)", - "--button-inverted-pressed-gradient-from": "rgba(255, 255, 255, 1)", - "--button-inverted-pressed-gradient-to": "rgba(255, 255, 255, 0)", "--button-neutral-hover": "rgba(63, 63, 70, 1)", - "--button-neutral-hover-gradient-from": "rgba(255, 255, 255, 1)", - "--button-neutral-hover-gradient-to": "rgba(255, 255, 255, 0)", "--bg-switch-off": "rgba(63, 63, 70, 1)", "--fg-subtle": "rgba(161, 161, 170, 1)", "--bg-highlight-hover": "rgba(30, 58, 138, 1)", "--button-inverted": "rgba(82, 82, 91, 1)", - "--button-inverted-gradient-from": "rgba(255, 255, 255, 1)", - "--button-inverted-gradient-to": "rgba(255, 255, 255, 0)", - "--fg-base": "rgba(250, 250, 250, 1)", + "--fg-base": "rgba(244, 244, 245, 1)", "--code-border": "rgba(39, 39, 42, 1)", "--contrast-bg-subtle": "rgba(39, 39, 42, 1)", "--contrast-bg-base-hover": "rgba(82, 82, 91, 1)", "--bg-base-hover": "rgba(39, 39, 42, 1)", "--bg-subtle-hover": "rgba(24, 24, 27, 1)", - "--fg-disabled": "rgba(63, 63, 70, 1)", + "--fg-disabled": "rgba(82, 82, 91, 1)", "--bg-subtle": "rgba(9, 9, 11, 1)", "--tag-neutral-border": "rgba(63, 63, 70, 1)", - "--bg-subtle-pressed": "rgba(39, 39, 42, 1)", - "--tag-neutral-text": "rgba(161, 161, 170, 1)", - "--fg-muted": "rgba(82, 82, 91, 1)", - "--bg-overlay": "rgba(9, 9, 11, 0.7)", + "--bg-subtle-pressed": "rgba(63, 63, 70, 1)", + "--tag-neutral-text": "rgba(212, 212, 216, 1)", + "--fg-muted": "rgba(161, 161, 170, 1)", + "--bg-overlay": "rgba(9, 9, 11, 0.72)", "--button-inverted-hover": "rgba(113, 113, 122, 1)", - "--button-inverted-hover-gradient-from": "rgba(255, 255, 255, 1)", - "--button-inverted-hover-gradient-to": "rgba(255, 255, 255, 0)", "--fg-on-inverted": "rgba(9, 9, 11, 1)", "--code-bg-subtle": "rgba(24, 24, 27, 1)", "--bg-component": "rgba(39, 39, 42, 1)", - "--border-loud": "rgba(250, 250, 250, 1)", "--bg-base-pressed": "rgba(63, 63, 70, 1)", "--bg-disabled": "rgba(39, 39, 42, 1)", "--contrast-bg-highlight": "rgba(82, 82, 91, 1)", @@ -102,31 +83,32 @@ export const colors = { "--contrast-bg-base-pressed": "rgba(113, 113, 122, 1)", "--contrast-fg-primary": "rgba(250, 250, 250, 1)", "--contrast-bg-base": "rgba(63, 63, 70, 1)", - "--bg-component-pressed": "rgba(82, 82, 91, 1)", - "--bg-component-hover": "rgba(63, 63, 70, 1)", - "--bg-field": "rgba(39, 39, 42, 1)", + "--bg-component-pressed": "rgba(255, 255, 255, 0.16)", + "--bg-component-hover": "rgba(255, 255, 255, 0.1)", + "--bg-field": "rgba(255, 255, 255, 0.04)", "--bg-field-component": "rgba(24, 24, 27, 1)", - "--bg-field-component-hover": "rgba(24, 24, 27, 1)", - "--bg-field-hover": "rgba(39, 39, 42, 1)", + "--bg-field-component-hover": "rgba(9, 9, 11, 0.24)", + "--bg-field-hover": "rgba(255, 255, 255, 0.08)", "--border-base": "rgba(255, 255, 255, 0.08)", - "--border-strong": "rgba(255, 255, 255, 0.12)", - "--contrast-bg-alpha": "rgba(63, 63, 70, 0.9)" + "--border-strong": "rgba(255, 255, 255, 0.16)", + "--contrast-bg-alpha": "rgba(63, 63, 70, 0.9)", + "--border-menu-bot": "rgba(255, 255, 255, 0.08)", + "--border-menu-top": "rgba(24, 24, 27, 1)" }, "light": { "--tag-green-bg": "rgba(209, 250, 229, 1)", "--border-interactive": "rgba(59, 130, 246, 1)", "--bg-highlight": "rgba(239, 246, 255, 1)", "--tag-red-bg": "rgba(255, 228, 230, 1)", - "--tag-orange-bg": "rgba(254, 244, 199, 1)", - "--bg-base": "rgba(255, 255, 255, 1)", - "--tag-green-icon": "rgba(5, 150, 105, 1)", + "--tag-orange-bg": "rgba(255, 237, 213, 1)", + "--tag-green-icon": "rgba(16, 185, 129, 1)", "--tag-purple-bg-hover": "rgba(221, 214, 254, 1)", "--tag-blue-border": "rgba(191, 219, 254, 1)", - "--tag-orange-icon": "rgba(217, 119, 6, 1)", + "--tag-orange-icon": "rgba(249, 115, 22, 1)", "--tag-purple-bg": "rgba(237, 233, 254, 1)", - "--tag-purple-text": "rgba(109, 40, 217, 1)", + "--tag-purple-text": "rgba(91, 33, 182, 1)", "--tag-blue-bg": "rgba(219, 234, 254, 1)", - "--tag-blue-icon": "rgba(37, 99, 235, 1)", + "--tag-blue-icon": "rgba(59, 130, 246, 1)", "--border-error": "rgba(225, 29, 72, 1)", "--fg-on-inverted": "rgba(255, 255, 255, 1)", "--fg-on-color": "rgba(255, 255, 255, 1)", @@ -135,37 +117,28 @@ export const colors = { "--fg-error": "rgba(225, 29, 72, 1)", "--border-danger": "rgba(190, 18, 60, 1)", "--fg-muted": "rgba(161, 161, 170, 1)", - "--bg-subtle-pressed": "rgba(228, 228, 231, 1)", "--tag-green-bg-hover": "rgba(167, 243, 208, 1)", "--tag-blue-bg-hover": "rgba(191, 219, 254, 1)", - "--tag-red-icon": "rgba(225, 29, 72, 1)", + "--tag-red-icon": "rgba(244, 63, 94, 1)", "--tag-red-bg-hover": "rgba(254, 205, 211, 1)", - "--tag-red-text": "rgba(190, 18, 60, 1)", - "--tag-purple-icon": "rgba(124, 58, 237, 1)", - "--tag-blue-text": "rgba(29, 78, 216, 1)", + "--tag-red-text": "rgba(159, 18, 57, 1)", + "--tag-purple-icon": "rgba(139, 92, 246, 1)", + "--tag-blue-text": "rgba(30, 64, 175, 1)", "--tag-orange-bg-hover": "rgba(253, 230, 138, 1)", "--tag-purple-border": "rgba(221, 214, 254, 1)", - "--tag-orange-text": "rgba(180, 83, 9, 1)", - "--tag-orange-border": "rgba(253, 230, 138, 1)", + "--tag-orange-text": "rgba(154, 52, 18, 1)", + "--tag-orange-border": "rgba(254, 215, 170, 1)", "--tag-red-border": "rgba(254, 205, 211, 1)", "--tag-green-border": "rgba(167, 243, 208, 1)", - "--tag-green-text": "rgba(4, 120, 87, 1)", + "--tag-green-text": "rgba(6, 95, 70, 1)", "--button-danger": "rgba(225, 29, 72, 1)", - "--button-danger-gradient-from": "rgba(255, 255, 255, 1)", - "--button-danger-gradient-to": "rgba(255, 255, 255, 0)", "--button-danger-pressed": "rgba(159, 18, 57, 1)", - "--button-danger-pressed-gradient-from": "rgba(255, 255, 255, 1)", - "--button-danger-pressed-gradient-to": "rgba(255, 255, 255, 0)", "--button-danger-hover": "rgba(190, 18, 60, 1)", - "--button-danger-hover-gradient-from": "rgba(255, 255, 255, 1)", - "--button-danger-hover-gradient-to": "rgba(255, 255, 255, 0)", "--bg-interactive": "rgba(59, 130, 246, 1)", "--bg-highlight-hover": "rgba(219, 234, 254, 1)", - "--button-transparent": "rgba(255, 255, 255, 0.01)", - "--bg-base-pressed": "rgba(228, 228, 231, 1)", + "--button-transparent": "rgba(255, 255, 255, 0)", "--bg-overlay": "rgba(9, 9, 11, 0.4)", "--tag-neutral-border": "rgba(228, 228, 231, 1)", - "--border-loud": "rgba(9, 9, 11, 1)", "--bg-switch-off": "rgba(228, 228, 231, 1)", "--contrast-bg-base-pressed": "rgba(63, 63, 70, 1)", "--tag-neutral-text": "rgba(82, 82, 91, 1)", @@ -183,46 +156,39 @@ export const colors = { "--tag-neutral-bg-hover": "rgba(228, 228, 231, 1)", "--code-fg-muted": "rgba(113, 113, 122, 1)", "--contrast-bg-highlight": "rgba(63, 63, 70, 1)", - "--tag-neutral-icon": "rgba(113, 113, 122, 1)", + "--tag-neutral-icon": "rgba(161, 161, 170, 1)", "--border-base": "rgba(228, 228, 231, 1)", "--code-bg-base": "rgba(24, 24, 27, 1)", "--button-neutral": "rgba(255, 255, 255, 1)", - "--button-neutral-gradient-from": "rgba(9, 9, 11, 0)", - "--button-neutral-gradient-to": "rgba(9, 9, 11, 1)", "--code-bg-subtle": "rgba(39, 39, 42, 1)", "--button-neutral-hover": "rgba(244, 244, 245, 1)", - "--button-neutral-hover-gradient-from": "rgba(9, 9, 11, 0)", - "--button-neutral-hover-gradient-to": "rgba(9, 9, 11, 1)", "--contrast-bg-base-hover": "rgba(39, 39, 42, 1)", - "--bg-subtle": "rgba(250, 250, 250, 1)", "--bg-switch-off-hover": "rgba(212, 212, 216, 1)", "--code-fg-base": "rgba(250, 250, 250, 1)", "--bg-disabled": "rgba(244, 244, 245, 1)", "--code-border": "rgba(63, 63, 70, 1)", "--fg-subtle": "rgba(82, 82, 91, 1)", - "--bg-subtle-hover": "rgba(244, 244, 245, 1)", "--button-neutral-pressed": "rgba(228, 228, 231, 1)", - "--button-neutral-pressed-gradient-from": "rgba(9, 9, 11, 0)", - "--button-neutral-pressed-gradient-to": "rgba(9, 9, 11, 1)", - "--border-transparent": "rgba(9, 9, 11, 0)", - "--button-inverted": "rgba(9, 9, 11, 1)", - "--button-inverted-gradient-from": "rgba(255, 255, 255, 1)", - "--button-inverted-gradient-to": "rgba(255, 255, 255, 0)", - "--button-inverted-pressed": "rgba(39, 39, 42, 1)", - "--button-inverted-pressed-gradient-from": "rgba(255, 255, 255, 1)", - "--button-inverted-pressed-gradient-to": "rgba(255, 255, 255, 0)", - "--button-inverted-hover": "rgba(24, 24, 27, 1)", - "--button-inverted-hover-gradient-from": "rgba(255, 255, 255, 1)", - "--button-inverted-hover-gradient-to": "rgba(255, 255, 255, 0)", - "--bg-component-hover": "rgba(244, 244, 245, 1)", + "--border-transparent": "rgba(255, 255, 255, 0)", + "--button-inverted": "rgba(39, 39, 42, 1)", + "--button-inverted-pressed": "rgba(82, 82, 91, 1)", + "--button-inverted-hover": "rgba(63, 63, 70, 1)", "--bg-field-component": "rgba(255, 255, 255, 1)", "--bg-field-component-hover": "rgba(250, 250, 250, 1)", + "--contrast-bg-alpha": "rgba(9, 9, 11, 0.8)", + "--contrast-fg-primary": "rgba(255, 255, 255, 0.88)", + "--contrast-fg-secondary": "rgba(255, 255, 255, 0.56)", + "--contrast-border-base": "rgba(255, 255, 255, 0.15)", + "--border-menu-bot": "rgba(255, 255, 255, 1)", + "--border-menu-top": "rgba(228, 228, 231, 1)", + "--bg-base-pressed": "rgba(228, 228, 231, 1)", + "--bg-base-hover": "rgba(244, 244, 245, 1)", + "--bg-base": "rgba(255, 255, 255, 1)", "--bg-component-pressed": "rgba(228, 228, 231, 1)", "--bg-component": "rgba(250, 250, 250, 1)", - "--bg-base-hover": "rgba(244, 244, 245, 1)", - "--contrast-bg-alpha": "rgba(9, 9, 11, 0.8)", - "--contrast-fg-primary": "rgba(255, 255, 255, 0.95)", - "--contrast-fg-secondary": "rgba(255, 255, 255, 0.6)", - "--contrast-border-base": "rgba(255, 255, 255, 0.15)" + "--bg-subtle": "rgba(250, 250, 250, 1)", + "--bg-subtle-pressed": "rgba(228, 228, 231, 1)", + "--bg-component-hover": "rgba(244, 244, 245, 1)", + "--bg-subtle-hover": "rgba(244, 244, 245, 1)" } } \ No newline at end of file diff --git a/packages/design-system/ui-preset/src/theme/tokens/components.ts b/packages/design-system/ui-preset/src/theme/tokens/components.ts index 76772755e5..df51fb3b63 100644 --- a/packages/design-system/ui-preset/src/theme/tokens/components.ts +++ b/packages/design-system/ui-preset/src/theme/tokens/components.ts @@ -1,78 +1,4 @@ export const components = { - "dark": { - ".button-danger-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-danger-gradient-from), var(--button-danger-gradient-to))", - "opacity": "10%" - }, - ".button-danger-pressed-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-danger-pressed-gradient-from), var(--button-danger-pressed-gradient-to))", - "opacity": "10%" - }, - ".button-danger-hover-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-danger-hover-gradient-from), var(--button-danger-hover-gradient-to))", - "opacity": "10%" - }, - ".button-neutral-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-neutral-gradient-from), var(--button-neutral-gradient-to))", - "opacity": "6%" - }, - ".button-neutral-pressed-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-neutral-pressed-gradient-from), var(--button-neutral-pressed-gradient-to))", - "opacity": "6%" - }, - ".button-inverted-pressed-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-inverted-pressed-gradient-from), var(--button-inverted-pressed-gradient-to))", - "opacity": "6%" - }, - ".button-neutral-hover-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-neutral-hover-gradient-from), var(--button-neutral-hover-gradient-to))", - "opacity": "6%" - }, - ".button-inverted-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-inverted-gradient-from), var(--button-inverted-gradient-to))", - "opacity": "6%" - }, - ".button-inverted-hover-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-inverted-hover-gradient-from), var(--button-inverted-hover-gradient-to))", - "opacity": "6%" - } - }, - "light": { - ".button-danger-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-danger-gradient-from), var(--button-danger-gradient-to))", - "opacity": "16%" - }, - ".button-danger-pressed-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-danger-pressed-gradient-from), var(--button-danger-pressed-gradient-to))", - "opacity": "16%" - }, - ".button-danger-hover-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-danger-hover-gradient-from), var(--button-danger-hover-gradient-to))", - "opacity": "16%" - }, - ".button-neutral-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-neutral-gradient-from), var(--button-neutral-gradient-to))", - "opacity": "3%" - }, - ".button-neutral-hover-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-neutral-hover-gradient-from), var(--button-neutral-hover-gradient-to))", - "opacity": "3%" - }, - ".button-neutral-pressed-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-neutral-pressed-gradient-from), var(--button-neutral-pressed-gradient-to))", - "opacity": "3%" - }, - ".button-inverted-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-inverted-gradient-from), var(--button-inverted-gradient-to))", - "opacity": "16%" - }, - ".button-inverted-pressed-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-inverted-pressed-gradient-from), var(--button-inverted-pressed-gradient-to))", - "opacity": "16%" - }, - ".button-inverted-hover-gradient": { - "backgroundImage": "linear-gradient(180deg, var(--button-inverted-hover-gradient-from), var(--button-inverted-hover-gradient-to))", - "opacity": "16%" - } - } + "dark": {}, + "light": {} } \ No newline at end of file diff --git a/packages/design-system/ui/src/components/checkbox/checkbox.tsx b/packages/design-system/ui/src/components/checkbox/checkbox.tsx index b7f553a5e4..a26d2e9626 100644 --- a/packages/design-system/ui/src/components/checkbox/checkbox.tsx +++ b/packages/design-system/ui/src/components/checkbox/checkbox.tsx @@ -24,7 +24,7 @@ const Checkbox = React.forwardRef< )} >
- + {checked === "indeterminate" ? : }
diff --git a/packages/design-system/ui/src/components/container/container.tsx b/packages/design-system/ui/src/components/container/container.tsx index 45b1fbbaaa..5f3d5169bd 100644 --- a/packages/design-system/ui/src/components/container/container.tsx +++ b/packages/design-system/ui/src/components/container/container.tsx @@ -13,7 +13,7 @@ const Container = React.forwardRef<
- + @@ -168,12 +175,16 @@ const RadioItem = React.forwardRef< - + @@ -207,7 +218,7 @@ const Separator = React.forwardRef< >(({ className, ...props }, ref) => ( )) diff --git a/packages/design-system/ui/src/components/select/select.stories.tsx b/packages/design-system/ui/src/components/select/select.stories.tsx index e1729c794e..6dab1465aa 100644 --- a/packages/design-system/ui/src/components/select/select.stories.tsx +++ b/packages/design-system/ui/src/components/select/select.stories.tsx @@ -80,7 +80,7 @@ export const Default: Story = { render: () => { return (
- diff --git a/packages/design-system/ui/src/components/select/select.tsx b/packages/design-system/ui/src/components/select/select.tsx index 6807dbf45a..7ab7003e14 100644 --- a/packages/design-system/ui/src/components/select/select.tsx +++ b/packages/design-system/ui/src/components/select/select.tsx @@ -123,7 +123,7 @@ const Content = React.forwardRef< , React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => { - const { size } = useSelectContext() - return ( - - + + @@ -216,7 +211,7 @@ const Separator = React.forwardRef< >(({ className, ...props }, ref) => ( )) diff --git a/packages/design-system/ui/src/main.css b/packages/design-system/ui/src/main.css index bb587cf7fd..6c1817e993 100644 --- a/packages/design-system/ui/src/main.css +++ b/packages/design-system/ui/src/main.css @@ -5,5 +5,6 @@ @layer base { body { @apply !bg-ui-bg-base; + text-rendering: optimizeLegibility; } }