Skip to content

Commit 3bc25ec

Browse files
committed
fix: respect --accent-color rather than hard-coding
1 parent e1076d7 commit 3bc25ec

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

app/app.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ if (import.meta.client) {
8989
--border-subtle: oklch(0.239 0 0);
9090
--border-hover: oklch(0.371 0 0);
9191
92-
/* user selected accent */
93-
--accent: oklch(1 0 0);
94-
--accent-muted: oklch(0.922 0 0);
92+
--accent: var(--accent-color, oklch(1 0 0));
93+
--accent-muted: var(--accent-color, oklch(0.922 0 0));
9594
9695
--syntax-fn: oklch(0.727 0.137 299.149);
9796
--syntax-str: oklch(0.829 0.088 252.458);
@@ -113,8 +112,8 @@ if (import.meta.client) {
113112
--border-subtle: oklch(0.922 0 0);
114113
--border-hover: oklch(0.715 0 0);
115114
116-
--accent: oklch(0.145 0 0);
117-
--accent-muted: oklch(0.205 0 0);
115+
--accent: var(--accent-color, oklch(0.145 0 0));
116+
--accent-muted: var(--accent-color, oklch(0.205 0 0));
118117
119118
--syntax-fn: oklch(0.502 0.188 294.988);
120119
--syntax-str: oklch(0.54 0.191 257.481);

0 commit comments

Comments
 (0)