@kolkrabbi/kol-theme 0.225.0 → 0.226.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,11 +239,22 @@
239
239
  * 16 / 22 type and every box grows with it: xs 32 · sm 32 · md 36 · lg 40. One row, one height,
240
240
  * on a phone as at a desk. The type rule lives with the controls (kol-components-atoms.css).
241
241
  * ═══════════════════════════════════════════════════════════════ */
242
+ /* THE LADDER BY NUMBER (plan-2026-11-18-kolbox-system W1.3): 22, 24, 26, 28, 32, 40 and 44, each named by its px
243
+ * and the same on every pointer. 24 and 28 are where tool UIs sit; 44 is the touch size. The size names stay, and they
244
+ * are what moves to the touch rung below; a number never does. */
242
245
  :root {
243
- --kol-ctl-xs: 22px;
244
- --kol-ctl-sm: 26px;
245
- --kol-ctl-md: 32px;
246
- --kol-ctl-lg: 40px;
246
+ --kol-ctl-22: 22px;
247
+ --kol-ctl-24: 24px;
248
+ --kol-ctl-26: 26px;
249
+ --kol-ctl-28: 28px;
250
+ --kol-ctl-32: 32px;
251
+ --kol-ctl-40: 40px;
252
+ --kol-ctl-44: 44px;
253
+
254
+ --kol-ctl-xs: var(--kol-ctl-22);
255
+ --kol-ctl-sm: var(--kol-ctl-26);
256
+ --kol-ctl-md: var(--kol-ctl-32);
257
+ --kol-ctl-lg: var(--kol-ctl-40);
247
258
  }
