diff --git a/apps/renderer/src/lib/color.ts b/apps/renderer/src/lib/color.ts index 9230a078d..04e18bef9 100644 --- a/apps/renderer/src/lib/color.ts +++ b/apps/renderer/src/lib/color.ts @@ -7,8 +7,8 @@ const getRandomColor = (lightness: [number, number], saturation: [number, number const lightBackground = lightAccent < 80 ? lightAccent + 20 : 100 return { - accent: `hsl(${hue}, ${satAccent}%, ${lightAccent}%)`, - background: `hsl(${hue}, ${satBackground}%, ${lightBackground}%)`, + accent: `hsl(${hue} ${satAccent}% ${lightAccent}%)`, + background: `hsl(${hue} ${satBackground}% ${lightBackground}%)`, } } diff --git a/apps/renderer/src/styles/colors.css b/apps/renderer/src/styles/colors.css index f2fb876a7..4f3b47595 100644 --- a/apps/renderer/src/styles/colors.css +++ b/apps/renderer/src/styles/colors.css @@ -1,47 +1,47 @@ [data-theme="light"] { - --fo-a: 21.6, 100%, 50%; + --fo-a: 21.6 100% 50%; --fo-vibrancy-background: theme(colors.native.active); - --fo-vibrancy-foreground: 0, 0%, 45%; + --fo-vibrancy-foreground: 0 0% 45%; - --fo-text-primary: 0, 0%, 10%; + --fo-text-primary: 0 0% 10%; --fo-item-active: theme(colors.zinc.400/0.3); --fo-item-hover: theme(colors.zinc.400/0.2); - --fo-inactive: 0, 0%, 80%; - --fo-disabled: 0, 0%, 70%; + --fo-inactive: 0 0% 80%; + --fo-disabled: 0 0% 70%; --fo-background: theme(colors.background); --fo-modal-background: theme(colors.zinc.50/0.8); --fo-modal-background-opaque: theme(colors.zinc.50); - --fo-text-primary-hover: 0, 0%, 14.9%; + --fo-text-primary-hover: 0 0% 14.9%; --fo-button-hover: theme(colors.zinc.500/0.1); } [data-theme="dark"] { - --fo-a: 21.6, 100%, 50%; + --fo-a: 21.6 100% 50%; - --fo-vibrancy-foreground: 0, 0%, 83%; + --fo-vibrancy-foreground: 0 0% 83%; --fo-vibrancy-background: theme(colors.native.active); - --fo-text-primary: 0, 0%, 80%; + --fo-text-primary: 0 0% 80%; --fo-item-active: theme(colors.neutral.600/0.4); --fo-item-hover: theme(colors.neutral.700/0.3); - --fo-inactive: 0, 0%, 50%; - --fo-disabled: 0, 0%, 35%; + --fo-inactive: 0 0% 50%; + --fo-disabled: 0 0% 35%; --fo-background: theme(colors.background); --fo-modal-background: theme(colors.neutral.900/0.8); --fo-modal-background-opaque: theme(colors.neutral.900); - --fo-text-primary-hover: 240, 4.9%, 83.9%; + --fo-text-primary-hover: 240 4.9% 83.9%; --fo-button-hover: theme(colors.neutral.400/0.15); } diff --git a/tailwind.config.ts b/tailwind.config.ts index c0121d72a..530668396 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -72,7 +72,7 @@ export default resolveConfig({ 950: "#461304", }, - vibrancyFg: "hsl(var(--fo-vibrancy-foreground), )", + vibrancyFg: "hsl(var(--fo-vibrancy-foreground) / )", vibrancyBg: "var(--fo-vibrancy-background)", item: { @@ -80,13 +80,13 @@ export default resolveConfig({ hover: "var(--fo-item-hover)", }, - inactive: "hsl(var(--fo-inactive), )", - disabled: "hsl(var(--fo-disabled), )", + inactive: "hsl(var(--fo-inactive) / )", + disabled: "hsl(var(--fo-disabled) / )", - foreground: "hsl(var(--fo-text-primary), )", + foreground: "hsl(var(--fo-text-primary) / )", background: "var(--fo-background)", - "foreground-hover": "hsl(var(--fo-text-primary-hover), )", + "foreground-hover": "hsl(var(--fo-text-primary-hover) / )", modal: { background: "var(--fo-modal-background)",