Skip to content

Commit

Permalink
Fix accent color (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel authored May 31, 2023
1 parent 45b3755 commit 183fbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/design-system/styles/hslObjectForColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function hslObjectForColor(color: string) {
const [hue, saturation, lightness] = chroma(color).hsl();

return {
hue: String(hue),
hue: isNaN(hue) ? '0' : String(hue),
saturation: `${saturation * 100}%`,
lightness: `${lightness * 100}%`,
};
Expand Down

0 comments on commit 183fbdb

Please sign in to comment.