-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokens.css
More file actions
174 lines (148 loc) · 7.18 KB
/
Copy pathtokens.css
File metadata and controls
174 lines (148 loc) · 7.18 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/*
* EEA Design System — Tokens
* Version: 1.0.0 (initial rollout 2026-07-22)
* Source: https://github.com/EntEthAlliance/eea-design-system
* Governance: see DESIGN.md
*
* Usage:
* <link rel="stylesheet" href="https://entethalliance.github.io/eea-design-system/tokens.css">
*
* All tokens are prefixed --eea- to avoid collisions with site-local variables.
* Sites import these tokens and map them to their own var() references as needed.
*
* Adopted sites (2026-07-22):
* Tier A: ops-finance, EntEthAlliance.github.io, pages-index
* Tier B: wg-ethereum-institute, rnd-rwa-erc3643-eas (Shibui), ops-solution-catalog
* Tier C (isolated): eea-board-portal, wg-privacy
*/
/* ─────────────────────────────────────────────────────────────
DARK THEME (default)
───────────────────────────────────────────────────────────── */
:root,
[data-theme="dark"] {
/* Background scale */
--eea-bg: #0a0a0f; /* page root */
--eea-bg-raised: #12121a; /* slightly elevated surface */
--eea-bg-card: #1a1a24; /* card background */
--eea-bg-hover: #22222e; /* hover state on interactive surfaces */
/* Text scale */
--eea-text: #ffffff;
--eea-text-2: #a0a0b0; /* secondary / descriptions */
--eea-text-3: #6a6a7a; /* muted / timestamps / labels */
/* Border */
--eea-border: rgba(255, 255, 255, 0.08); /* translucent — works on any dark surface */
--eea-border-solid: #2a2a3a; /* solid equivalent for sharp edges */
/* Accent */
--eea-accent: #627eea;
--eea-accent-hover: #8fa8ff;
--eea-accent-bg: rgba(98, 126, 234, 0.12); /* tinted chip / icon background */
--eea-accent-bg-light:rgba(98, 126, 234, 0.06); /* subtler accent fill */
/* Semantic */
--eea-success: #00d4aa;
--eea-success-bg: rgba(0, 212, 170, 0.12);
--eea-warning: #fbbf24;
--eea-warning-bg: rgba(251, 191, 36, 0.12);
--eea-danger: #ff6b6b;
--eea-danger-bg: rgba(255, 107, 107, 0.12);
--eea-info: #00b4d8;
--eea-info-bg: rgba(0, 180, 216, 0.12);
/* Shadows */
--eea-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.20);
--eea-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
--eea-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
}
/* ─────────────────────────────────────────────────────────────
LIGHT THEME
Applied when html[data-theme="light"]
───────────────────────────────────────────────────────────── */
[data-theme="light"] {
/* Background scale */
--eea-bg: #f8f9fc;
--eea-bg-raised: #f0f1f5;
--eea-bg-card: #ffffff;
--eea-bg-hover: #eceef4;
/* Text scale */
--eea-text: #0f0f14;
--eea-text-2: #4a4a5a;
--eea-text-3: #8a8a9a;
/* Border */
--eea-border: rgba(0, 0, 0, 0.08);
--eea-border-solid: #d8dae8;
/* Accent (same hue, slightly adjusted alpha fills) */
--eea-accent: #627eea;
--eea-accent-hover: #4a66d8;
--eea-accent-bg: rgba(98, 126, 234, 0.08);
--eea-accent-bg-light:rgba(98, 126, 234, 0.04);
/* Shadows */
--eea-shadow-sm: 0 1px 4px rgba(15, 15, 20, 0.06);
--eea-shadow-md: 0 4px 12px rgba(15, 15, 20, 0.08);
--eea-shadow-lg: 0 12px 32px rgba(15, 15, 20, 0.10);
}
/* ─────────────────────────────────────────────────────────────
TYPOGRAPHY TOKENS
These are theme-independent.
───────────────────────────────────────────────────────────── */
:root {
/* Font stacks */
--eea-font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--eea-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
/* Google Fonts import URLs (reference — link these in <head>):
* Sans: https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap
* Mono: https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap
*/
/* Scale (rem, base 16px) */
--eea-text-xs: 0.75rem; /* 12px — labels, captions */
--eea-text-sm: 0.875rem; /* 14px — secondary copy */
--eea-text-base: 1rem; /* 16px — body */
--eea-text-lg: 1.125rem; /* 18px — card titles */
--eea-text-xl: 1.5rem; /* 24px — section headings */
--eea-text-2xl: 2rem; /* 32px — page subheadings */
--eea-text-3xl: 2.5rem; /* 40px — page H1 */
/* Weights */
--eea-weight-normal: 400;
--eea-weight-medium: 500;
--eea-weight-semi: 600;
--eea-weight-bold: 700;
/* Line heights */
--eea-leading-tight: 1.2;
--eea-leading-snug: 1.4;
--eea-leading-base: 1.6;
--eea-leading-loose: 1.8;
}
/* ─────────────────────────────────────────────────────────────
LAYOUT TOKENS
───────────────────────────────────────────────────────────── */
:root {
/* Container */
--eea-container: 1200px; /* canonical max-width for all Tier A sites */
--eea-container-wide: 1400px; /* data-heavy pages (finance, institutional) */
--eea-container-px: 2rem; /* horizontal padding */
--eea-container-px-sm:1rem; /* mobile horizontal padding */
/* Spacing scale (4px base) */
--eea-space-1: 0.25rem; /* 4px */
--eea-space-2: 0.5rem; /* 8px */
--eea-space-3: 0.75rem; /* 12px */
--eea-space-4: 1rem; /* 16px */
--eea-space-6: 1.5rem; /* 24px */
--eea-space-8: 2rem; /* 32px */
--eea-space-12: 3rem; /* 48px */
--eea-space-16: 4rem; /* 64px */
/* Grid gaps */
--eea-gap-sm: 1rem;
--eea-gap-md: 1.5rem;
--eea-gap-lg: 2rem;
--eea-gap-xl: 3rem;
/* Border radius */
--eea-radius-xs: 4px;
--eea-radius-sm: 6px; /* buttons, tags, small chips */
--eea-radius-md: 12px; /* cards (canonical) */
--eea-radius-lg: 18px; /* larger surface cards (org-index style) */
--eea-radius-pill: 999px; /* badges, pills */
/* Nav */
--eea-nav-height: 52px; /* fixed nav height — pages must offset body padding-top */
--eea-nav-z: 99999;
/* Transitions */
--eea-transition-fast:0.15s ease;
--eea-transition-base:0.2s ease;
--eea-transition-slow:0.3s ease;
}