@slashsuite/themes 0.4.1 → 0.5.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.
package/README.md CHANGED
@@ -55,6 +55,44 @@ the docs and the e2e all read this folder. `themes.test.ts` is the contract, and
55
55
  file here. Run it with `bunx moon run themes:test`. The repo's
56
56
  [README](https://github.com/slashsuite/uislash#how-to-add-a-theme) has the steps.
57
57
 
58
+ `bg-white/95` is the app header's ground: map it to your card colour, or to your canvas if the
59
+ header sits on the page ground.
60
+
61
+ ## Make a brand theme
62
+
63
+ A brand theme is an existing theme with its accent swapped. The one way to make one is a spec and
64
+ the theme builder, never a copied CSS file edited by hand. Write a spec in
65
+ `tools/theme-builder/specs/` that names a base theme in this folder and the accent's six colours:
66
+
67
+ | Field | What it paints |
68
+ | --- | --- |
69
+ | `fill` | the primary button, the selected tab and chip, the selection highlight |
70
+ | `fillHover` | the primary button under the pointer |
71
+ | `label` | the text on the fill |
72
+ | `text` | the accent text and inline links (`--hc-accent`) |
73
+ | `textHover` | that text under the pointer |
74
+ | `edge` | the accent border, the checkbox, the focus ring |
75
+
76
+ `name` names the hue in the generated comments. Then run:
77
+
78
+ ```sh
79
+ bun tools/theme-builder/src/cli.ts tools/theme-builder/specs/<brand>.json
80
+ ```
81
+
82
+ It rewrites only the accent and the theme's id, scope and header, measures the result against the
83
+ same contrast, distinction, coverage and selection contracts as `themes.test.ts`, and writes
84
+ `themes/<id>.css` only when every theme in the spec passes; otherwise it names each failure and
85
+ writes nothing. It also reports how close the accent sits to the status colours (info, positive,
86
+ warn, danger): an accent under 0.09 in OKLab from a status text, or under 0.12 from a status fill,
87
+ reads as that status, so pick another tone. `theme-builder:test` fails when a committed file is not
88
+ what its spec builds.
89
+
90
+ Do: start from the base whose canvas and ink you want, and let the builder find the failing pair,
91
+ then deepen or lift that one colour.
92
+
93
+ Don't: copy a theme file and change its accent by hand. Nothing measures it until the suite runs,
94
+ and the next change to the base never reaches it.
95
+
58
96
  ## Colours for chrome the kit cannot draw
59
97
 
60
98
  Some third-party DOM is not made of `@slashsuite/ui-react` parts, so it cannot take a utility: a
@@ -57,6 +57,14 @@
57
57
  --hc-cat-8: #b07704; /* text-yellow-600 */
58
58
  }
59
59
 
60
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
61
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
62
+ .latte ::selection,
63
+ .latte::selection {
64
+ background-color: #8839ef;
65
+ color: #ffffff;
66
+ }
67
+
60
68
  /* The page canvas: AppShell paints it; white cards lift off the base. */
61
69
  .latte .bg-gray-50 {
62
70
  background-color: #eff1f5; /* base */
@@ -111,17 +119,27 @@
111
119
  outline-color: #eff1f5; /* base */
112
120
  }
113
121
 
114
- /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
122
+ /* The media matte (Image `mat="white"`): the white mat a QR code is scanned off. It stays white in every
115
123
  theme, dark ones included, as the scrim above stays black. */
116
124
  .latte .bg-white\/100 {
117
125
  background-color: #ffffff;
118
126
  }
127
+ /* The app header's ground: card. */
128
+ .latte .bg-white\/95 {
129
+ background-color: #ffffff;
130
+ }
119
131
 
120
132
  /* Text */
121
133
  .latte .text-slate-900,
122
134
  .latte .text-slate-800 {
123
135
  color: #4c4f69; /* text: incl. bold totals/footers */
124
136
  }
137
+ /* Headings in primary ink take a deeper tone than the body, which read too light at text #4c4f69
138
+ (7.1:1 on the base). #232634 is Catppuccin Frappe's crust, the ink PixelSlash's site had to add
139
+ by hand: 13.3:1 on the base, 15.0:1 on the card, 12.4:1 on mantle. */
140
+ .latte :is(h1, h2, h3).text-slate-900 {
141
+ color: #232634; /* frappe crust */
142
+ }
125
143
  .latte .text-slate-700,
