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 {
+34
View File
@@ -242,6 +242,10 @@
--theme-preview-dark-line: #454740;
--theme-preview-dark-text: #f6f4ed;
--theme-preview-dark-muted: #aaa79d;
--theme-preview-accent-default: #ef6b3a;
--theme-preview-accent-civic-blue: #245f91;
--theme-preview-accent-forest: #276749;
--theme-preview-accent-plum: #704b78;
--calendar-event-bg-default: #edf8f5;
--calendar-event-border-default: #b9d7d0;
@@ -429,6 +433,36 @@
--campaign-panel-bg: rgba(38, 39, 36, .94);
}
:root[data-palette="civic_blue"] {
--accent: #245f91;
--accent-rgb: 36, 95, 145;
--accent-soft: rgba(36, 95, 145, .35);
--accent-hover-bg: rgba(36, 95, 145, .14);
--accent-auth-glow: rgba(36, 95, 145, .16);
--accent-ring-soft: 0 0 0 2px rgba(36, 95, 145, .20);
--badge-accent-text: #ffffff;
}
:root[data-palette="forest"] {
--accent: #276749;
--accent-rgb: 39, 103, 73;
--accent-soft: rgba(39, 103, 73, .35);
--accent-hover-bg: rgba(39, 103, 73, .14);
--accent-auth-glow: rgba(39, 103, 73, .16);
--accent-ring-soft: 0 0 0 2px rgba(39, 103, 73, .20);
--badge-accent-text: #ffffff;
}
:root[data-palette="plum"] {
--accent: #704b78;
--accent-rgb: 112, 75, 120;
--accent-soft: rgba(112, 75, 120, .35);
--accent-hover-bg: rgba(112, 75, 120, .14);
--accent-auth-glow: rgba(112, 75, 120, .16);
--accent-ring-soft: 0 0 0 2px rgba(112, 75, 120, .20);
--badge-accent-text: #ffffff;
}
.ui-reduce-motion *,
.ui-reduce-motion *::before,
.ui-reduce-motion *::after {