mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 19:51:32 +10:00
fix: add unit to hsl colors in css conversion
This commit is contained in:
@ -47,7 +47,7 @@ export const toNativeCssVars = (vars: TCssVarsSchema) => {
|
|||||||
const color = colord(value);
|
const color = colord(value);
|
||||||
const { h, s, l } = color.toHsl();
|
const { h, s, l } = color.toHsl();
|
||||||
|
|
||||||
cssVars[`--${toSnakeCase(key)}`] = `${h} ${s} ${l}`;
|
cssVars[`--${toSnakeCase(key)}`] = `${h}deg ${s}% ${l}%`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user