126
144
  .latte .text-slate-600 {
127
145
  color: #5c5f77; /* subtext1 */
@@ -305,13 +323,11 @@
305
323
  (0.06) so the accent text on them clears 4.5:1; the text tones are darkened from their Latte token
306
324
  for the same bar on white, mantle and the tint. */
307
325
  .latte .bg-emerald-50,
308
- .latte .bg-emerald-50\/60,
309
- .latte .bg-emerald-100 {
326
+ .latte .bg-emerald-50\/60 {
310
327
  background-color: rgba(64, 160, 43, 0.06); /* green tint */
311
328
  }
312
329
  .latte .bg-amber-50,
313
- .latte .bg-amber-50\/60,
314
- .latte .bg-amber-100 {
330
+ .latte .bg-amber-50\/60 {
315
331
  background-color: rgba(223, 142, 29, 0.06); /* yellow tint */
316
332
  }
317
333
  .latte .bg-red-50 {
@@ -388,12 +404,10 @@
388
404
  .latte .text-yellow-600 {
389
405
  color: #b07704; /* cat8: yellow */
390
406
  }
391
- .latte .border-emerald-200,
392
- .latte .border-emerald-300 {
407
+ .latte .border-emerald-200 {
393
408
  border-color: rgba(64, 160, 43, 0.4);
394
409
  }
395
- .latte .border-amber-200,
396
- .latte .border-amber-300 {
410
+ .latte .border-amber-200 {
397
411
  border-color: rgba(223, 142, 29, 0.4);
398
412
  }
399
413
  .latte .border-amber-600 {
@@ -401,6 +415,8 @@
401
415
  }
402
416
  .latte .border-red-200,
403
417
  .latte .aria-invalid\:border-red-200[aria-invalid="true"],
418
+ .latte .user-invalid\:border-red-200:user-invalid,
419
+ .latte .has-user-invalid\:border-red-200:has(:user-invalid),
404
420
  .latte .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
405
421
  border-color: rgba(
406
422
  210,
@@ -413,8 +429,7 @@
413
429
  .latte .border-red-400 {
414
430
  border-color: rgba(210, 15, 57, 0.45);
415
431
  }
416
- .latte .border-blue-200,
417
- .latte .border-blue-300 {
432
+ .latte .border-blue-200 {
418
433
  border-color: rgba(30, 102, 245, 0.4);
419
434
  }
420
435
 
@@ -450,3 +465,52 @@
450
465
  .latte .bg-red-50 .text-red-700 {
451
466
  color: #b90e31;
452
467
  }
468
+
469
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
470
+ Each hue is this theme's own remap of the family's identity fill (bg-orange-600, bg-violet-600,
471
+ bg-sky-600, bg-emerald-600, bg-amber-600; blue is text-blue-700). The fill is 25% of it over
472
+ the card white (bg-white); the edge is it mixed 30% toward the ink (text-slate-900). sRGB mix.
473
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
474
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
475
+ .latte .bg-orange-100 {
476
+ background-color: #f3ddce; /* orange: bg-orange-600 #c5530b at 20%, lowered from 25% so the ink keeps 4.5:1 */
477
+ }
478
+ .latte .bg-violet-100 {
479
+ background-color: #ede1fd; /* violet: bg-violet-600 #8839ef at 15%, lowered from 25% so the ink keeps 4.5:1 */
480
+ }
481
+ .latte .bg-sky-100 {
482
+ background-color: #dfe2f6; /* sky: bg-sky-600 #5e6dd1 at 20%, lowered from 25% so the ink keeps 4.5:1 */
483
+ }
484
+ .latte .bg-emerald-100 {
485
+ background-color: #d6e7d3; /* green: bg-emerald-600 #338621 at 20%, lowered from 25% so the ink keeps 4.5:1 */
486
+ }
487
+ .latte .bg-amber-100 {
488
+ background-color: #ede1d2; /* yellow: bg-amber-600 #a6681d at 20%, lowered from 25% so the ink keeps 4.5:1 */
489
+ }
490
+ .latte .bg-blue-100 {
491
+ background-color: #dde6f9; /* blue: text-blue-700 #1e5bd4 at 15%, lowered from 25% so the ink keeps 4.5:1 */
492
+ }
493
+ .latte .border-orange-300 {
494
+ border-color: #a15227; /* orange */
495
+ }
496
+ .latte .border-violet-300 {
497
+ border-color: #7640c7; /* violet */
498
+ }
499
+ .latte .border-sky-300 {
500
+ border-color: #5964b2; /* sky */
501
+ }
502
+ .latte .border-emerald-300 {
503
+ border-color: #3b7637; /* green */
504
+ }
505
+ .latte .border-amber-300 {
506
+ border-color: #8b6134; /* yellow */
507
+ }
508
+ .latte .border-blue-300 {
509
+ border-color: #2c57b4; /* blue */
510
+ }
511
+
512
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
513
+ The white media matte above stays white for a code. */
514
+ .latte .bg-zinc-50 {
515
+ background-color: #ffffff; /* the card white, so it looks as the mat always has */
516
+ }
@@ -24,6 +24,7 @@
24
24
  .dark {
25
25
  color-scheme: dark;
26
26
  background-color: #181825; /* mantle: the canvas the base-coloured cards lift off */
27
+ color: #cdd6f4; /* text: the ink of a page outside AppShell */
27
28
  /* The type faces: Inter where installed, the system stack otherwise. Custom properties on the
28
29
  scope, so every `font-sans` / `font-mono` below it (AppShell's page font included) follows. */
29
30
  --font-sans:
@@ -51,6 +52,14 @@
51
52
  --hc-cat-8: #ffebb9; /* text-yellow-600 */
52
53
  }
53
54
 
55
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
56
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
57
+ .dark ::selection,
58
+ .dark::selection {
59
+ background-color: #cba6f7;
60
+ color: #11111b;
61
+ }
62
+
54
63
  /* The page canvas: AppShell paints it, so cards (base) lift off it. */
55
64
  .dark .bg-gray-50 {
56
65
  background-color: #181825; /* mantle */
@@ -105,11 +114,15 @@
105
114
  outline-color: #cdd6f4; /* text */
106
115
  }
107
116
 
108
- /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
117
+ /* The media matte (Image `mat="white"`): the white mat a QR code is scanned off. It stays white in every
109
118
  theme, dark ones included, as the scrim above stays black. */
110
119
  .dark .bg-white\/100 {
111
120
  background-color: #ffffff;
112
121
  }
122
+ /* The app header's ground: card. */
123
+ .dark .bg-white\/95 {
124
+ background-color: #1e1e2e;
125
+ }
113
126
 
114
127
  /* Text */
115
128
  .dark .text-slate-900,
@@ -296,13 +309,11 @@
296
309
 
297
310
  /* Coloured callouts / chips: tint backgrounds, lighten text & borders */
298
311
  .dark .bg-emerald-50,
299
- .dark .bg-emerald-50\/60,
300
- .dark .bg-emerald-100 {
312
+ .dark .bg-emerald-50\/60 {
301
313
  background-color: rgba(166, 227, 161, 0.13);
302
314
  }
303
315
  .dark .bg-amber-50,
304
- .dark .bg-amber-50\/60,
305
- .dark .bg-amber-100 {
316
+ .dark .bg-amber-50\/60 {
306
317
  background-color: rgba(249, 226, 175, 0.13);
307
318
  }
308
319
  .dark .bg-red-50 {
@@ -384,12 +395,10 @@
384
395
  .dark .text-yellow-600 {
385
396
  color: #ffebb9; /* cat8: yellow */
386
397
  }
387
- .dark .border-emerald-200,
388
- .dark .border-emerald-300 {
398
+ .dark .border-emerald-200 {
389
399
  border-color: rgba(166, 227, 161, 0.4);
390
400
  }
391
- .dark .border-amber-200,
392
- .dark .border-amber-300 {
401
+ .dark .border-amber-200 {
393
402
  border-color: rgba(249, 226, 175, 0.4);
394
403
  }
395
404
  .dark .border-amber-600 {
@@ -397,6 +406,8 @@
397
406
  }
398
407
  .dark .border-red-200,
399
408
  .dark .aria-invalid\:border-red-200[aria-invalid="true"],
409
+ .dark .user-invalid\:border-red-200:user-invalid,
410
+ .dark .has-user-invalid\:border-red-200:has(:user-invalid),
400
411
  .dark .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
401
412
  /* The invalid field's edge (and an `aria-invalid` control's edge), the only sign of the error besides the message: red/65, 3:1 or more
402
413
  on every surface (red/45 was 2.25:1 on surface0). */
@@ -406,8 +417,7 @@
406
417
  .dark .border-red-400 {
407
418
  border-color: rgba(243, 139, 168, 0.45);
408
419
  }
409
- .dark .border-blue-200,
410
- .dark .border-blue-300 {
420
+ .dark .border-blue-200 {
411
421
  border-color: rgba(137, 180, 250, 0.4);
412
422
  }
413
423
 
@@ -443,3 +453,52 @@
443
453
  .dark .bg-red-50 .text-red-700 {
444
454
  color: #f7b5c7;
445
455
  }
456
+
457
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
458
+ Each hue is this theme's own remap of the family's identity fill (bg-orange-600, bg-violet-600,
459
+ bg-sky-600, bg-emerald-600, bg-amber-600; blue is text-blue-700). The fill is 30% of it over
460
+ the card (bg-white); the edge is it mixed 50% with the line (border-slate-200). sRGB mix.
461
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
462
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
463
+ .dark .bg-orange-100 {
464
+ background-color: #4a3c40; /* orange: bg-orange-600 #fab387 at 20%, lowered from 30% so the ink keeps 4.5:1 */
465
+ }
466
+ .dark .bg-violet-100 {
467
+ background-color: #413956; /* violet: bg-violet-600 #cba6f7 at 20%, lowered from 30% so the ink keeps 4.5:1 */
468
+ }
469
+ .dark .bg-sky-100 {
470
+ background-color: #3c3e58; /* sky: bg-sky-600 #b4befe at 20%, lowered from 30% so the ink keeps 4.5:1 */
471
+ }
472
+ .dark .bg-emerald-100 {
473
+ background-color: #323c3f; /* green: bg-emerald-600 #a6e3a1 at 15%, lowered from 30% so the ink keeps 4.5:1 */
474
+ }
475
+ .dark .bg-amber-100 {
476
+ background-color: #3f3b41; /* yellow: bg-amber-600 #f9e2af at 15%, lowered from 30% so the ink keeps 4.5:1 */
477
+ }
478
+ .dark .bg-blue-100 {
479
+ background-color: #333c57; /* blue: text-blue-700 #89b4fa at 20%, lowered from 30% so the ink keeps 4.5:1 */
480
+ }
481
+ .dark .border-orange-300 {
482
+ border-color: #a07d71; /* orange */
483
+ }
484
+ .dark .border-violet-300 {
485
+ border-color: #8877a9; /* violet */
486
+ }
487
+ .dark .border-sky-300 {
488
+ border-color: #7d83ac; /* sky */
489
+ }
490
+ .dark .border-emerald-300 {
491
+ border-color: #76957e; /* green */
492
+ }
493
+ .dark .border-amber-300 {
494
+ border-color: #9f9585; /* yellow */
495
+ }
496
+ .dark .border-blue-300 {
497
+ border-color: #677eaa; /* blue */
498
+ }
499
+
500
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
501
+ The white media matte above stays white for a code. */
502
+ .dark .bg-zinc-50 {
503
+ background-color: #11111b; /* crust, a step below the mantle canvas */
504
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashsuite/themes",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "The UISlash themes: one CSS file per theme, each remapping the Tailwind utilities @slashsuite/ui-react is written against.",
5
5
  "keywords": [
6
6
  "dark-mode",
@@ -28,6 +28,7 @@
28
28
  .slash-suite-dark {
29
29
  color-scheme: dark;
30
30
  background-color: #0d1326; /* mantle: the canvas the base-coloured cards lift off */
31
+ color: #e2e8fc; /* text: the ink of a page outside AppShell */
31
32
  /* The type faces: Inter, headings included, and JetBrains Mono after the platform's own
32
33
  ui-monospace, which the consuming site loads (this package ships no font file); the system
33
34
  stack otherwise. Custom properties on the scope,
@@ -57,6 +58,14 @@
57
58
  --hc-cat-8: #ffebb9; /* text-yellow-600 */
58
59
  }
59
60
 
61
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
62
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
63
+ .slash-suite-dark ::selection,
64
+ .slash-suite-dark::selection {
65
+ background-color: #fab387;
66
+ color: #080d1c;
67
+ }
68
+
60
69
  /* The page canvas: AppShell paints it, so cards (base) lift off it. */
61
70
  .slash-suite-dark .bg-gray-50 {
62
71
  background-color: #0d1326; /* mantle */
@@ -111,11 +120,15 @@
111
120
  outline-color: #e2e8fc; /* text */
112
121
  }
113
122
 
114
- /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
123
+ /* The media matte (Image `mat="white"`): the white mat a QR code is scanned off. It stays white in every
115
124
  theme, dark ones included, as the scrim above stays black. */
116
125
  .slash-suite-dark .bg-white\/100 {
117
126
  background-color: #ffffff;
118
127
  }
128
+ /* The app header's ground: the page ground. */
129
+ .slash-suite-dark .bg-white\/95 {
130
+ background-color: #0d1326;
131
+ }
119
132
 
120
133
  /* Text */
121
134
  .slash-suite-dark .text-slate-900,
@@ -271,9 +284,9 @@
271
284
  color: #b1b8d0; /* overlay2 */
272
285
  }
273
286
 
274
- /* Avatar identity colours: violet-600 is the peach accent above; the rest sit on the theme. */
287
+ /* Avatar identity colours: violet-600 is the accent above; the rest sit on the theme. */
275
288
  .slash-suite-dark .bg-orange-600 {
276
- background-color: #cba6f7; /* mauve: peach is the accent's own fill */
289
+ background-color: #cba6f7; /* mauve */
277
290
  }
278
291
  .slash-suite-dark .bg-cyan-600 {
279
292
  background-color: #74c7ec; /* sapphire */
@@ -301,13 +314,11 @@
301
314
 
302
315
  /* Coloured callouts / chips: tint backgrounds, lighten text & borders */
303
316
  .slash-suite-dark .bg-emerald-50,
304
- .slash-suite-dark .bg-emerald-50\/60,
305
- .slash-suite-dark .bg-emerald-100 {
317
+ .slash-suite-dark .bg-emerald-50\/60 {
306
318
  background-color: rgba(166, 227, 161, 0.13);
307
319
  }
308
320
  .slash-suite-dark .bg-amber-50,
309
- .slash-suite-dark .bg-amber-50\/60,
310
- .slash-suite-dark .bg-amber-100 {
321
+ .slash-suite-dark .bg-amber-50\/60 {
311
322
  background-color: rgba(249, 226, 175, 0.13);
312
323
  }
313
324
  .slash-suite-dark .bg-red-50 {
@@ -349,8 +360,8 @@
349
360
  .slash-suite-dark .text-sky-700 {
350
361
  color: #89dceb; /* sky */
351
362
  }
352
- /* Chart-only tones (StackedBar, Legend): neutral is a grey apart from muted, violet is the peach
353
- of the accent. */
363
+ /* Chart-only tones (StackedBar, Legend): neutral is a grey apart from muted, violet is the accent's
364
+ pastel. */
354
365
  .slash-suite-dark .text-neutral-500 {
355
366
  color: #7f849c; /* overlay1: overlay0 is under 3:1 on surface0, and a chart mark needs 3:1 */
356
367
  }
@@ -384,12 +395,10 @@
384
395
  .slash-suite-dark .text-yellow-600 {
385
396
  color: #ffebb9; /* cat8: yellow */
386
397
  }
387
- .slash-suite-dark .border-emerald-200,
388
- .slash-suite-dark .border-emerald-300 {
398
+ .slash-suite-dark .border-emerald-200 {
389
399
  border-color: rgba(166, 227, 161, 0.4);
390
400
  }
391
- .slash-suite-dark .border-amber-200,
392
- .slash-suite-dark .border-amber-300 {
401
+ .slash-suite-dark .border-amber-200 {
393
402
  border-color: rgba(249, 226, 175, 0.4);
394
403
  }
395
404
  .slash-suite-dark .border-amber-600 {
@@ -397,6 +406,8 @@
397
406
  }
398
407
  .slash-suite-dark .border-red-200,
399
408
  .slash-suite-dark .aria-invalid\:border-red-200[aria-invalid="true"],
409
+ .slash-suite-dark .user-invalid\:border-red-200:user-invalid,
410
+ .slash-suite-dark .has-user-invalid\:border-red-200:has(:user-invalid),
400
411
  .slash-suite-dark .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
401
412
  /* The invalid field's edge (and an `aria-invalid` control's edge), the only sign of the error besides the message: red/65, 3:1 or more
402
413
  on every surface (red/45 was 2.25:1 on surface0). */
@@ -406,12 +417,11 @@
406
417
  .slash-suite-dark .border-red-400 {
407
418
  border-color: rgba(243, 139, 168, 0.45);
408
419
  }
409
- .slash-suite-dark .border-blue-200,
410
- .slash-suite-dark .border-blue-300 {
420
+ .slash-suite-dark .border-blue-200 {
411
421
  border-color: rgba(137, 180, 250, 0.4);
412
422
  }
413
423
 
414
- /* Inline links: peach (green is reserved for positive values). Alias of @slashsuite/ui-react's
424
+ /* Inline links: the accent (green is reserved for positive values). Alias of @slashsuite/ui-react's
415
425
  TextLink (text-violet-600, hover:text-violet-700, remapped above), kept for consumers that still
416
426
  write class="link" on a bare <a>. */
417
427
  .slash-suite-dark .link {
@@ -424,8 +434,8 @@
424
434
  color: #fdc9a8; /* peach, lifted: the hovered link */
425
435
  }
426
436
 
427
- /* The hero glow (Hero): three ribbons behind a landing page's title, a soft wash of peach, teal and
428
- pink on the mantle. Decoration: the contrast contract holds the hero's text over all three at once. */
437
+ /* The hero glow (Hero): three ribbons behind a landing page's title, a soft wash of the accent, teal
438
+ and pink on the mantle. Decoration: the contrast contract holds the hero's text over all three at once. */
429
439
  .slash-suite-dark .bg-indigo-400\/25 {
430
440
  background-color: rgba(250, 179, 135, 0.09); /* peach */
431
441
  }
@@ -443,3 +453,52 @@
443
453
  .slash-suite-dark .bg-red-50 .text-red-700 {
444
454
  color: #f7b0c4;
445
455
  }
456
+
457
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
458
+ Slash Night, as the Slash suite's tool cards: each hue is its Catppuccin Mocha pastel. The fill is a
459
+ 30% wash of it over the card (bg-white); the edge is it mixed 65% with the line (border-slate-200,
460
+ the s1 line). Mixed in OKLab, as the suite's own cards are.
461
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
462
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
463
+ .slash-suite-dark .bg-orange-100 {
464
+ background-color: #564c57; /* orange: peach #fab387 at 30% */
465
+ }
466
+ .slash-suite-dark .bg-violet-100 {
467
+ background-color: #494771; /* violet: mauve #cba6f7 at 30% */
468
+ }
469
+ .slash-suite-dark .bg-sky-100 {
470
+ background-color: #37556e; /* sky: sky #89dceb at 30% */
471
+ }
472
+ .slash-suite-dark .bg-emerald-100 {
473
+ background-color: #3e585d; /* green: green #a6e3a1 at 30% */
474
+ }
475
+ .slash-suite-dark .bg-amber-100 {
476
+ background-color: #494f5b; /* yellow: yellow #f9e2af at 25%, lowered from 30% so the ink keeps 4.5:1 */
477
+ }
478
+ .slash-suite-dark .bg-blue-100 {
479
+ background-color: #374a72; /* blue: blue #89b4fa at 30% */
480
+ }
481
+ .slash-suite-dark .border-orange-300 {
482
+ border-color: #b28c7e; /* orange */
483
+ }
484
+ .slash-suite-dark .border-violet-300 {
485
+ border-color: #9582c1; /* violet */
486
+ }
487
+ .slash-suite-dark .border-sky-300 {
488
+ border-color: #6ba4b9; /* sky */
489
+ }
490
+ .slash-suite-dark .border-emerald-300 {
491
+ border-color: #7ca98e; /* green */
492
+ }
493
+ .slash-suite-dark .border-amber-300 {
494
+ border-color: #b0a897; /* yellow */
495
+ }
496
+ .slash-suite-dark .border-blue-300 {
497
+ border-color: #6b8bc2; /* blue */
498
+ }
499
+
500
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
501
+ The white media matte above stays white for a code. */
502
+ .slash-suite-dark .bg-zinc-50 {
503
+ background-color: #080d1c; /* Slash Night crust, a step below the canvas */
504
+ }
package/slash-suite.css CHANGED
@@ -68,6 +68,14 @@
68
68
  --hc-cat-8: #b07704; /* text-yellow-600 */
69
69
  }
70
70
 
71
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
72
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
73
+ .slash-suite ::selection,
74
+ .slash-suite::selection {
75
+ background-color: #fab387;
76
+ color: #080d1c;
77
+ }
78
+
71
79
  /* The page canvas: AppShell paints it; white cards lift off the base. */
72
80
  .slash-suite .bg-gray-50 {
73
81
  background-color: #eef2f9; /* base */
@@ -121,11 +129,15 @@
121
129
  outline-color: #eef2f9; /* base */
122
130
  }
123
131
 
124
- /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
132
+ /* The media matte (Image `mat="white"`): the white mat a QR code is scanned off. It stays white in every
125
133
  theme, dark ones included, as the scrim above stays black. */
126
134
  .slash-suite .bg-white\/100 {
127
135
  background-color: #ffffff;
128
136
  }
137
+ /* The app header's ground: the page ground. */
138
+ .slash-suite .bg-white\/95 {
139
+ background-color: #eef2f9;
140
+ }
129
141
 
130
142
  /* Text */
131
143
  .slash-suite .text-slate-900,
@@ -252,7 +264,7 @@
252
264
  background-color: #389426; /* green #40a02b, one step darker; the dark label keeps 4.5:1 */
253
265
  }
254
266
  .slash-suite .text-emerald-50 {
255
- color: #080d1c; /* Slash Night crust: dark ink on the green button, as on the peach one */
267
+ color: #080d1c; /* Slash Night crust: dark ink on the green button, as on the accent one */
256
268
  }
257
269
  .slash-suite .border-emerald-600 {
258
270
  border-color: #3c9827; /* green #40a02b, darkened: the edge needs 3:1 on white */
@@ -277,11 +289,11 @@
277
289
  color: #5b5e74; /* subtext0 */
278
290
  }
279
291
 
280
- /* Avatar identity colours: violet-600 is the peach accent above; the rest are Latte's own colours,
292
+ /* Avatar identity colours: violet-600 is the accent above; the rest are Latte's own colours,
281
293
  on which the dark initials (text-violet-50) clear 4.5:1. Emerald is also the positive button and
282
294
  bar fill, amber the warn bar fill (ProgressBar), so they stay deep enough to read on the track. */
283
295
  .slash-suite .bg-orange-600 {
284
- background-color: #dd7878; /* flamingo: peach is the accent's own fill */
296
+ background-color: #dd7878; /* flamingo */
285
297
  }
286
298
  .slash-suite .bg-cyan-600 {
287
299
  background-color: #209fb5; /* sapphire */
@@ -309,15 +321,13 @@
309
321
 
310
322
  /* Coloured callouts / chips: tint backgrounds, full-strength text & borders. The tints are light
311
323
  (0.06) so the tone text on them clears 4.5:1; the text tones are darkened from their Latte token
312
- for the same bar on white, mantle and the tint. The peach tint is the pastel at 0.2. */
324
+ for the same bar on white, mantle and the tint. The accent tint is its pastel at 0.2. */
313
325
  .slash-suite .bg-emerald-50,
314
- .slash-suite .bg-emerald-50\/60,
315
- .slash-suite .bg-emerald-100 {
326
+ .slash-suite .bg-emerald-50\/60 {
316
327
  background-color: rgba(64, 160, 43, 0.06); /* green tint */
317
328
  }
318
329
  .slash-suite .bg-amber-50,
319
- .slash-suite .bg-amber-50\/60,
320
- .slash-suite .bg-amber-100 {
330
+ .slash-suite .bg-amber-50\/60 {
321
331
  background-color: rgba(223, 142, 29, 0.06); /* yellow tint */
322
332
  }
323
333
  .slash-suite .bg-red-50 {
@@ -344,7 +354,7 @@
344
354
  .slash-suite .text-red-700,
345
355
  .slash-suite .text-red-800,
346
356
  .slash-suite .text-red-900 {
347
- color: #c2103d; /* red #d20f39, darkened and turned toward crimson: 0.09 apart from the deep peach link */
357
+ color: #c2103d; /* red #d20f39, darkened and turned toward crimson: 0.09 apart from the accent's link */
348
358
  }
349
359
  .slash-suite .text-blue-600,
350
360
  .slash-suite .text-blue-700,
@@ -360,7 +370,7 @@
360
370
  color: #046b96; /* sky #04a5e5 */
361
371
  }
362
372
  /* Chart-only tones (StackedBar, Legend): neutral is a grey apart from muted, violet is the deep
363
- peach of the accent. */
373
+ tone of the accent. */
364
374
  .slash-suite .text-neutral-500 {
365
375
  color: #808397; /* overlay1 #85879c, darkened: a chart tone needs 3:1 */
366
376
  }
@@ -394,12 +404,10 @@
394
404
  .slash-suite .text-yellow-600 {
395
405
  color: #b07704; /* cat8: yellow */
396
406
  }
397
- .slash-suite .border-emerald-200,
398
- .slash-suite .border-emerald-300 {
407
+ .slash-suite .border-emerald-200 {
399
408
  border-color: rgba(64, 160, 43, 0.4);
400
409
  }
401
- .slash-suite .border-amber-200,
402
- .slash-suite .border-amber-300 {
410
+ .slash-suite .border-amber-200 {
403
411
  border-color: rgba(223, 142, 29, 0.4);
404
412
  }
405
413
  .slash-suite .border-amber-600 {
@@ -407,6 +415,8 @@
407
415
  }
408
416
  .slash-suite .border-red-200,
409
417
  .slash-suite .aria-invalid\:border-red-200[aria-invalid="true"],
418
+ .slash-suite .user-invalid\:border-red-200:user-invalid,
419
+ .slash-suite .has-user-invalid\:border-red-200:has(:user-invalid),
410
420
  .slash-suite .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
411
421
  border-color: rgba(
412
422
  210,
@@ -419,12 +429,11 @@
419
429
  .slash-suite .border-red-400 {
420
430
  border-color: rgba(210, 15, 57, 0.45);
421
431
  }
422
- .slash-suite .border-blue-200,
423
- .slash-suite .border-blue-300 {
432
+ .slash-suite .border-blue-200 {
424
433
  border-color: rgba(30, 102, 245, 0.4);
425
434
  }
426
435
 
427
- /* Inline links: deep peach (green is reserved for positive values). Alias of @slashsuite/ui-react's
436
+ /* Inline links: the accent's deep tone (green is reserved for positive values). Alias of @slashsuite/ui-react's
428
437
  TextLink (text-violet-600, hover:text-violet-700, remapped above), kept for consumers that still
429
438
  write class="link" on a bare <a>. */
430
439
  .slash-suite .link {
@@ -437,7 +446,7 @@
437
446
  color: #8a2e03; /* as hover:text-violet-700 above */
438
447
  }
439
448
 
440
- /* The hero glow (Hero): three ribbons behind a landing page's title, peach, teal and pink kept faint
449
+ /* The hero glow (Hero): three ribbons behind a landing page's title, the accent, teal and pink kept faint
441
450
  on the light base. Decoration: the contrast contract holds the hero's text over all three at once. */
442
451
  .slash-suite .bg-indigo-400\/25 {
443
452
  background-color: rgba(250, 179, 135, 0.1); /* peach */
@@ -456,3 +465,52 @@
456
465
  .slash-suite .bg-red-50 .text-red-700 {
457
466
  color: #b60f39;
458
467
  }
468
+
469
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
470
+ Slash Day, as the Slash suite's tool cards: each hue is its Catppuccin Mocha pastel. The fill is 40% of
471
+ it in the card white (bg-white); the edge is it mixed 30% toward the ink (text-slate-900). Mixed
472
+ in OKLab, as the suite's own cards are.
473
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
474
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
475
+ .slash-suite .bg-orange-100 {
476
+ background-color: #ffe1cf; /* orange: peach #fab387 at 40% */
477
+ }
478
+ .slash-suite .bg-violet-100 {
479
+ background-color: #eadcfd; /* violet: mauve #cba6f7 at 40% */
480
+ }
481
+ .slash-suite .bg-sky-100 {
482
+ background-color: #d2f1f7; /* sky: sky #89dceb at 40% */
483
+ }
484
+ .slash-suite .bg-emerald-100 {
485
+ background-color: #dcf4da; /* green: green #a6e3a1 at 40% */
486
+ }
487
+ .slash-suite .bg-amber-100 {
488
+ background-color: #fdf4e0; /* yellow: yellow #f9e2af at 40% */
489
+ }
490
+ .slash-suite .bg-blue-100 {
491
+ background-color: #cfe1ff; /* blue: blue #89b4fa at 40% */
492
+ }
493
+ .slash-suite .border-orange-300 {
494
+ border-color: #b48671; /* orange */
495
+ }
496
+ .slash-suite .border-violet-300 {
497
+ border-color: #957dba; /* violet */
498
+ }
499
+ .slash-suite .border-sky-300 {
500
+ border-color: #69a1b2; /* sky */
501
+ }
502
+ .slash-suite .border-emerald-300 {
503
+ border-color: #7ca682; /* green */
504
+ }
505
+ .slash-suite .border-amber-300 {
506
+ border-color: #b3a58c; /* yellow */
507
+ }
508
+ .slash-suite .border-blue-300 {
509
+ border-color: #6986bc; /* blue */
510
+ }
511
+
512
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
513
+ The white media matte above stays white for a code. */
514
+ .slash-suite .bg-zinc-50 {
515
+ background-color: #ffffff; /* the card white, so it looks as the mat always has */
516
+ }
@@ -4,6 +4,7 @@
4
4
  .thriftloop-dark {
5
5
  color-scheme: dark;
6
6
  background-color: #0c191d;
7
+ color: #e6edef;
7
8
  --font-sans:
8
9
  "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
9
10
  sans-serif;
@@ -28,6 +29,14 @@
28
29
  --hc-cat-8: #ffebb9; /* text-yellow-600 */
29
30
  }
30
31
 
32
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
33
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
34
+ .thriftloop-dark ::selection,
35
+ .thriftloop-dark::selection {
36
+ background-color: #e2622b;
37
+ color: #060c0e;
38
+ }
39
+
31
40
  .thriftloop-dark :is(h1, h2, h3, .font-heading) {
32
41
  font-family: var(--font-heading);
33
42
  }
@@ -92,6 +101,10 @@
92
101
  .thriftloop-dark .bg-white\/100 {
93
102
  background-color: #ffffff;
94
103
  }
104
+ /* The app header's ground: card. */
105
+ .thriftloop-dark .bg-white\/95 {
106
+ background-color: #102026;
107
+ }
95
108
 
96
109
  .thriftloop-dark .text-slate-900,
97
110
  .thriftloop-dark .text-slate-800 {
@@ -281,14 +294,12 @@
281
294
  }
282
295
 
283
296
  .thriftloop-dark .bg-emerald-50,
284
- .thriftloop-dark .bg-emerald-50\/60,
285
- .thriftloop-dark .bg-emerald-100 {
297
+ .thriftloop-dark .bg-emerald-50\/60 {
286
298
  background-color: #1c3a39;
287
299
  }
288
300
 
289
301
  .thriftloop-dark .bg-amber-50,
290
- .thriftloop-dark .bg-amber-50\/60,
291
- .thriftloop-dark .bg-amber-100 {
302
+ .thriftloop-dark .bg-amber-50\/60 {
292
303
  background-color: #2f372b;
293
304
  }
294
305
 
@@ -379,13 +390,11 @@
379
390
  color: #fca5a5;
380
391
  }
381
392
 
382
- .thriftloop-dark .border-emerald-200,
383
- .thriftloop-dark .border-emerald-300 {
393
+ .thriftloop-dark .border-emerald-200 {
384
394
  border-color: rgba(110, 231, 183, 0.4);
385
395
  }
386
396
 
387
- .thriftloop-dark .border-amber-200,
388
- .thriftloop-dark .border-amber-300 {
397
+ .thriftloop-dark .border-amber-200 {
389
398
  border-color: rgba(252, 211, 77, 0.4);
390
399
  }
391
400
 
@@ -395,6 +404,8 @@
395
404
 
396
405
  .thriftloop-dark .border-red-200,
397
406
  .thriftloop-dark .aria-invalid\:border-red-200[aria-invalid="true"],
407
+ .thriftloop-dark .user-invalid\:border-red-200:user-invalid,
408
+ .thriftloop-dark .has-user-invalid\:border-red-200:has(:user-invalid),
398
409
  .thriftloop-dark .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
399
410
  border-color: rgba(252, 165, 165, 0.65);
400
411
  }
@@ -404,8 +415,7 @@
404
415
  border-color: rgba(252, 165, 165, 0.45);
405
416
  }
406
417
 
407
- .thriftloop-dark .border-blue-200,
408
- .thriftloop-dark .border-blue-300 {
418
+ .thriftloop-dark .border-blue-200 {
409
419
  border-color: rgba(94, 234, 212, 0.4);
410
420
  }
411
421
 
@@ -431,3 +441,52 @@
431
441
  .thriftloop-dark .bg-rose-400\/25 {
432
442
  background-color: rgba(180, 190, 254, 0.04);
433
443
  }
444
+
445
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
446
+ Each hue is this theme's own remap of the family's identity fill (bg-orange-600, bg-violet-600,
447
+ bg-sky-600, bg-emerald-600, bg-amber-600; blue is text-blue-700). The fill is 30% of it over
448
+ the card (bg-white); the edge is it mixed 50% with the line (border-slate-200). sRGB mix.
449
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
450
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
451
+ .thriftloop-dark .bg-orange-100 {
452
+ background-color: #4b453e; /* orange: bg-orange-600 #fab387 at 25%, lowered from 30% so the ink keeps 4.5:1 */
453
+ }
454
+ .thriftloop-dark .bg-violet-100 {
455
+ background-color: #4f3428; /* violet: bg-violet-600 #e2622b at 30% */
456
+ }
457
+ .thriftloop-dark .bg-sky-100 {
458
+ background-color: #39485c; /* sky: bg-sky-600 #b4befe at 25%, lowered from 30% so the ink keeps 4.5:1 */
459
+ }
460
+ .thriftloop-dark .bg-emerald-100 {
461
+ background-color: #28524a; /* green: bg-emerald-600 #6ee7b7 at 25%, lowered from 30% so the ink keeps 4.5:1 */
462
+ }
463
+ .thriftloop-dark .bg-amber-100 {
464
+ background-color: #3f4741; /* yellow: bg-amber-600 #f9e2af at 20%, lowered from 30% so the ink keeps 4.5:1 */
465
+ }
466
+ .thriftloop-dark .bg-blue-100 {
467
+ background-color: #204849; /* blue: text-blue-700 #5eead4 at 20%, lowered from 30% so the ink keeps 4.5:1 */
468
+ }
469
+ .thriftloop-dark .border-orange-300 {
470
+ border-color: #8e7c6c; /* orange */
471
+ }
472
+ .thriftloop-dark .border-violet-300 {
473
+ border-color: #82533e; /* violet */
474
+ }
475
+ .thriftloop-dark .border-sky-300 {
476
+ border-color: #6b81a7; /* sky */
477
+ }
478
+ .thriftloop-dark .border-emerald-300 {
479
+ border-color: #489684; /* green */
480
+ }
481
+ .thriftloop-dark .border-amber-300 {
482
+ border-color: #8d9380; /* yellow */
483
+ }
484
+ .thriftloop-dark .border-blue-300 {
485
+ border-color: #409792; /* blue */
486
+ }
487
+
488
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
489
+ The white media matte above stays white for a code. */
490
+ .thriftloop-dark .bg-zinc-50 {
491
+ background-color: #081214; /* the scrim's ground, a step below the canvas */
492
+ }
package/thriftloop.css CHANGED
@@ -28,6 +28,14 @@
28
28
  --hc-cat-8: #946231; /* text-yellow-600 */
29
29
  }
30
30
 
31
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
32
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
33
+ .thriftloop ::selection,
34
+ .thriftloop::selection {
35
+ background-color: #c2410c;
36
+ color: #ffffff;
37
+ }
38
+
31
39
  .thriftloop :is(h1, h2, h3, .font-heading) {
32
40
  font-family: var(--font-heading);
33
41
  }
@@ -92,6 +100,10 @@
92
100
  .thriftloop .bg-white\/100 {
93
101
  background-color: #ffffff;
94
102
  }
103
+ /* The app header's ground: card. */
104
+ .thriftloop .bg-white\/95 {
105
+ background-color: #fffaea;
106
+ }
95
107
 
96
108
  .thriftloop .text-slate-900,
97
109
  .thriftloop .text-slate-800 {
@@ -266,14 +278,12 @@
266
278
  }
267
279
 
268
280
  .thriftloop .bg-emerald-50,
269
- .thriftloop .bg-emerald-50\/60,
270
- .thriftloop .bg-emerald-100 {
281
+ .thriftloop .bg-emerald-50\/60 {
271
282
  background-color: #ecfdf5;
272
283
  }
273
284
 
274
285
  .thriftloop .bg-amber-50,
275
- .thriftloop .bg-amber-50\/60,
276
- .thriftloop .bg-amber-100 {
286
+ .thriftloop .bg-amber-50\/60 {
277
287
  background-color: #fffbeb;
278
288
  }
279
289
 
@@ -364,13 +374,11 @@
364
374
  color: #b31960;
365
375
  }
366
376
 
367
- .thriftloop .border-emerald-200,
368
- .thriftloop .border-emerald-300 {
377
+ .thriftloop .border-emerald-200 {
369
378
  border-color: rgba(4, 120, 87, 0.3);
370
379
  }
371
380
 
372
- .thriftloop .border-amber-200,
373
- .thriftloop .border-amber-300 {
381
+ .thriftloop .border-amber-200 {
374
382
  border-color: rgba(180, 83, 9, 0.3);
375
383
  }
376
384
 
@@ -380,12 +388,13 @@
380
388
 
381
389
  .thriftloop .border-red-200,
382
390
  .thriftloop .aria-invalid\:border-red-200[aria-invalid="true"],
391
+ .thriftloop .user-invalid\:border-red-200:user-invalid,
392
+ .thriftloop .has-user-invalid\:border-red-200:has(:user-invalid),
383
393
  .thriftloop .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
384
394
  border-color: rgba(179, 25, 96, 0.7);
385
395
  }
386
396
 
387
- .thriftloop .border-blue-200,
388
- .thriftloop .border-blue-300 {
397
+ .thriftloop .border-blue-200 {
389
398
  border-color: rgba(15, 118, 110, 0.3);
390
399
  }
391
400
 
@@ -412,3 +421,52 @@
412
421
  .thriftloop .bg-rose-400\/25 {
413
422
  background-color: rgba(255, 223, 244, 0.45);
414
423
  }
424
+
425
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
426
+ Each hue is this theme's own remap of the family's identity fill (bg-orange-600, bg-violet-600,
427
+ bg-sky-600, bg-emerald-600, bg-amber-600; blue is text-blue-700). The fill is 25% of it over
428
+ the card white (bg-white); the edge is it mixed 30% toward the ink (text-slate-900). sRGB mix.
429
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
430
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
431
+ .thriftloop .bg-orange-100 {
432
+ background-color: #e8dac4; /* orange: bg-orange-600 #8c5a2b at 20%, lowered from 25% so the ink keeps 4.5:1 */
433
+ }
434
+ .thriftloop .bg-violet-100 {
435
+ background-color: #f3d5be; /* violet: bg-violet-600 #c2410c at 20%, lowered from 25% so the ink keeps 4.5:1 */
436
+ }
437
+ .thriftloop .bg-sky-100 {
438
+ background-color: #d2ddd8; /* sky: bg-sky-600 #1e6a8f at 20%, lowered from 25% so the ink keeps 4.5:1 */
439
+ }
440
+ .thriftloop .bg-emerald-100 {
441
+ background-color: #cde0cd; /* green: bg-emerald-600 #047857 at 20%, lowered from 25% so the ink keeps 4.5:1 */
442
+ }
443
+ .thriftloop .bg-amber-100 {
444
+ background-color: #e4ddc0; /* yellow: bg-amber-600 #7a6a1a at 20%, lowered from 25% so the ink keeps 4.5:1 */
445
+ }
446
+ .thriftloop .bg-blue-100 {
447
+ background-color: #cfe0d1; /* blue: text-blue-700 #0f766e at 20%, lowered from 25% so the ink keeps 4.5:1 */
448
+ }
449
+ .thriftloop .border-orange-300 {
450
+ border-color: #724d24; /* orange */
451
+ }
452
+ .thriftloop .border-violet-300 {
453
+ border-color: #983b0e; /* violet */
454
+ }
455
+ .thriftloop .border-sky-300 {
456
+ border-color: #25586a; /* sky */
457
+ }
458
+ .thriftloop .border-emerald-300 {
459
+ border-color: #136243; /* green */
460
+ }
461
+ .thriftloop .border-amber-300 {
462
+ border-color: #655818; /* yellow */
463
+ }
464
+ .thriftloop .border-blue-300 {
465
+ border-color: #1a6053; /* blue */
466
+ }
467
+
468
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
469
+ The white media matte above stays white for a code. */
470
+ .thriftloop .bg-zinc-50 {
471
+ background-color: #fffaea; /* the card white, so it looks as the mat always has */
472
+ }
package/thrifty-paper.css CHANGED
@@ -57,6 +57,14 @@
57
57
  --hc-cat-8: #946231; /* text-yellow-600 */
58
58
  }
59
59
 
60
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
61
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
62
+ .thrifty-paper ::selection,
63
+ .thrifty-paper::selection {
64
+ background-color: #c2410c;
65
+ color: #ffffff;
66
+ }
67
+
60
68
  /* The page canvas: AppShell paints it; white cards lift off the cream. */
61
69
  .thrifty-paper .bg-gray-50 {
62
70
  background-color: #fdfbf7; /* canvas */
@@ -109,11 +117,15 @@
109
117
  outline-color: #fdfbf7; /* canvas: the accent is 2.4:1 on the scrim */
110
118
  }
111
119
 
112
- /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
120
+ /* The media matte (Image `mat="white"`): the white mat a QR code is scanned off. It stays white in every
113
121
  theme, dark ones included, as the scrim above stays black. */
114
122
  .thrifty-paper .bg-white\/100 {
115
123
  background-color: #ffffff;
116
124
  }
125
+ /* The app header's ground: card. */
126
+ .thrifty-paper .bg-white\/95 {
127
+ background-color: #ffffff;
128
+ }
117
129
 
118
130
  /* Text */
119
131
  .thrifty-paper .text-slate-900,
@@ -265,13 +277,11 @@
265
277
 
266
278
  /* Coloured callouts / chips: the soft fills, the full-strength text. */
267
279
  .thrifty-paper .bg-emerald-50,
268
- .thrifty-paper .bg-emerald-50\/60,
269
- .thrifty-paper .bg-emerald-100 {
280
+ .thrifty-paper .bg-emerald-50\/60 {
270
281
  background-color: #ecfdf5; /* positive-soft */
271
282
  }
272
283
  .thrifty-paper .bg-amber-50,
273
- .thrifty-paper .bg-amber-50\/60,
274
- .thrifty-paper .bg-amber-100 {
284
+ .thrifty-paper .bg-amber-50\/60 {
275
285
  background-color: #fffbeb; /* warn-soft */
276
286
  }
277
287
  .thrifty-paper .bg-blue-50 {
@@ -350,12 +360,10 @@
350
360
  .thrifty-paper .text-red-900 {
351
361
  color: #7a1220; /* danger */
352
362
  }
353
- .thrifty-paper .border-emerald-200,
354
- .thrifty-paper .border-emerald-300 {
363
+ .thrifty-paper .border-emerald-200 {
355
364
  border-color: rgba(4, 120, 87, 0.3); /* positive */
356
365
  }
357
- .thrifty-paper .border-amber-200,
358
- .thrifty-paper .border-amber-300 {
366
+ .thrifty-paper .border-amber-200 {
359
367
  border-color: rgba(180, 83, 9, 0.3); /* warn */
360
368
  }
361
369
  .thrifty-paper .border-amber-600 {
@@ -363,6 +371,8 @@
363
371
  }
364
372
  .thrifty-paper .border-red-200,
365
373
  .thrifty-paper .aria-invalid\:border-red-200[aria-invalid="true"],
374
+ .thrifty-paper .user-invalid\:border-red-200:user-invalid,
375
+ .thrifty-paper .has-user-invalid\:border-red-200:has(:user-invalid),
366
376
  .thrifty-paper .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
367
377
  border-color: rgba(
368
378
  122,
@@ -371,8 +381,7 @@
371
381
  0.7
372
382
  ); /* danger/70: an invalid field's edge, and an `aria-invalid` control's edge, 5.06:1 on white and 4.77:1 on subtle (danger/30 was 1.67:1) */
373
383
  }
374
- .thrifty-paper .border-blue-200,
375
- .thrifty-paper .border-blue-300 {
384
+ .thrifty-paper .border-blue-200 {
376
385
  border-color: rgba(15, 118, 110, 0.3); /* note */
377
386
  }
378
387
 
@@ -401,3 +410,52 @@
401
410
  .thrifty-paper .bg-rose-400\/25 {
402
411
  background-color: rgba(244, 194, 207, 0.26); /* blush */
403
412
  }
413
+
414
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
415
+ Each hue is this theme's own remap of the family's identity fill (bg-orange-600, bg-violet-600,
416
+ bg-sky-600, bg-emerald-600, bg-amber-600; blue is text-blue-700). The fill is 25% of it over
417
+ the card white (bg-white); the edge is it mixed 30% toward the ink (text-slate-900). sRGB mix.
418
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
419
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
420
+ .thrifty-paper .bg-orange-100 {
421
+ background-color: #eee6df; /* orange: bg-orange-600 #8c5a2b at 15%, lowered from 25% so the ink keeps 4.5:1 */
422
+ }
423
+ .thrifty-paper .bg-violet-100 {
424
+ background-color: #f6e3db; /* violet: bg-violet-600 #c2410c at 15%, lowered from 25% so the ink keeps 4.5:1 */
425
+ }
426
+ .thrifty-paper .bg-sky-100 {
427
+ background-color: #dde9ee; /* sky: bg-sky-600 #1e6a8f at 15%, lowered from 25% so the ink keeps 4.5:1 */
428
+ }
429
+ .thrifty-paper .bg-emerald-100 {
430
+ background-color: #d9ebe6; /* green: bg-emerald-600 #047857 at 15%, lowered from 25% so the ink keeps 4.5:1 */
431
+ }
432
+ .thrifty-paper .bg-amber-100 {
433
+ background-color: #e4e1d1; /* yellow: bg-amber-600 #7a6a1a at 20%, lowered from 25% so the ink keeps 4.5:1 */
434
+ }
435
+ .thrifty-paper .bg-blue-100 {
436
+ background-color: #cfe4e2; /* blue: text-blue-700 #0f766e at 20%, lowered from 25% so the ink keeps 4.5:1 */
437
+ }
438
+ .thrifty-paper .border-orange-300 {
439
+ border-color: #6a4725; /* orange */
440
+ }
441
+ .thrifty-paper .border-violet-300 {
442
+ border-color: #90350f; /* violet */
443
+ }
444
+ .thrifty-paper .border-sky-300 {
445
+ border-color: #1d526b; /* sky */
446
+ }
447
+ .thrifty-paper .border-emerald-300 {
448
+ border-color: #0b5c44; /* green */
449
+ }
450
+ .thrifty-paper .border-amber-300 {
451
+ border-color: #5e5219; /* yellow */
452
+ }
453
+ .thrifty-paper .border-blue-300 {
454
+ border-color: #135a54; /* blue */
455
+ }
456
+
457
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
458
+ The white media matte above stays white for a code. */
459
+ .thrifty-paper .bg-zinc-50 {
460
+ background-color: #ffffff; /* the card white, so it looks as the mat always has */
461
+ }