248
259
  @media (pointer: coarse) {
249
260
  :root {
package/kol-color.css CHANGED
@@ -33,6 +33,8 @@
33
33
  --kol-accent-primary: var(--kol-surface-on-primary);
34
34
  --kol-accent-on-primary: var(--kol-surface-primary);
35
35
  --kol-accent-primary-strong: color-mix(in srgb, var(--kol-accent-primary) 80%, var(--kol-surface-primary));
36
+ --kol-accent-tint: color-mix(in srgb, var(--kol-accent-primary) 25%, transparent);
37
+ --kol-accent-tint-soft: color-mix(in srgb, var(--kol-accent-primary) 15%, transparent);
36
38
 
37
39
  /* ---------------------------------------------------------------------------
38
40
  * HYPERLINKS — the one text role with its own color (2026-07-15, chess
@@ -128,6 +130,357 @@
128
130
  --ui-success: #16A34A;
129
131
  }
130
132
 
133
+ /* =============================================================================
134
+ * THEME VARIANT: KOLBOX (plan-2026-11-18-kolbox-system W2.2) — the library's `theme` collection modes `kolbox dark` and
135
+ * `kolbox light`, value for value (_tmp/2026-11-18-kolbox-system/color-map.md, table 2).
136
+ *
137
+ * <html data-theme-variant="kolbox"> light, or the OS's choice when no data-theme is stamped
138
+ * <html data-theme-variant="kolbox" data-theme="dark"> dark
139
+ *
140
+ * The same law as light and dark: explicit choice > system > light. It sets the BASES only. Every fg, oq, border,
141
+ * focus and accent-strong value is derived from them by the DS's own formulas, which re-resolve on `:root` and on the
142
+ * theme selectors; so stamp it on `<html>`, or on an element that also carries `data-theme`. Absolutes, glass, the
143
+ * float well, sunken and tertiary keep the DS's dark and light values. Light keeps the Gruvbox light inks, accent, status
144
+ * and palette; its grounds (surface primary and secondary, oq 08 16 24 32) are the Gruvbox light grounds mixed 24% toward
145
+ * white, then cut to 30% of their chroma in Oklab at the same lightness: near-neutral warm white (W17, 2026-11-18,
146
+ * decided for his review). Specificity is two attributes so it beats `:root[data-theme="light"]` above and the dark blocks in
147
+ * kol-base-tokens.css; the system mirror is three.
148
+ * ============================================================================= */
149
+ [data-theme-variant="kolbox"]:is(:root, [data-theme="light"], .light) {
150
+ --kol-surface-primary: #f7f6f0;
151
+ --kol-surface-on-primary: #3c3836;
152
+ --kol-surface-secondary: #f6f4ea;
153
+ --kol-surface-on-secondary: #3c3836;
154
+ --kol-surface-inverse: #3c3836;
155
+ --kol-surface-on-inverse: #f9f5d7;
156
+ --kol-accent-primary: #9c4a1e;
157
+ --kol-accent-on-primary: #f9f5d7;
158
+ /* the top rail's mode track: in light the grounds sit too close to carry it, so the track takes the next grey down
159
+ and the current tab the ground (his ruling 2026-11-18). Dark sets neither and keeps the component's own values. */
160
+ --kol-kolbox-track: var(--kol-kolbox-canvas);
161
+ --kol-kolbox-track-active: var(--kol-surface-primary);
162
+ /* the editor's canvas (and the plates that share its grey): its own surface, out of the oq ladder */
163
+ --kol-kolbox-canvas: #eeebe2;
164
+ /* the look's fills, hovers and lines are fg washes, the oq ladder is ink (W16.7). Light keeps the drawn tones within
165
+ 0.05 of the oq steps they replace, against the rail ground: field and hover fg-08 1.15 (was 1.15), the strong fill
166
+ and line fg-16 1.32 (1.35), the rails' and sections' line fg-08 1.15 (1.15) */
167
+ --kol-kolbox-field: var(--kol-fg-08);
168
+ --kol-kolbox-field-strong: var(--kol-fg-16);
169
+ /* THE ONE EDGE (plan-2026-11-23-editor-measured-against-figma W4b): every kolbox border, outline, ring and rule reads
170
+ it, 1px. Figma draws one edge, its dark #444444 (measured 2026-11-23, _tmp/2026-11-23-editor-diff); light takes
171
+ Figma light's #e6e6e6 (decided for his review). Was two lines, fg-08 and the strong fg-16 */
172
+ --kol-kolbox-line: #e6e6e6;
173
+ /* the rulers' numbers, the text ink at this share over the rail ground (W15.1): 54 reads 2.94 on the light ground, the
174
+ 32 dark keeps read 1.81 here */
175
+ --kol-kolbox-ruler-ink: 54%;
176
+ --ui-info: #076678;
177
+ --ui-success: #79740e;
178
+ --ui-warning: #af3a03;
179
+ --ui-error: #9d0006;
180
+ --kol-palette-blue: #076678;
181
+ --kol-palette-teal: #427b58;
182
+ --kol-palette-green: #79740e;
183
+ --kol-palette-yellow: #b57614;
184
+ --kol-palette-red: #9d0006;
185
+ --kol-palette-orange: #af3a03;
186
+ --kol-palette-purple: #8f3f71;
187
+ /* the oq ladder rises from the rail ground; ink only (W16.7) */
188
+ --kol-oq-08: #e8e4db;
189
+ --kol-oq-16: #e0dcd3;
190
+ --kol-oq-24: #d7d3cb;
191
+ --kol-oq-32: #c6c2bc;
192
+ --kol-oq-48: #a89984;
193
+ --kol-oq-64: #7c6f64;
194
+ }
195
+
196
+ [data-theme-variant="kolbox"]:is([data-theme="dark"], .dark) {
197
+ /* dark weights as Figma's own dark UI measures them (plan-2026-11-23-editor-measured-against-figma W2): labels and rows 450, headings and the selected row 550. Were 300 / 400 (his test 2026-11-18, by eye) */
198
+ --kol-kolbox-label-weight: 450; --kol-kolbox-row-weight: 450; --kol-kolbox-title-weight: 550;
199
+ --kol-kolbox-track: initial;
200
+ --kol-kolbox-track-active: initial;
201
+ --kol-surface-primary: #1d2021;
202
+ --kol-surface-on-primary: #ffffff;
203
+ --kol-surface-secondary: #282828;
204
+ --kol-surface-on-secondary: #ffffff;
205
+ --kol-surface-inverse: #ebdbb2;
206
+ --kol-surface-on-inverse: #1d2021;
207
+ --kol-accent-primary: #fabd2f;
208
+ --kol-accent-on-primary: #1d2021;
209
+ --ui-info: #83a598;
210
+ --ui-success: #b8bb26;
211
+ --ui-warning: #fe8019;
212
+ --ui-error: #fb4934;
213
+ --kol-palette-blue: #83a598;
214
+ --kol-palette-teal: #8ec07c;
215
+ --kol-palette-green: #b8bb26;
216
+ --kol-palette-yellow: #fabd2f;
217
+ --kol-palette-red: #fb4934;
218
+ --kol-palette-orange: #fe8019;
219
+ --kol-palette-purple: #d3869b;
220
+ /* W16.4 and W16.7, measured on Figma's own UI 2026-11-20 (_tmp/2026-11-20-w16/figma-measures.md): its field, hover
221
+ and selected fills read 1.19 against its rail ground, its lines 1.43. Ours are fg washes over our rail ground
222
+ #282828 (the oq ladder is ink): field and hover fg-06 1.20, line fg-12 1.47, the strong fill and line fg-24 2.21
223
+ (the oq-24 step it replaces, 2.21). The canvas grey is its own surface */
224
+ --kol-kolbox-field: var(--kol-fg-06);
225
+ --kol-kolbox-field-strong: var(--kol-fg-24);
226
+ --kol-oq-08: #343434;
227
+ --kol-oq-16: #414141;
228
+ --kol-kolbox-canvas: #393939;
229
+ --kol-kolbox-line: #444444; /* THE ONE EDGE, Figma's measured edge (W4b, 2026-11-23); was fg-12 */
230
+ --kol-kolbox-ruler-ink: 32%;
231
+ --kol-accent-tint: color-mix(in srgb, var(--kol-accent-primary) 16%, transparent);
232
+ --kol-oq-24: #5c5c5c;
233
+ --kol-oq-32: #6d6d6d;
234
+ --kol-oq-48: #8f8f8f;
235
+ --kol-oq-64: #b2b2b2;
236
+ }
237
+
238
+ /* System-follow kolbox dark — only when no data-theme is stamped. MIRROR of the block above, edit both. */
239
+ @media (prefers-color-scheme: dark) {
240
+ :root:not([data-theme])[data-theme-variant="kolbox"] {
241
+ /* dark weights as Figma's own dark UI measures them (plan-2026-11-23-editor-measured-against-figma W2): labels and rows 450, headings and the selected row 550. Were 300 / 400 (his test 2026-11-18, by eye) */
242
+ --kol-kolbox-label-weight: 450; --kol-kolbox-row-weight: 450; --kol-kolbox-title-weight: 550;
243
+ --kol-kolbox-track: initial;
244
+ --kol-kolbox-track-active: initial;
245
+ --kol-surface-primary: #1d2021;
246
+ --kol-surface-on-primary: #ffffff;
247
+ --kol-surface-secondary: #282828;
248
+ --kol-surface-on-secondary: #ffffff;
249
+ --kol-surface-inverse: #ebdbb2;
250
+ --kol-surface-on-inverse: #1d2021;
251
+ --kol-accent-primary: #fabd2f;
252
+ --kol-accent-on-primary: #1d2021;
253
+ --ui-info: #83a598;
254
+ --ui-success: #b8bb26;
255
+ --ui-warning: #fe8019;
256
+ --ui-error: #fb4934;
257
+ --kol-palette-blue: #83a598;
258
+ --kol-palette-teal: #8ec07c;
259
+ --kol-palette-green: #b8bb26;
260
+ --kol-palette-yellow: #fabd2f;
261
+ --kol-palette-red: #fb4934;
262
+ --kol-palette-orange: #fe8019;
263
+ --kol-palette-purple: #d3869b;
264
+ /* W16.4 and W16.7, measured on Figma's own UI 2026-11-20 (_tmp/2026-11-20-w16/figma-measures.md): its field, hover
265
+ and selected fills read 1.19 against its rail ground, its lines 1.43. Ours are fg washes over our rail ground
266
+ #282828 (the oq ladder is ink): field and hover fg-06 1.20, line fg-12 1.47, the strong fill and line fg-24 2.21
267
+ (the oq-24 step it replaces, 2.21). The canvas grey is its own surface */
268
+ --kol-kolbox-field: var(--kol-fg-06);
269
+ --kol-kolbox-field-strong: var(--kol-fg-24);
270
+ --kol-oq-08: #343434;
271
+ --kol-oq-16: #414141;
272
+ --kol-kolbox-canvas: #393939;
273
+ --kol-kolbox-line: #444444; /* THE ONE EDGE, Figma's measured edge (W4b, 2026-11-23); was fg-12 */
274
+ --kol-kolbox-ruler-ink: 32%;
275
+ --kol-accent-tint: color-mix(in srgb, var(--kol-accent-primary) 16%, transparent);
276
+ --kol-oq-24: #5c5c5c;
277
+ --kol-oq-32: #6d6d6d;
278
+ --kol-oq-48: #8f8f8f;
279
+ --kol-oq-64: #b2b2b2;
280
+ }
281
+ }
282
+
283
+ /* =============================================================================
284
+ * THEME VARIANTS: KOLCORE, MINIMAL, FOLIO (plan-2026-11-18-kolbox-system W6, 8.2, W15) — the library's `theme` and
285
+ * `type` modes, value for value (_tmp/2026-11-18-kolbox-system/themes.json). Same pattern and precedence as kolbox
286
+ * above: a variant sets colors and the two families, nothing else, and only where it differs from KOL's default.
287
+ *
288
+ * KOLCORE is KOL's default look under a name: `data-theme-variant="kolcore"` has no block here, so every value is the
289
+ * default's, in every theme state.
290
+ * ============================================================================= */
291
+
292
+ /* MINIMAL — dark is apps/minimal's; light is its plain inverse (W15.3, decided for his review): every base and pinned
293
+ * oq step channel-inverted, status kept where it holds 4.5:1 on the white ground, else scaled toward black to the least
294
+ * that does. Everything else is KOL's own dark or light. */
295
+ [data-theme-variant="minimal"]:is(:root, [data-theme="light"], .light) {
296
+ --kol-surface-primary: #ffffff;
297
+ --kol-surface-on-primary: #030407;
298
+ --kol-surface-secondary: #f5f5f5;
299
+ --kol-surface-on-secondary: #030407;
300
+ --kol-surface-inverse: #030407;
301
+ --kol-surface-on-inverse: #ffffff;
302
+ --kol-accent-primary: #030407;
303
+ --kol-accent-on-primary: #f1f1ee;
304
+ --kol-oq-08: #e8e8e8;
305
+ --kol-oq-16: #e0e0e0;
306
+ --kol-oq-24: #d5d5d5;
307
+ --kol-oq-32: #c2c2c2;
308
+ --kol-oq-48: #949494;
309
+ --kol-oq-64: #5e5e5e;
310
+ --ui-error: #be5656;
311
+ --ui-warning: #8e740c;
312
+ --ui-info: #4678b6;
313
+ --ui-success: #268657;
314
+ }
315
+
316
+ [data-theme-variant="minimal"]:is([data-theme="dark"], .dark) {
317
+ --kol-surface-primary: #000000;
318
+ --kol-surface-on-primary: #fcfbf8;
319
+ --kol-surface-secondary: #0a0a0a;
320
+ --kol-surface-on-secondary: #fcfbf8;
321
+ --kol-surface-inverse: #fcfbf8;
322
+ --kol-surface-on-inverse: #000000;
323
+ --kol-accent-primary: #fcfbf8;
324
+ --kol-accent-on-primary: #0e0e11;
325
+ --kol-oq-08: #171717;
326
+ --kol-oq-16: #1f1f1f;
327
+ --kol-oq-24: #2a2a2a;
328
+ --kol-oq-32: #3d3d3d;
329
+ --kol-oq-48: #6b6b6b;
330
+ --kol-oq-64: #a1a1a1;
331
+ --ui-error: #F87171;
332
+ --ui-warning: #FACC15;
333
+ --ui-info: #60A5FA;
334
+ --ui-success: #3DD68C;
335
+ }
336
+
337
+ /* System-follow minimal dark — only when no data-theme is stamped. MIRROR of the block above, edit both. */
338
+ @media (prefers-color-scheme: dark) {
339
+ :root:not([data-theme])[data-theme-variant="minimal"] {
340
+ --kol-surface-primary: #000000;
341
+ --kol-surface-on-primary: #fcfbf8;
342
+ --kol-surface-secondary: #0a0a0a;
343
+ --kol-surface-on-secondary: #fcfbf8;
344
+ --kol-surface-inverse: #fcfbf8;
345
+ --kol-surface-on-inverse: #000000;
346
+ --kol-accent-primary: #fcfbf8;
347
+ --kol-accent-on-primary: #0e0e11;
348
+ --kol-oq-08: #171717;
349
+ --kol-oq-16: #1f1f1f;
350
+ --kol-oq-24: #2a2a2a;
351
+ --kol-oq-32: #3d3d3d;
352
+ --kol-oq-48: #6b6b6b;
353
+ --kol-oq-64: #a1a1a1;
354
+ --ui-error: #F87171;
355
+ --ui-warning: #FACC15;
356
+ --ui-info: #60A5FA;
357
+ --ui-success: #3DD68C;
358
+ }
359
+ }
360
+
361
+ /* FOLIO — apps/folio's paper, ink, green and mint; status and palette stay KOL's. */
362
+ [data-theme-variant="folio"]:is(:root, [data-theme="light"], .light) {
363
+ --kol-surface-primary: #faf9f5;
364
+ --kol-surface-on-primary: #262922;
365
+ --kol-surface-secondary: #f0f0e9;
366
+ --kol-surface-on-secondary: #262922;
367
+ --kol-surface-inverse: #262922;
368
+ --kol-surface-on-inverse: #faf9f5;
369
+ --kol-accent-primary: #365f49;
370
+ --kol-accent-on-primary: #faf9f5;
371
+ --kol-accent-tint: #e0eee2;
372
+ --kol-oq-16: #d4d6cc;
373
+ --kol-oq-64: #73766d;
374
+ }
375
+
376
+ [data-theme-variant="folio"]:is([data-theme="dark"], .dark) {
377
+ --kol-surface-primary: #1b1d19;
378
+ --kol-surface-on-primary: #ecebe3;
379
+ --kol-surface-secondary: #24271f;
380
+ --kol-surface-on-secondary: #ecebe3;
381
+ --kol-surface-inverse: #ecebe3;
382
+ --kol-surface-on-inverse: #1b1d19;
383
+ --kol-accent-primary: #a1b4a8;
384
+ --kol-accent-on-primary: #1b1d19;
385
+ --kol-accent-tint: #243128;
386
+ --kol-oq-16: #3b3f35;
387
+ --kol-oq-64: #a4a79c;
388
+ }
389
+
390
+ /* System-follow folio dark — only when no data-theme is stamped. MIRROR of the block above, edit both. */
391
+ @media (prefers-color-scheme: dark) {
392
+ :root:not([data-theme])[data-theme-variant="folio"] {
393
+ --kol-surface-primary: #1b1d19;
394
+ --kol-surface-on-primary: #ecebe3;
395
+ --kol-surface-secondary: #24271f;
396
+ --kol-surface-on-secondary: #ecebe3;
397
+ --kol-surface-inverse: #ecebe3;
398
+ --kol-surface-on-inverse: #1b1d19;
399
+ --kol-accent-primary: #a1b4a8;
400
+ --kol-accent-on-primary: #1b1d19;
401
+ --kol-accent-tint: #243128;
402
+ --kol-oq-16: #3b3f35;
403
+ --kol-oq-64: #a4a79c;
404
+ }
405
+ }
406
+
407
+ /* =============================================================================
408
+ * FOLIO'S OWN TOKENS (Folio migration batch 0, 2026-11-22) — apps/folio's color block, moved in value for value from
409
+ * apps/folio/src/index.css (where they were Tailwind's `--color-folio-*`, and `--folio-*` for the switches' inputs).
410
+ * They are not the `folio` theme variant above: that one re-points KOL's bases; these are Folio's own paper, ink and
411
+ * accents, read by the `variant="folio"` parts and by apps/folio.
412
+ *
413
+ * :root Folio's day set, as Tailwind's @theme put it (every consumer has the names)
414
+ * [data-folio-theme="light|dark"] Folio's day or night set; on the nearest element, so a canvas can flip it
415
+ * [data-folio-palette="kol"] paper and ink from the KOL neutrals the frame passes as --kol-folio-kol-light,
416
+ * --kol-folio-kol-dark (and --kol-folio-kol-surface); muted, rule, surface mixed
417
+ * [data-folio-accent="<name>"] green, teal, blue, orange, red, purple: the strong ink and its soft ground
418
+ *
419
+ * Order is load-bearing (the accent before dark, so dark lifts the accent's ink). A host reading these through Tailwind
420
+ * registers them `@theme inline`, so a utility resolves at the element and every switch reaches it.
421
+ * ============================================================================= */
422
+ :root {
423
+ --kol-folio-paper: #faf9f5;
424
+ --kol-folio-ink: #262922;
425
+ --kol-folio-muted: #73766d;
426
+ --kol-folio-rule: #d4d6cc;
427
+ --kol-folio-surface: #f0f0e9;
428
+ --kol-folio-mint: #e0eee2;
429
+ --kol-folio-green: #365f49;
430
+ }
431
+
432
+ /* the accent: each is a strong ink (action, progress) and its soft ground (selection), both 4.5:1 or more for their text */
433
+ [data-folio-accent] { --kol-folio-green: var(--kol-folio-accent); --kol-folio-mint: var(--kol-folio-accent-soft); }
434
+ [data-folio-accent="green"] { --kol-folio-accent: #365f49; --kol-folio-accent-soft: #e0eee2; }
435
+ [data-folio-accent="teal"] { --kol-folio-accent: #2b6668; --kol-folio-accent-soft: #d6eaea; }
436
+ [data-folio-accent="blue"] { --kol-folio-accent: #3740d3; --kol-folio-accent-soft: #e1e2fa; }
437
+ [data-folio-accent="orange"] { --kol-folio-accent: #9a5600; --kol-folio-accent-soft: #f7e6c8; }
438
+ [data-folio-accent="red"] { --kol-folio-accent: #ad3434; --kol-folio-accent-soft: #f5dcdc; }
439
+ [data-folio-accent="purple"] { --kol-folio-accent: #7029cc; --kol-folio-accent-soft: #ece0fd; }
440
+
441
+ /* the palette on the KOL neutrals: the off-white and the dark are picked from the KOL neutral ramp; the rest is mixed
442
+ from those two. Light: off-white paper, dark ink; dark: the reverse. */
443
+ [data-folio-palette="kol"] {
444
+ --kol-folio-paper: var(--kol-folio-kol-light, #fafafa);
445
+ --kol-folio-ink: var(--kol-folio-kol-dark, #121215);
446
+ }
447
+ [data-folio-palette="kol"][data-folio-theme="dark"] {
448
+ --kol-folio-paper: var(--kol-folio-kol-dark, #121215);
449
+ --kol-folio-ink: var(--kol-folio-kol-light, #fafafa);
450
+ }
451
+ [data-folio-palette="kol"] {
452
+ --kol-folio-muted: color-mix(in oklab, var(--kol-folio-ink) 62%, var(--kol-folio-paper));
453
+ --kol-folio-rule: color-mix(in oklab, var(--kol-folio-ink) 16%, var(--kol-folio-paper));
454
+ --kol-folio-surface: color-mix(in oklab, var(--kol-folio-ink) 5%, var(--kol-folio-paper));
455
+ }
456
+ /* an off-white that brings its own highlight (the cream's #F0F0E9) uses it on light paper */
457
+ [data-folio-palette="kol"]:not([data-folio-theme="dark"]) { --kol-folio-surface: var(--kol-folio-kol-surface, color-mix(in oklab, var(--kol-folio-ink) 5%, var(--kol-folio-paper))); }
458
+
459
+ /* dark: Folio's own night set; on the KOL palette the blocks above flip paper and ink instead. The accent's ink lifts
460
+ toward white and its ground sinks into the paper, so both keep their contrast. */
461
+ [data-folio-theme="dark"]:not([data-folio-palette="kol"]) {
462
+ --kol-folio-paper: #1b1d19;
463
+ --kol-folio-surface: #24271f;
464
+ --kol-folio-ink: #ecebe3;
465
+ --kol-folio-muted: #a4a79c;
466
+ --kol-folio-rule: #3b3f35;
467
+ }
468
+ /* a canvas set light inside a dark frame (the editor's View, Canvas): Folio's own day set again */
469
+ [data-folio-theme="light"]:not([data-folio-palette="kol"]) {
470
+ --kol-folio-paper: #faf9f5;
471
+ --kol-folio-surface: #f0f0e9;
472
+ --kol-folio-ink: #262922;
473
+ --kol-folio-muted: #73766d;
474
+ --kol-folio-rule: #d4d6cc;
475
+ }
476
+ /* a Text document's page: white on light, the paper on dark; the nearest theme attribute wins, so the canvas can flip it */
477
+ [data-folio-theme] { --kol-folio-page: #fff; --kol-folio-page-ink: #262922; }
478
+ [data-folio-theme="dark"] { --kol-folio-page: var(--kol-folio-paper); --kol-folio-page-ink: var(--kol-folio-ink); }
479
+ [data-folio-theme="dark"] {
480
+ --kol-folio-green: color-mix(in oklab, var(--kol-folio-accent, #365f49) 45%, white);
481
+ --kol-folio-mint: color-mix(in oklab, var(--kol-folio-accent, #365f49) 32%, var(--kol-folio-paper));
482
+ }
483
+
131
484
  /* =============================================================================
132
485
  * DARK MODE
133
486
  * Explicit dark-mode surface overrides ([data-theme="dark"], .dark) live in