commit: ac85cdac68824efcd3bc60619b66d9e1b0f22afe
parent c4d218cb3e605a83040d2df52ce8f66dcfebc5bf
Author: Henry Jameson <me@hjkos.com>
Date: Thu, 22 Feb 2024 19:24:26 +0200
fix themes v1 not working
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/services/theme_data/theme2_to_theme3.js b/src/services/theme_data/theme2_to_theme3.js
@@ -1,3 +1,4 @@
+import { convert } from 'chromatism'
import allKeys from './theme2_keys'
// keys that are meant to be used globally, i.e. what's the rest of the theme is based upon.
@@ -125,7 +126,8 @@ export const convertTheme2To3 = (data) => {
data.colors.link = data.colors.link || data.colors.accent
const generateRoot = () => {
const directives = {}
- basePaletteKeys.forEach(key => { directives['--' + key] = 'color | ' + data.colors[key] })
+ console.log(data.colors)
+ basePaletteKeys.forEach(key => { directives['--' + key] = 'color | ' + convert(data.colors[key]).hex })
return {
component: 'Root',
directives