We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d05e19f commit 59cc3aeCopy full SHA for 59cc3ae
lib/colors.ts
@@ -138,7 +138,7 @@ export function formatLch(color: AnyLch): string {
138
if (typeof alpha !== 'undefined' && alpha < 1) {
139
postfix = ` / ${clean(100 * alpha)}%`
140
}
141
- return `${COLOR_FN}(${clean(l / L_MAX)} ${c} ${h}${postfix})`
+ return `${COLOR_FN}(${clean(l / L_MAX, 4)} ${c} ${h}${postfix})`
142
143
144
// Hack to avoid ,999999 because of float bug implementation
0 commit comments