aboutsummaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-22 19:24:26 +0200
committerHenry Jameson <me@hjkos.com>2024-02-22 19:24:26 +0200
commitac85cdac68824efcd3bc60619b66d9e1b0f22afe (patch)
treec3f85f431c6b7a617f76edb13fb716d173bad826 /src/services
parentc4d218cb3e605a83040d2df52ce8f66dcfebc5bf (diff)
fix themes v1 not working
Diffstat (limited to 'src/services')
-rw-r--r--src/services/theme_data/theme2_to_theme3.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/theme_data/theme2_to_theme3.js b/src/services/theme_data/theme2_to_theme3.js
index ea4b8cd2..1a847dc9 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