summaryrefslogtreecommitdiff
path: root/src/client/scripts/theme.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/scripts/theme.ts')
-rw-r--r--src/client/scripts/theme.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/scripts/theme.ts b/src/client/scripts/theme.ts
index 30eaf77e01..476a41ace5 100644
--- a/src/client/scripts/theme.ts
+++ b/src/client/scripts/theme.ts
@@ -101,7 +101,7 @@ function compile(theme: Theme): Record<string, string> {
for (const [k, v] of Object.entries(theme.props)) {
if (k.startsWith('$')) continue; // ignore const
- props[k] = genValue(getColor(v));
+ props[k] = v.startsWith('"') ? v.replace(/^"\s*/, '') : genValue(getColor(v));
}
return props;