From ac85cdac68824efcd3bc60619b66d9e1b0f22afe Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 22 Feb 2024 19:24:26 +0200 Subject: [PATCH] fix themes v1 not working --- src/services/theme_data/theme2_to_theme3.js | 4 +++- 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 index ea4b8cd20f..1a847dc96e 100644 --- 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