-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
276 lines (242 loc) · 7.69 KB
/
Copy paththeme.css
File metadata and controls
276 lines (242 loc) · 7.69 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
/* ===========================================================================
wordcount — design source of truth
Direction: Calm Precise, "the trustworthy instrument" (PRODUCT register).
Dials: variance 3/10 · motion 3/10 · density 5/10.
Every screen, document surface and terminal transcript this project ships
reads its colour, type and rhythm from the tokens below. Nothing is
hard-coded outside this file; a component that needs a value reads a token.
=========================================================================== */
/* Committed faces: heading "Atkinson Hyperlegible", body "Atkinson Hyperlegible"
(Atkinson Access). Loaded exactly as the design direction specifies... */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;600;700&display=swap');
/* ...and self-hosted as well, so a renderer that never leaves the machine (an
offline preview, a printed transcript) still gets the committed face instead
of falling back to a stock default. Files: assets/fonts/, SIL Open Font
License; the 600 weight is served from the same file Google serves for it. */
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('assets/fonts/atkinson-hyperlegible-latin-400.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('assets/fonts/atkinson-hyperlegible-latin-ext-400.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('assets/fonts/atkinson-hyperlegible-latin-700.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('assets/fonts/atkinson-hyperlegible-latin-700.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Atkinson Hyperlegible';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('assets/fonts/atkinson-hyperlegible-latin-ext-700.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* --- committed token set, verbatim ------------------------------------- */
:root {
/* surfaces and ink */
--background: #f8fcf5;
--foreground: #10150b;
--card: #fefffc;
--card-foreground: #10150b;
--muted: #eaeee7;
--muted-foreground: #5f665a;
/* the one accent, and the roles it fills */
--accent: #528a54;
--ring: #528a54;
--primary: #1a2213;
--on-primary: #ffffff;
--on-accent: #111111;
--secondary: #eaeee7;
--on-secondary: #10150b;
/* semantic state */
--destructive: #c9302d;
--on-destructive: #ffffff;
/* hairlines and rhythm */
--border: #dcdfd9;
--radius: 6px;
--elevation-overlay: 0 1px 2px rgba(16, 21, 11, 0.08);
/* accent as a CSS ramp seed, plus its hex twin for any non-CSS consumer */
--accent-oklch: oklch(0.58 0.10 145);
--accent-hex: #528a54;
/* the accent's truecolor twin for the terminal surface (demo.sh) */
--accent-ansi: 38;2;82;138;84;
/* type: heading and body are the SAME committed face, bound as tokens */
--font-heading: 'Atkinson Hyperlegible', sans-serif;
--font-body: 'Atkinson Hyperlegible', sans-serif;
--font-mono: 'Atkinson Hyperlegible', ui-monospace, 'SFMono-Regular',
'DejaVu Sans Mono', monospace;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.25rem;
--leading-body: 1.5;
/* motion: 3/10 — feedback only, never choreography */
--duration-row: 160ms;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
/* --- base surface consumes the tokens ---------------------------------- */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
background: var(--background);
color: var(--foreground);
font-family: var(--font-body);
font-size: var(--text-base);
line-height: var(--leading-body);
}
body {
margin: 0 auto;
max-width: 480px; /* the committed mobile-first frame */
padding: 1rem;
background: var(--background);
color: var(--foreground);
font-family: var(--font-body);
}
h1,
h2,
h3,
h4 {
font-family: var(--font-heading);
color: var(--foreground);
line-height: 1.25;
}
h1 {
font-size: var(--text-lg);
font-weight: 700;
}
h2,
h3 {
font-size: var(--text-base);
font-weight: 600;
}
code,
kbd,
pre,
.result,
.metric {
font-family: var(--font-mono);
font-variant-numeric: tabular-nums; /* every metric is tabular */
}
a {
color: var(--accent);
text-decoration: none;
border-bottom: 1px solid var(--border);
}
a:hover {
border-bottom-color: var(--accent);
}
/* --- component vocabulary --------------------------------------------- */
/* Hairline separators instead of boxes: no card-inside-card nesting. */
.section {
border-top: 1px solid var(--border);
padding: 1rem 0;
}
/* Action button: the primary role, with its full state set. */
.button {
min-height: 44px; /* tap target floor */
padding: 0.5rem 1rem;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--primary);
color: var(--on-primary);
font-family: var(--font-body);
font-weight: 600;
cursor: pointer;
transition: background-color var(--duration-row) var(--ease-out);
}
.button:hover {
background: var(--accent);
color: var(--on-accent);
}
.button:active {
background: var(--primary);
}
.button:focus-visible {
outline: 2px solid var(--ring); /* crisp 2px accent focus ring */
outline-offset: 2px;
}
.button:disabled,
.button[aria-disabled='true'] {
background: var(--muted);
color: var(--muted-foreground);
cursor: not-allowed;
}
/* Status as a tinted pill: accent at 10% with a 1px matching border. */
.status-pill {
display: inline-block;
padding: 0.125rem 0.5rem;
border: 1px solid var(--accent);
border-radius: 999px;
background: color-mix(in srgb, var(--accent) 10%, transparent);
color: var(--foreground);
font-size: var(--text-sm);
font-weight: 600;
}
.status-pill[data-state='error'] {
border-color: var(--destructive);
background: color-mix(in srgb, var(--destructive) 10%, transparent);
}
/* Signature move: a row whose label and value are joined by a dotted leader. */
.leader-row {
display: flex;
align-items: baseline;
gap: 0.5rem;
padding: 0.375rem 0;
font-variant-numeric: tabular-nums;
}
.leader-row > .leader-label {
color: var(--muted-foreground);
}
.leader-row > .leader-dots {
flex: 1 1 auto;
min-width: 0;
border-bottom: 1px dotted var(--border);
}
.leader-row > .leader-value {
color: var(--foreground);
font-weight: 600;
}
/* The one result line a script parses: monospaced digits, plain ink. */
.result {
color: var(--foreground);
}
@media (prefers-reduced-motion: reduce) {
* {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
}
}