Repository navigation
Expand file tree
/
Copy pathtokens.css
More file actions
70 lines (63 loc) · 1.77 KB
/
Copy pathtokens.css
File metadata and controls
70 lines (63 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* tokens.css — Design tokens: colors (light/dark via prefers-color-scheme),
spacing scale, type scale. The selectors cover both the document (:root)
and shadow roots (:host), so the sheet works wherever it is adopted. */
:root, :host {
/* Colors — light theme */
--color-bg: #ffffff;
--color-surface: #f5f5f5;
--color-border: #e0e0e0;
--color-text: #1a1a1a;
--color-text-secondary: #616161;
--color-primary: #2563eb;
--color-primary-text: #ffffff;
--color-accent: #7c3aed;
--color-error: #dc2626;
--color-success: #059669;
--color-warning: #d97706;
--color-code-bg: #f5f5f5;
/* Spacing scale (4px base) */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-12: 3rem;
--space-16: 4rem;
/* Type scale */
--font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
--font-mono: ui-monospace, monospace;
--font-xs: 0.75rem;
--font-sm: 0.875rem;
--font-base: 1rem;
--font-lg: 1.125rem;
--font-xl: 1.25rem;
--font-2xl: 1.5rem;
--font-3xl: 1.875rem;
/* Transitions */
--transition-fast: 150ms ease;
--transition-base: 200ms ease;
/* Radii */
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
}
@media (prefers-color-scheme: dark) {
:root, :host {
--color-bg: #0f172a;
--color-surface: #1e293b;
--color-border: #334155;
--color-text: #e2e8f0;
--color-text-secondary: #94a3b8;
--color-primary: #38bdf8;
--color-primary-text: #0f172a;
--color-accent: #a78bfa;
--color-error: #f87171;
--color-success: #34d399;
--color-warning: #fbbf24;
--color-code-bg: #1e293b;
}
}