diff options
Diffstat (limited to 'src/services/theme_data')
| -rw-r--r-- | src/services/theme_data/theme_data_3.service.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js index d916f97d..a73d4cb5 100644 --- a/src/services/theme_data/theme_data_3.service.js +++ b/src/services/theme_data/theme_data_3.service.js @@ -661,7 +661,13 @@ export const init = (extraRuleset, palette) => { } default: if (k.startsWith('--')) { - return k + ': ' + rgba2css(findColor(v, computed[selector].dynamicVars)) + const [type, value] = v.split('|').map(x => x.trim()) // woah, Extreme! + switch (type) { + case 'color': + return k + ': ' + rgba2css(findColor(value, computed[selector].dynamicVars)) + default: + return '' + } } return '' } |
