commit 43e8eeba9d8073600704efe585c7b6e3a73b8297
parent a16f175460b50ecfcfd2a519cbbe62413e5dbe52
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Mon, 26 Aug 2024 14:24:26 +0000
themes: add theme key and color mode parsing utils
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/src/utils.ts b/themes/src/utils.ts
@@ -31,7 +31,7 @@ export const parse_color_mode = (color_mode?: string): ColorMode => {
};
};
-export const write_layers = ({ layer_0: { surface: l0_s, glyphs: l0_g }, layer_1: { surface: l1_s, glyphs: l1_g }, layer_2: { surface: l2_s, glyphs: l2_g } }: ThemeLayers): Record<string, string> => ({
+export const write_layers = ({ layer_0: { surface: l0_s, glyphs: l0_g }, layer_1: { surface: l1_s, glyphs: l1_g }, layer_2: { surface: l2_s, glyphs: l2_g }}: ThemeLayers): Record<string, string> => ({
"--layer-0-surface": hsl(l0_s._),
"--layer-0-surface_a": hsl(l0_s._a),
"--layer-0-surface-edge": hsl(l0_s.edge),