Skip to content

Commit

Permalink
fix(core): hsl rounding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Apr 13, 2024
1 parent ebab108 commit 85b422d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-parrots-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

Fixed hsl rounding issue (#2697)
2 changes: 1 addition & 1 deletion packages/core/theme/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const resolveConfig = (

try {
const parsedColor =
parsedColorsCache[colorValue] || Color(colorValue).hsl().round().array();
parsedColorsCache[colorValue] || Color(colorValue).hsl().round(2).array();

parsedColorsCache[colorValue] = parsedColor;

Expand Down

0 comments on commit 85b422d

Please sign in to comment.