feat: add validated appearance palettes

This commit is contained in:
2026-08-20 06:26:52 +02:00
parent fd90b60430
commit 6643c8fc1e
11 changed files with 196 additions and 17 deletions
+7 -2
View File
@@ -3231,6 +3231,7 @@
--preview-line: var(--theme-preview-light-line);
--preview-text: var(--theme-preview-light-text);
--preview-muted: var(--theme-preview-light-muted);
--preview-accent: var(--theme-preview-accent-default);
display: grid;
gap: 0;
min-height: 112px;
@@ -3240,6 +3241,10 @@
background: var(--preview-bg);
}
.theme-preview[data-preview-palette="civic_blue"] { --preview-accent: var(--theme-preview-accent-civic-blue); }
.theme-preview[data-preview-palette="forest"] { --preview-accent: var(--theme-preview-accent-forest); }
.theme-preview[data-preview-palette="plum"] { --preview-accent: var(--theme-preview-accent-plum); }
.theme-preview[data-preview-theme="dark"] {
--preview-bg: var(--theme-preview-dark-bg);
--preview-bar: var(--theme-preview-dark-bar);
@@ -3266,8 +3271,8 @@
width: 18px;
height: 18px;
border-radius: var(--radius-round);
background: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
background: var(--preview-accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--preview-accent) 35%, transparent);
}
.theme-preview-body {