Skip to content

Commit

Permalink
chore: fix wrong base default color from themebuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunear committed Jan 6, 2025
1 parent 67b3e3c commit fb2c43b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/colors/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ const getBaseColors = (color: CssColor, colorScheme: ColorScheme) => {
const calculateLightness = (base: number, mod: number) => base - mod;

return {
baseDefault: chroma(color).luminance(getLuminanceFromLightness(colorLightness)).hex() as CssColor,
baseDefault:
colorScheme === 'light'
? color
: (chroma(color).luminance(getLuminanceFromLightness(colorLightness)).hex() as CssColor),
baseHover: chroma(color)
.luminance(getLuminanceFromLightness(calculateLightness(colorLightness, modifier)))
.hex() as CssColor,
Expand Down

0 comments on commit fb2c43b

Please sign in to comment.