tokens.css
Language CSS3.7 KB110 lines
/* Color and surface tokens. The resolved theme is on <html data-theme>. */:root {--font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;--mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;--radius-sm: 8px;--radius: 12px;--radius-lg: 16px;--blur: 22px;--saturate: 1.6;--sidebar: 268px;--ease: cubic-bezier(0.2, 0.7, 0.2, 1);}:root[data-theme='light'] {color-scheme: light;--backdrop:radial-gradient(1200px 800px at 12% 8%, #e9e3ff 0%, transparent 60%),radial-gradient(900px 700px at 92% 18%, #d4f3ec 0%, transparent 55%),radial-gradient(1000px 900px at 60% 110%, #f6e6f3 0%, transparent 60%), #f3f1f8;--glass: rgba(255, 255, 255, 0.62);--glass-strong: rgba(255, 255, 255, 0.97);--glass-tint: rgba(255, 255, 255, 0.34);--glass-border: rgba(255, 255, 255, 0.7);--hairline: rgba(38, 30, 72, 0.1);--text-1: #1d1a2c;--text-2: #4d4764;--text-3: #6a6482;--accent: #5a3fd1;--accent-soft: rgba(90, 63, 209, 0.12);--accent-text: #ffffff;--teal: #0b7d72;--user-bubble: rgba(90, 63, 209, 0.1);--code-bg: rgba(29, 26, 44, 0.05);--warn: #9a5b00;--warn-bg: rgba(255, 196, 92, 0.22);--danger: #b3261e;--danger-bg: rgba(229, 72, 77, 0.14);--shadow: 0 1px 1px rgba(20, 14, 50, 0.04), 0 8px 28px rgba(20, 14, 50, 0.1);--shadow-pop: 0 2px 6px rgba(20, 14, 50, 0.08), 0 24px 60px rgba(20, 14, 50, 0.18);--focus: 0 0 0 3px rgba(90, 63, 209, 0.35);}:root[data-theme='dark'] {color-scheme: dark;--backdrop:radial-gradient(1200px 800px at 12% 8%, #2a2256 0%, transparent 60%),radial-gradient(900px 700px at 92% 18%, #0d3b39 0%, transparent 55%),radial-gradient(1000px 900px at 60% 110%, #3a1d3f 0%, transparent 60%), #121019;--glass: rgba(28, 25, 40, 0.58);--glass-strong: rgba(34, 31, 48, 0.97);--glass-tint: rgba(40, 36, 58, 0.34);--glass-border: rgba(255, 255, 255, 0.09);--hairline: rgba(255, 255, 255, 0.08);--text-1: #f1eefb;--text-2: #c3bdd8;--text-3: #a39cbb;--accent: #a894ff;--accent-soft: rgba(168, 148, 255, 0.16);--accent-text: #15122a;--teal: #6fd8c7;--user-bubble: rgba(168, 148, 255, 0.14);--code-bg: rgba(0, 0, 0, 0.28);--warn: #ffcf7a;--warn-bg: rgba(255, 196, 92, 0.14);--danger: #ff9a93;--danger-bg: rgba(229, 72, 77, 0.18);--shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.35);--shadow-pop: 0 2px 8px rgba(0, 0, 0, 0.3), 0 30px 70px rgba(0, 0, 0, 0.5);--focus: 0 0 0 3px rgba(168, 148, 255, 0.45);}/* Under native vibrancy the window material is the frost; panels only tint it.--tint (0 to 1, from Settings) scales how strongly. */:root[data-vibrancy='native'] {--backdrop: transparent;}:root[data-vibrancy='native'][data-theme='light'] {--glass: rgba(255, 255, 255, calc(0.4 * var(--tint, 1)));--glass-tint: rgba(255, 255, 255, calc(0.18 * var(--tint, 1)));}:root[data-vibrancy='native'][data-theme='dark'] {--glass: rgba(20, 18, 30, calc(0.34 * var(--tint, 1)));--glass-tint: rgba(20, 18, 30, calc(0.16 * var(--tint, 1)));}/* Reduce transparency: opaque surfaces, no blur. Follows the OS or the in-app switch. */:root[data-reduce-transparency='true'][data-theme='light'] {--backdrop: #f3f1f8;--glass: #ffffff;--glass-strong: #ffffff;--glass-tint: #f7f6fb;--glass-border: #e3dfee;}:root[data-reduce-transparency='true'][data-theme='dark'] {--backdrop: #121019;--glass: #1d1a2a;--glass-strong: #242134;--glass-tint: #1a1826;--glass-border: #2e2a40;}:root[data-reduce-transparency='true'] {--blur: 0px;--saturate: 1;}@media (prefers-reduced-transparency: reduce) {:root {--blur: 0px;--saturate: 1;}}