@crewlethq/tokens 0.35.0 → 0.36.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 +17 -1
- package/dist/css/themes/abyss.css +3 -0
- package/dist/css/themes/all.css +27 -0
- package/dist/css/themes/dusk.css +3 -0
- package/dist/css/themes/high-contrast.css +3 -0
- package/dist/css/themes/iris.css +3 -0
- package/dist/css/themes/ledger.css +3 -0
- package/dist/css/themes/nightshade.css +3 -0
- package/dist/css/themes/nocturne.css +3 -0
- package/dist/css/themes/origin.css +3 -0
- package/dist/css/themes/violet.css +3 -0
- package/dist/css/themes.css +3 -0
- package/dist/css/tokens.css +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/themes.d.ts +2 -0
- package/dist/themes.js +4 -2
- package/package.json +1 -1
- package/test/palette.d.mts +2 -0
- package/test/palette.mjs +45 -0
package/README.md
CHANGED
|
@@ -45,6 +45,21 @@ const accent = color.brand.accent;
|
|
|
45
45
|
CSS variables follow Style Dictionary's `--{group}-{path}` convention,
|
|
46
46
|
for example `var(--color-brand-accent)` or `var(--spacing-4)`.
|
|
47
47
|
|
|
48
|
+
## Changed in 0.36.0: a chosen option's edge and fill
|
|
49
|
+
|
|
50
|
+
Two tokens name what a CHOSEN option draws (the template, theme, agent or starting layout a reader picked, the slide being edited), so a page of options is calm and the focus ring is the only accent line on it.
|
|
51
|
+
|
|
52
|
+
| Token | Value | What it is for |
|
|
53
|
+
| --- | --- | --- |
|
|
54
|
+
| `--color-border-selected` | the accent at 0.6; the full accent in a high-contrast theme | The one-pixel edge round a chosen option. It is derived by the build from each palette's accent, so it is a tint mixed toward whatever ground it lands on. |
|
|
55
|
+
| `--color-surface-selected` | an alias of `--color-brand-accent-soft` | The fill behind a chosen option. |
|
|
56
|
+
|
|
57
|
+
The edge is a TINT, so it is not held to the 3:1 a mark clears: the default dark accent itself clears 2.61:1 on its worst ground, which leaves no room for a tint at that floor. The palette suite holds it instead to reading apart from the resting and the strong hairline by dE 9 on every rung (`the selected edge reads apart from a hairline`), and a high-contrast theme to 3:1 on the card and the sheet. A component that draws it never lets the state rest on it alone: it pairs it with the soft fill or a mark of its own (a radio, a check, the slide number in the accent ink) that does clear 3:1. Neither token is a focus indicator; that stays `--color-focus`, at 2px, on `:focus-visible`.
|
|
58
|
+
|
|
59
|
+
| What changed | What to change |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| `--color-border-selected` and `--color-surface-selected` added | Nothing. A stylesheet that draws a chosen option in the full accent can take them in its place. |
|
|
62
|
+
|
|
48
63
|
## Changed in 0.33.0: the projection
|
|
49
64
|
|
|
50
65
|
Five fixed colours for a slide shown full screen, the same in every palette and theme, as `--color-qr-*` is: what is under them is the slide in its own colours, or a projector's black, never the theme's ground.
|
|
@@ -483,13 +498,14 @@ The accent is a violet, and it is **per palette**:
|
|
|
483
498
|
| `--color-text-link-quiet` | `#a9b0ea` | `#484e99` | A link inside running text or a row, which must not compete with the words around it: the accent ink mixed 65% with the secondary text, in OKLab. It takes the accent ink under the pointer and on focus. Measured as an ink. |
|
|
484
499
|
| `--color-brand-accent-soft` | the accent at 0.16 | the accent at 0.125 | The tint behind a selected row or a toggle that is on. |
|
|
485
500
|
| `--color-brand-accent-soft-strong` | the accent at 0.32 | the accent at 0.32 | The border paired with the soft tint. |
|
|
501
|
+
| `--color-border-selected` | the accent at 0.6 | the accent at 0.6 | The edge round a chosen option, paired with `--color-surface-selected` (an alias of the soft tint). |
|
|
486
502
|
| `--color-brand-accent-rgb` | `114, 91, 230` | `115, 90, 242` | The accent as an `r, g, b` triple, for a translucent tint of a stylesheet's own. `--shadow-glow` is composed from it. |
|
|
487
503
|
| `--color-focus` | `#8572fe` | `#735af2` | The focus ring. |
|
|
488
504
|
| `--color-text-on-accent` | `#ffffff` | `#ffffff` | The label on the accent's three fills. |
|
|
489
505
|
|
|
490
506
|
A label on a fill that is not the accent has a token of its own, so a theme whose accent is light enough to carry a dark label (Iris's periwinkle does, at night) never darkens the destructive action's label or a label on the scrim: `--color-text-on-danger` labels the danger fill and its hover, and `--color-text-on-scrim` labels the scrim and the seeded avatar tints. Both are white in every theme.
|
|
491
507
|
|
|
492
|
-
`-rgb
|
|
508
|
+
`-rgb`, `-soft-strong` and `--color-border-selected` are derived from the accent by the build, per palette, and the build suite holds the written `-soft` to the accent's own channels. The marketing root keeps the brand's `#7c56ff` and its own steps (`tokens/color.json`).
|
|
493
509
|
|
|
494
510
|
- **The primary action is the accent.** The monochrome `--color-brand-primary` (white on dark, black on light) is gone: a white primary beside a light-grey secondary was one pair of greys. White clears 4.82:1 on the dark accent and 4.69:1 on the light one.
|
|
495
511
|
- **Its hover and its press are darker, a step each, never brighter.** The label is white, so a brighter fill is a step toward it: a `brightness(1.08)` hover takes the dark accent's label to 4.25:1, under the text floor at the moment the reader is about to press. The approved palette's hover and press are a darker step each (the hover dE 3.44 off the accent in dark and 3.92 in light, the press dE 6.14 past the hover), and the palette suite holds both halves: `a hovered primary action is a visible step away from its label` and `a pressed primary action is a visible step past a hovered one`.
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #2b1e41;
|
|
43
43
|
--color-border-control: #7b738e;
|
|
44
44
|
--color-border-field: #6b5f86;
|
|
45
|
+
--color-border-selected: rgba(134, 51, 254, 0.6);
|
|
45
46
|
--color-focus: #8e4eff;
|
|
46
47
|
--color-feedback-success: #16d297;
|
|
47
48
|
--color-feedback-success-ink: #70e7b5;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #dedae9;
|
|
152
153
|
--color-border-control: #78708b;
|
|
153
154
|
--color-border-field: #868094;
|
|
155
|
+
--color-border-selected: rgba(107, 17, 218, 0.6);
|
|
154
156
|
--color-focus: #6b11da;
|
|
155
157
|
--color-feedback-success: #019472;
|
|
156
158
|
--color-feedback-success-ink: #074f35;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #dedae9;
|
|
261
263
|
--color-border-control: #78708b;
|
|
262
264
|
--color-border-field: #868094;
|
|
265
|
+
--color-border-selected: rgba(107, 17, 218, 0.6);
|
|
263
266
|
--color-focus: #6b11da;
|
|
264
267
|
--color-feedback-success: #019472;
|
|
265
268
|
--color-feedback-success-ink: #074f35;
|
package/dist/css/themes/all.css
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
--color-border-hatch: #232329;
|
|
45
45
|
--color-border-control: #797983;
|
|
46
46
|
--color-border-field: #66666f;
|
|
47
|
+
--color-border-selected: rgba(124, 86, 255, 0.6);
|
|
47
48
|
--color-focus: #7e5bff;
|
|
48
49
|
--color-feedback-success: #3ecf8f;
|
|
49
50
|
--color-feedback-success-ink: #72dead;
|
|
@@ -153,6 +154,7 @@
|
|
|
153
154
|
--color-border-hatch: #e2e2df;
|
|
154
155
|
--color-border-control: #7b7a81;
|
|
155
156
|
--color-border-field: #888884;
|
|
157
|
+
--color-border-selected: rgba(107, 69, 240, 0.6);
|
|
156
158
|
--color-focus: #6b45f0;
|
|
157
159
|
--color-feedback-success: #009b74;
|
|
158
160
|
--color-feedback-success-ink: #106d46;
|
|
@@ -262,6 +264,7 @@
|
|
|
262
264
|
--color-border-hatch: #e2e2df;
|
|
263
265
|
--color-border-control: #7b7a81;
|
|
264
266
|
--color-border-field: #888884;
|
|
267
|
+
--color-border-selected: rgba(107, 69, 240, 0.6);
|
|
265
268
|
--color-focus: #6b45f0;
|
|
266
269
|
--color-feedback-success: #009b74;
|
|
267
270
|
--color-feedback-success-ink: #106d46;
|
|
@@ -371,6 +374,7 @@
|
|
|
371
374
|
--color-border-hatch: #323439;
|
|
372
375
|
--color-border-control: #828ca0;
|
|
373
376
|
--color-border-field: #6c6f74;
|
|
377
|
+
--color-border-selected: rgba(84, 105, 212, 0.6);
|
|
374
378
|
--color-focus: #7d8fe8;
|
|
375
379
|
--color-feedback-success: #3eba82;
|
|
376
380
|
--color-feedback-success-ink: #5db76d;
|
|
@@ -480,6 +484,7 @@
|
|
|
480
484
|
--color-border-hatch: #e5e5e8;
|
|
481
485
|
--color-border-control: #71717a;
|
|
482
486
|
--color-border-field: #87878b;
|
|
487
|
+
--color-border-selected: rgba(84, 105, 212, 0.6);
|
|
483
488
|
--color-focus: #5469d4;
|
|
484
489
|
--color-feedback-success: #0f9a73;
|
|
485
490
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -589,6 +594,7 @@
|
|
|
589
594
|
--color-border-hatch: #e5e5e8;
|
|
590
595
|
--color-border-control: #71717a;
|
|
591
596
|
--color-border-field: #87878b;
|
|
597
|
+
--color-border-selected: rgba(84, 105, 212, 0.6);
|
|
592
598
|
--color-focus: #5469d4;
|
|
593
599
|
--color-feedback-success: #0f9a73;
|
|
594
600
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -698,6 +704,7 @@
|
|
|
698
704
|
--color-border-hatch: #2b1e41;
|
|
699
705
|
--color-border-control: #7b738e;
|
|
700
706
|
--color-border-field: #6b5f86;
|
|
707
|
+
--color-border-selected: rgba(134, 51, 254, 0.6);
|
|
701
708
|
--color-focus: #8e4eff;
|
|
702
709
|
--color-feedback-success: #16d297;
|
|
703
710
|
--color-feedback-success-ink: #70e7b5;
|
|
@@ -807,6 +814,7 @@
|
|
|
807
814
|
--color-border-hatch: #dedae9;
|
|
808
815
|
--color-border-control: #78708b;
|
|
809
816
|
--color-border-field: #868094;
|
|
817
|
+
--color-border-selected: rgba(107, 17, 218, 0.6);
|
|
810
818
|
--color-focus: #6b11da;
|
|
811
819
|
--color-feedback-success: #019472;
|
|
812
820
|
--color-feedback-success-ink: #074f35;
|
|
@@ -916,6 +924,7 @@
|
|
|
916
924
|
--color-border-hatch: #dedae9;
|
|
917
925
|
--color-border-control: #78708b;
|
|
918
926
|
--color-border-field: #868094;
|
|
927
|
+
--color-border-selected: rgba(107, 17, 218, 0.6);
|
|
919
928
|
--color-focus: #6b11da;
|
|
920
929
|
--color-feedback-success: #019472;
|
|
921
930
|
--color-feedback-success-ink: #074f35;
|
|
@@ -1025,6 +1034,7 @@
|
|
|
1025
1034
|
--color-border-hatch: #292339;
|
|
1026
1035
|
--color-border-control: #767285;
|
|
1027
1036
|
--color-border-field: #66607a;
|
|
1037
|
+
--color-border-selected: rgba(149, 132, 255, 0.6);
|
|
1028
1038
|
--color-focus: #9584ff;
|
|
1029
1039
|
--color-feedback-success: #27cf9b;
|
|
1030
1040
|
--color-feedback-success-ink: #65e8c7;
|
|
@@ -1134,6 +1144,7 @@
|
|
|
1134
1144
|
--color-border-hatch: #dbd8e7;
|
|
1135
1145
|
--color-border-control: #4c495b;
|
|
1136
1146
|
--color-border-field: #858294;
|
|
1147
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
1137
1148
|
--color-focus: #4a2abd;
|
|
1138
1149
|
--color-feedback-success: #039571;
|
|
1139
1150
|
--color-feedback-success-ink: #055e47;
|
|
@@ -1243,6 +1254,7 @@
|
|
|
1243
1254
|
--color-border-hatch: #dbd8e7;
|
|
1244
1255
|
--color-border-control: #4c495b;
|
|
1245
1256
|
--color-border-field: #858294;
|
|
1257
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
1246
1258
|
--color-focus: #4a2abd;
|
|
1247
1259
|
--color-feedback-success: #039571;
|
|
1248
1260
|
--color-feedback-success-ink: #055e47;
|
|
@@ -1352,6 +1364,7 @@
|
|
|
1352
1364
|
--color-border-hatch: #292232;
|
|
1353
1365
|
--color-border-control: #837b92;
|
|
1354
1366
|
--color-border-field: #6c6278;
|
|
1367
|
+
--color-border-selected: rgba(214, 183, 252, 0.6);
|
|
1355
1368
|
--color-focus: #d6b7fc;
|
|
1356
1369
|
--color-feedback-success: #8ec899;
|
|
1357
1370
|
--color-feedback-success-ink: #65af76;
|
|
@@ -1461,6 +1474,7 @@
|
|
|
1461
1474
|
--color-border-hatch: #dcd7e3;
|
|
1462
1475
|
--color-border-control: #7d7089;
|
|
1463
1476
|
--color-border-field: #888290;
|
|
1477
|
+
--color-border-selected: rgba(78, 36, 126, 0.6);
|
|
1464
1478
|
--color-focus: #4e247e;
|
|
1465
1479
|
--color-feedback-success: #527b67;
|
|
1466
1480
|
--color-feedback-success-ink: #026452;
|
|
@@ -1570,6 +1584,7 @@
|
|
|
1570
1584
|
--color-border-hatch: #dcd7e3;
|
|
1571
1585
|
--color-border-control: #7d7089;
|
|
1572
1586
|
--color-border-field: #888290;
|
|
1587
|
+
--color-border-selected: rgba(78, 36, 126, 0.6);
|
|
1573
1588
|
--color-focus: #4e247e;
|
|
1574
1589
|
--color-feedback-success: #527b67;
|
|
1575
1590
|
--color-feedback-success-ink: #026452;
|
|
@@ -1679,6 +1694,7 @@
|
|
|
1679
1694
|
--color-border-hatch: #1f2432;
|
|
1680
1695
|
--color-border-control: #727a8f;
|
|
1681
1696
|
--color-border-field: #5e677c;
|
|
1697
|
+
--color-border-selected: rgba(90, 98, 240, 0.6);
|
|
1682
1698
|
--color-focus: #606af8;
|
|
1683
1699
|
--color-feedback-success: #34c98b;
|
|
1684
1700
|
--color-feedback-success-ink: #74dcae;
|
|
@@ -1788,6 +1804,7 @@
|
|
|
1788
1804
|
--color-border-hatch: #dbdfe8;
|
|
1789
1805
|
--color-border-control: #74798c;
|
|
1790
1806
|
--color-border-field: #838894;
|
|
1807
|
+
--color-border-selected: rgba(76, 85, 230, 0.6);
|
|
1791
1808
|
--color-focus: #4c55e6;
|
|
1792
1809
|
--color-feedback-success: #00916f;
|
|
1793
1810
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -1897,6 +1914,7 @@
|
|
|
1897
1914
|
--color-border-hatch: #dbdfe8;
|
|
1898
1915
|
--color-border-control: #74798c;
|
|
1899
1916
|
--color-border-field: #838894;
|
|
1917
|
+
--color-border-selected: rgba(76, 85, 230, 0.6);
|
|
1900
1918
|
--color-focus: #4c55e6;
|
|
1901
1919
|
--color-feedback-success: #00916f;
|
|
1902
1920
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -2006,6 +2024,7 @@
|
|
|
2006
2024
|
--color-border-hatch: #1f2432;
|
|
2007
2025
|
--color-border-control: #72798b;
|
|
2008
2026
|
--color-border-field: #5e667c;
|
|
2027
|
+
--color-border-selected: rgba(149, 132, 255, 0.6);
|
|
2009
2028
|
--color-focus: #9584ff;
|
|
2010
2029
|
--color-feedback-success: #20cc98;
|
|
2011
2030
|
--color-feedback-success-ink: #65e8c7;
|
|
@@ -2115,6 +2134,7 @@
|
|
|
2115
2134
|
--color-border-hatch: #dbdfe8;
|
|
2116
2135
|
--color-border-control: #464b5c;
|
|
2117
2136
|
--color-border-field: #818692;
|
|
2137
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
2118
2138
|
--color-focus: #4a2abd;
|
|
2119
2139
|
--color-feedback-success: #039571;
|
|
2120
2140
|
--color-feedback-success-ink: #055e47;
|
|
@@ -2224,6 +2244,7 @@
|
|
|
2224
2244
|
--color-border-hatch: #dbdfe8;
|
|
2225
2245
|
--color-border-control: #464b5c;
|
|
2226
2246
|
--color-border-field: #818692;
|
|
2247
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
2227
2248
|
--color-focus: #4a2abd;
|
|
2228
2249
|
--color-feedback-success: #039571;
|
|
2229
2250
|
--color-feedback-success-ink: #055e47;
|
|
@@ -2333,6 +2354,7 @@
|
|
|
2333
2354
|
--color-border-hatch: #2b2923;
|
|
2334
2355
|
--color-border-control: #827d74;
|
|
2335
2356
|
--color-border-field: #6c6961;
|
|
2357
|
+
--color-border-selected: rgba(77, 107, 239, 0.6);
|
|
2336
2358
|
--color-focus: #5272f6;
|
|
2337
2359
|
--color-feedback-success: #53cc8f;
|
|
2338
2360
|
--color-feedback-success-ink: #95d6a3;
|
|
@@ -2442,6 +2464,7 @@
|
|
|
2442
2464
|
--color-border-hatch: #ddd9cf;
|
|
2443
2465
|
--color-border-control: #7e776b;
|
|
2444
2466
|
--color-border-field: #8b8477;
|
|
2467
|
+
--color-border-selected: rgba(47, 80, 216, 0.6);
|
|
2445
2468
|
--color-focus: #2f50d8;
|
|
2446
2469
|
--color-feedback-success: #1a9368;
|
|
2447
2470
|
--color-feedback-success-ink: #246937;
|
|
@@ -2551,6 +2574,7 @@
|
|
|
2551
2574
|
--color-border-hatch: #ddd9cf;
|
|
2552
2575
|
--color-border-control: #7e776b;
|
|
2553
2576
|
--color-border-field: #8b8477;
|
|
2577
|
+
--color-border-selected: rgba(47, 80, 216, 0.6);
|
|
2554
2578
|
--color-focus: #2f50d8;
|
|
2555
2579
|
--color-feedback-success: #1a9368;
|
|
2556
2580
|
--color-feedback-success-ink: #246937;
|
|
@@ -2660,6 +2684,7 @@
|
|
|
2660
2684
|
--color-border-hatch: #61616f;
|
|
2661
2685
|
--color-border-control: #a2a2b4;
|
|
2662
2686
|
--color-border-field: #9a9aae;
|
|
2687
|
+
--color-border-selected: #6c55e6;
|
|
2663
2688
|
--color-focus: #ffe066;
|
|
2664
2689
|
--color-feedback-success: #34c98b;
|
|
2665
2690
|
--color-feedback-success-ink: #8cefc4;
|
|
@@ -2769,6 +2794,7 @@
|
|
|
2769
2794
|
--color-border-hatch: #92929e;
|
|
2770
2795
|
--color-border-control: #5b5b69;
|
|
2771
2796
|
--color-border-field: #4f4f60;
|
|
2797
|
+
--color-border-selected: #4424c4;
|
|
2772
2798
|
--color-focus: #4424c4;
|
|
2773
2799
|
--color-feedback-success: #0b9a74;
|
|
2774
2800
|
--color-feedback-success-ink: #004b30;
|
|
@@ -2878,6 +2904,7 @@
|
|
|
2878
2904
|
--color-border-hatch: #92929e;
|
|
2879
2905
|
--color-border-control: #5b5b69;
|
|
2880
2906
|
--color-border-field: #4f4f60;
|
|
2907
|
+
--color-border-selected: #4424c4;
|
|
2881
2908
|
--color-focus: #4424c4;
|
|
2882
2909
|
--color-feedback-success: #0b9a74;
|
|
2883
2910
|
--color-feedback-success-ink: #004b30;
|
package/dist/css/themes/dusk.css
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #292232;
|
|
43
43
|
--color-border-control: #837b92;
|
|
44
44
|
--color-border-field: #6c6278;
|
|
45
|
+
--color-border-selected: rgba(214, 183, 252, 0.6);
|
|
45
46
|
--color-focus: #d6b7fc;
|
|
46
47
|
--color-feedback-success: #8ec899;
|
|
47
48
|
--color-feedback-success-ink: #65af76;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #dcd7e3;
|
|
152
153
|
--color-border-control: #7d7089;
|
|
153
154
|
--color-border-field: #888290;
|
|
155
|
+
--color-border-selected: rgba(78, 36, 126, 0.6);
|
|
154
156
|
--color-focus: #4e247e;
|
|
155
157
|
--color-feedback-success: #527b67;
|
|
156
158
|
--color-feedback-success-ink: #026452;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #dcd7e3;
|
|
261
263
|
--color-border-control: #7d7089;
|
|
262
264
|
--color-border-field: #888290;
|
|
265
|
+
--color-border-selected: rgba(78, 36, 126, 0.6);
|
|
263
266
|
--color-focus: #4e247e;
|
|
264
267
|
--color-feedback-success: #527b67;
|
|
265
268
|
--color-feedback-success-ink: #026452;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #61616f;
|
|
43
43
|
--color-border-control: #a2a2b4;
|
|
44
44
|
--color-border-field: #9a9aae;
|
|
45
|
+
--color-border-selected: #6c55e6;
|
|
45
46
|
--color-focus: #ffe066;
|
|
46
47
|
--color-feedback-success: #34c98b;
|
|
47
48
|
--color-feedback-success-ink: #8cefc4;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #92929e;
|
|
152
153
|
--color-border-control: #5b5b69;
|
|
153
154
|
--color-border-field: #4f4f60;
|
|
155
|
+
--color-border-selected: #4424c4;
|
|
154
156
|
--color-focus: #4424c4;
|
|
155
157
|
--color-feedback-success: #0b9a74;
|
|
156
158
|
--color-feedback-success-ink: #004b30;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #92929e;
|
|
261
263
|
--color-border-control: #5b5b69;
|
|
262
264
|
--color-border-field: #4f4f60;
|
|
265
|
+
--color-border-selected: #4424c4;
|
|
263
266
|
--color-focus: #4424c4;
|
|
264
267
|
--color-feedback-success: #0b9a74;
|
|
265
268
|
--color-feedback-success-ink: #004b30;
|
package/dist/css/themes/iris.css
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #292339;
|
|
43
43
|
--color-border-control: #767285;
|
|
44
44
|
--color-border-field: #66607a;
|
|
45
|
+
--color-border-selected: rgba(149, 132, 255, 0.6);
|
|
45
46
|
--color-focus: #9584ff;
|
|
46
47
|
--color-feedback-success: #27cf9b;
|
|
47
48
|
--color-feedback-success-ink: #65e8c7;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #dbd8e7;
|
|
152
153
|
--color-border-control: #4c495b;
|
|
153
154
|
--color-border-field: #858294;
|
|
155
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
154
156
|
--color-focus: #4a2abd;
|
|
155
157
|
--color-feedback-success: #039571;
|
|
156
158
|
--color-feedback-success-ink: #055e47;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #dbd8e7;
|
|
261
263
|
--color-border-control: #4c495b;
|
|
262
264
|
--color-border-field: #858294;
|
|
265
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
263
266
|
--color-focus: #4a2abd;
|
|
264
267
|
--color-feedback-success: #039571;
|
|
265
268
|
--color-feedback-success-ink: #055e47;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #2b2923;
|
|
43
43
|
--color-border-control: #827d74;
|
|
44
44
|
--color-border-field: #6c6961;
|
|
45
|
+
--color-border-selected: rgba(77, 107, 239, 0.6);
|
|
45
46
|
--color-focus: #5272f6;
|
|
46
47
|
--color-feedback-success: #53cc8f;
|
|
47
48
|
--color-feedback-success-ink: #95d6a3;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #ddd9cf;
|
|
152
153
|
--color-border-control: #7e776b;
|
|
153
154
|
--color-border-field: #8b8477;
|
|
155
|
+
--color-border-selected: rgba(47, 80, 216, 0.6);
|
|
154
156
|
--color-focus: #2f50d8;
|
|
155
157
|
--color-feedback-success: #1a9368;
|
|
156
158
|
--color-feedback-success-ink: #246937;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #ddd9cf;
|
|
261
263
|
--color-border-control: #7e776b;
|
|
262
264
|
--color-border-field: #8b8477;
|
|
265
|
+
--color-border-selected: rgba(47, 80, 216, 0.6);
|
|
263
266
|
--color-focus: #2f50d8;
|
|
264
267
|
--color-feedback-success: #1a9368;
|
|
265
268
|
--color-feedback-success-ink: #246937;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #1f2432;
|
|
43
43
|
--color-border-control: #72798b;
|
|
44
44
|
--color-border-field: #5e667c;
|
|
45
|
+
--color-border-selected: rgba(149, 132, 255, 0.6);
|
|
45
46
|
--color-focus: #9584ff;
|
|
46
47
|
--color-feedback-success: #20cc98;
|
|
47
48
|
--color-feedback-success-ink: #65e8c7;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #dbdfe8;
|
|
152
153
|
--color-border-control: #464b5c;
|
|
153
154
|
--color-border-field: #818692;
|
|
155
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
154
156
|
--color-focus: #4a2abd;
|
|
155
157
|
--color-feedback-success: #039571;
|
|
156
158
|
--color-feedback-success-ink: #055e47;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #dbdfe8;
|
|
261
263
|
--color-border-control: #464b5c;
|
|
262
264
|
--color-border-field: #818692;
|
|
265
|
+
--color-border-selected: rgba(74, 42, 189, 0.6);
|
|
263
266
|
--color-focus: #4a2abd;
|
|
264
267
|
--color-feedback-success: #039571;
|
|
265
268
|
--color-feedback-success-ink: #055e47;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #1f2432;
|
|
43
43
|
--color-border-control: #727a8f;
|
|
44
44
|
--color-border-field: #5e677c;
|
|
45
|
+
--color-border-selected: rgba(90, 98, 240, 0.6);
|
|
45
46
|
--color-focus: #606af8;
|
|
46
47
|
--color-feedback-success: #34c98b;
|
|
47
48
|
--color-feedback-success-ink: #74dcae;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #dbdfe8;
|
|
152
153
|
--color-border-control: #74798c;
|
|
153
154
|
--color-border-field: #838894;
|
|
155
|
+
--color-border-selected: rgba(76, 85, 230, 0.6);
|
|
154
156
|
--color-focus: #4c55e6;
|
|
155
157
|
--color-feedback-success: #00916f;
|
|
156
158
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #dbdfe8;
|
|
261
263
|
--color-border-control: #74798c;
|
|
262
264
|
--color-border-field: #838894;
|
|
265
|
+
--color-border-selected: rgba(76, 85, 230, 0.6);
|
|
263
266
|
--color-focus: #4c55e6;
|
|
264
267
|
--color-feedback-success: #00916f;
|
|
265
268
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #323439;
|
|
43
43
|
--color-border-control: #828ca0;
|
|
44
44
|
--color-border-field: #6c6f74;
|
|
45
|
+
--color-border-selected: rgba(84, 105, 212, 0.6);
|
|
45
46
|
--color-focus: #7d8fe8;
|
|
46
47
|
--color-feedback-success: #3eba82;
|
|
47
48
|
--color-feedback-success-ink: #5db76d;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #e5e5e8;
|
|
152
153
|
--color-border-control: #71717a;
|
|
153
154
|
--color-border-field: #87878b;
|
|
155
|
+
--color-border-selected: rgba(84, 105, 212, 0.6);
|
|
154
156
|
--color-focus: #5469d4;
|
|
155
157
|
--color-feedback-success: #0f9a73;
|
|
156
158
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #e5e5e8;
|
|
261
263
|
--color-border-control: #71717a;
|
|
262
264
|
--color-border-field: #87878b;
|
|
265
|
+
--color-border-selected: rgba(84, 105, 212, 0.6);
|
|
263
266
|
--color-focus: #5469d4;
|
|
264
267
|
--color-feedback-success: #0f9a73;
|
|
265
268
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
--color-border-hatch: #232329;
|
|
43
43
|
--color-border-control: #797983;
|
|
44
44
|
--color-border-field: #66666f;
|
|
45
|
+
--color-border-selected: rgba(124, 86, 255, 0.6);
|
|
45
46
|
--color-focus: #7e5bff;
|
|
46
47
|
--color-feedback-success: #3ecf8f;
|
|
47
48
|
--color-feedback-success-ink: #72dead;
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
--color-border-hatch: #e2e2df;
|
|
152
153
|
--color-border-control: #7b7a81;
|
|
153
154
|
--color-border-field: #888884;
|
|
155
|
+
--color-border-selected: rgba(107, 69, 240, 0.6);
|
|
154
156
|
--color-focus: #6b45f0;
|
|
155
157
|
--color-feedback-success: #009b74;
|
|
156
158
|
--color-feedback-success-ink: #106d46;
|
|
@@ -260,6 +262,7 @@
|
|
|
260
262
|
--color-border-hatch: #e2e2df;
|
|
261
263
|
--color-border-control: #7b7a81;
|
|
262
264
|
--color-border-field: #888884;
|
|
265
|
+
--color-border-selected: rgba(107, 69, 240, 0.6);
|
|
263
266
|
--color-focus: #6b45f0;
|
|
264
267
|
--color-feedback-success: #009b74;
|
|
265
268
|
--color-feedback-success-ink: #106d46;
|
package/dist/css/themes.css
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
--color-border-hatch: #202534;
|
|
49
49
|
--color-border-control: #7f879c;
|
|
50
50
|
--color-border-field: #687187;
|
|
51
|
+
--color-border-selected: rgba(114, 91, 230, 0.6);
|
|
51
52
|
--color-focus: #8572fe;
|
|
52
53
|
--color-feedback-success: #34c98b;
|
|
53
54
|
--color-feedback-success-ink: #74dcae;
|
|
@@ -160,6 +161,7 @@
|
|
|
160
161
|
--color-border-hatch: #dbdfe8;
|
|
161
162
|
--color-border-control: #777a83;
|
|
162
163
|
--color-border-field: #838894;
|
|
164
|
+
--color-border-selected: rgba(115, 90, 242, 0.6);
|
|
163
165
|
--color-focus: #735af2;
|
|
164
166
|
--color-feedback-success: #0b9a74;
|
|
165
167
|
--color-feedback-success-ink: #0b6a4b;
|
|
@@ -270,6 +272,7 @@
|
|
|
270
272
|
--color-border-hatch: #dbdfe8;
|
|
271
273
|
--color-border-control: #777a83;
|
|
272
274
|
--color-border-field: #838894;
|
|
275
|
+
--color-border-selected: rgba(115, 90, 242, 0.6);
|
|
273
276
|
--color-focus: #735af2;
|
|
274
277
|
--color-feedback-success: #0b9a74;
|
|
275
278
|
--color-feedback-success-ink: #0b6a4b;
|
package/dist/css/tokens.css
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
--color-border-hatch: #2c2e31; /** The arranging hatch's line: strong at 60% over the sheet. A board under construction draws its diagonals in it, and so does a note standing on that board, which is why it is a colour of its own and not the strong border faded on a layer. */
|
|
56
56
|
--color-border-control: #7f848e; /** The boundary of an input, a checkbox or a switch. It clears 3:1 on every surface a control can sit on, the overlay composites included: a checkbox inside a hovered row in a dialog body is the case the opaque surfaces alone do not catch. */
|
|
57
57
|
--color-border-field: #66696e; /** The strong border, #4a4d52, lightened dE 10.06: the least move that clears 3:1 on every rung a text field sits on (3.00:1 on the raised rung, the worst). A field stands on a rung and never inside a hovered or pressed row, so it is held to the rungs alone rather than to the composites the control boundary clears, and it reads as quietly as a secondary button's edge allows. */
|
|
58
|
+
--color-border-selected: rgba(124, 86, 255, 0.6);
|
|
58
59
|
--color-focus: #7e5bff; /** The focus indicator, drawn as an OUTLINE at 2px and offset 2px. Forced-colors mode drops every box-shadow and keeps outlines, so a ring drawn as a shadow alone disappears for exactly the readers who need one. It is the ACCENT, lightened dE 1.06 along lightness, which clears this root at 3.01:1: #7c56ff itself measured 2.89:1 on a pressed row inside a raised surface, under the 3:1 a ring has to clear, and the accent cannot make that move for it, because any lighter takes the white label of a primary button under the text floor. */
|
|
59
60
|
--color-feedback-success: #3ecf8f; /** DONE: work that finished. The four states are what a piece of work is doing, and their meanings never move: info is working, warning needs a person, danger is stopped, success is done. The names stay generic because a badge, a callout and a toast mean the same four things. The values here are this root's own; each theme draws its four in tokens/themes, whose comments say what moved each from the approved palette. */
|
|
60
61
|
--color-feedback-success-ink: #72dead;
|
|
@@ -235,6 +236,7 @@
|
|
|
235
236
|
--z-index-modal: 9999; /** Dialog backdrop and frame. High enough to clear any page chrome an application stacks with its own numbers. */
|
|
236
237
|
--z-index-popover: 10000; /** Floating panels portaled to the body (Select menus, Popover, date pickers). Above modal because they are routinely opened from inside a dialog, and a panel under the backdrop is hidden and swallows clicks. */
|
|
237
238
|
--z-index-toast: 10001; /** Top of the stack. A toast reports the outcome of what somebody just did, often in a dialog or from a menu opened inside one, so it sits above both. */
|
|
239
|
+
--color-surface-selected: var(--color-brand-accent-soft); /** The fill behind a CHOSEN option: the template, theme, agent or slide a reader picked. An alias of the accent's soft fill, so the meaning has a name of its own and follows the accent in every palette. Its edge is --color-border-selected, which the build derives as the accent at 0.6 (the full accent in a high-contrast theme): a tint, mixed toward whatever ground it lands on, so a page of options never carries a second focus ring. Neither is ever the state's only cue, and neither is ever the focus indicator, which stays --color-focus at 2px on :focus-visible. */
|
|
238
240
|
--color-artifact-kind-doc: var(--color-node-blue); /** The hue an artifact kind is drawn in wherever its kind is pictured: the illustration on a Make something new tile and the ground a gallery card shows before its live preview arrives. Each kind is an ALIAS of one node hue (doc blue, slides amber, design purple, dashboard cyan, HTML rose, sheet green), so every theme repaints it with no value of its own, and the Ink, Fill and Line steps follow the node hue's own derived steps. A kind's hue is identity and never state: the kind's name is always drawn beside it. */
|
|
239
241
|
--color-artifact-kind-doc-ink: var(--color-node-blue-ink);
|
|
240
242
|
--color-artifact-kind-doc-fill: var(--color-node-blue-fill);
|
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare const color: {
|
|
|
42
42
|
readonly scrim: "rgba(0, 0, 0, 0.6)";
|
|
43
43
|
readonly veil: "rgba(0, 0, 0, 0.65)";
|
|
44
44
|
readonly inverse: "#ffffff";
|
|
45
|
+
readonly selected: "rgba(124, 86, 255, 0.16)";
|
|
45
46
|
};
|
|
46
47
|
readonly text: {
|
|
47
48
|
readonly primary: "#fafafa";
|
|
@@ -62,6 +63,7 @@ export declare const color: {
|
|
|
62
63
|
readonly hatch: "#2c2e31";
|
|
63
64
|
readonly control: "#7f848e";
|
|
64
65
|
readonly field: "#66696e";
|
|
66
|
+
readonly selected: "rgba(124, 86, 255, 0.6)";
|
|
65
67
|
};
|
|
66
68
|
readonly focus: "#7e5bff";
|
|
67
69
|
readonly feedback: {
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,8 @@ export const color = {
|
|
|
42
42
|
"glass": "rgba(28, 30, 36, 0.90)",
|
|
43
43
|
"scrim": "rgba(0, 0, 0, 0.6)",
|
|
44
44
|
"veil": "rgba(0, 0, 0, 0.65)",
|
|
45
|
-
"inverse": "#ffffff"
|
|
45
|
+
"inverse": "#ffffff",
|
|
46
|
+
"selected": "rgba(124, 86, 255, 0.16)"
|
|
46
47
|
},
|
|
47
48
|
"text": {
|
|
48
49
|
"primary": "#fafafa",
|
|
@@ -62,7 +63,8 @@ export const color = {
|
|
|
62
63
|
"strongHover": "#5a5e65",
|
|
63
64
|
"hatch": "#2c2e31",
|
|
64
65
|
"control": "#7f848e",
|
|
65
|
-
"field": "#66696e"
|
|
66
|
+
"field": "#66696e",
|
|
67
|
+
"selected": "rgba(124, 86, 255, 0.6)"
|
|
66
68
|
},
|
|
67
69
|
"focus": "#7e5bff",
|
|
68
70
|
"feedback": {
|
package/dist/themes.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const themes: {
|
|
|
51
51
|
readonly hatch: "#dbdfe8";
|
|
52
52
|
readonly control: "#777a83";
|
|
53
53
|
readonly field: "#838894";
|
|
54
|
+
readonly selected: "rgba(115, 90, 242, 0.6)";
|
|
54
55
|
};
|
|
55
56
|
readonly focus: "#735af2";
|
|
56
57
|
readonly feedback: {
|
|
@@ -176,6 +177,7 @@ export declare const themes: {
|
|
|
176
177
|
readonly hatch: "#202534";
|
|
177
178
|
readonly control: "#7f879c";
|
|
178
179
|
readonly field: "#687187";
|
|
180
|
+
readonly selected: "rgba(114, 91, 230, 0.6)";
|
|
179
181
|
};
|
|
180
182
|
readonly focus: "#8572fe";
|
|
181
183
|
readonly feedback: {
|
package/dist/themes.js
CHANGED
|
@@ -51,7 +51,8 @@ export const themes = {
|
|
|
51
51
|
"strongHover": "#acb6cc",
|
|
52
52
|
"hatch": "#dbdfe8",
|
|
53
53
|
"control": "#777a83",
|
|
54
|
-
"field": "#838894"
|
|
54
|
+
"field": "#838894",
|
|
55
|
+
"selected": "rgba(115, 90, 242, 0.6)"
|
|
55
56
|
},
|
|
56
57
|
"focus": "#735af2",
|
|
57
58
|
"feedback": {
|
|
@@ -176,7 +177,8 @@ export const themes = {
|
|
|
176
177
|
"strongHover": "#424f74",
|
|
177
178
|
"hatch": "#202534",
|
|
178
179
|
"control": "#7f879c",
|
|
179
|
-
"field": "#687187"
|
|
180
|
+
"field": "#687187",
|
|
181
|
+
"selected": "rgba(114, 91, 230, 0.6)"
|
|
180
182
|
},
|
|
181
183
|
"focus": "#8572fe",
|
|
182
184
|
"feedback": {
|
package/package.json
CHANGED
package/test/palette.d.mts
CHANGED
|
@@ -75,6 +75,8 @@ export const TINT_HUE_RANGE: number;
|
|
|
75
75
|
export const ACCENT_OVER_TINT: number;
|
|
76
76
|
/** The floors a high-contrast theme is held to on top of the table. */
|
|
77
77
|
export const HIGH_CONTRAST: { readonly text: number; readonly ink: number; readonly muted: number; readonly hairline: number };
|
|
78
|
+
/** How far the selected edge sits from a hairline, in OKLab dE, on every rung. */
|
|
79
|
+
export const SELECTED_EDGE_SEPARATION: number;
|
|
78
80
|
|
|
79
81
|
/** One line per failing check, for an assertion message. */
|
|
80
82
|
export function describeFailure(check: PaletteCheck): string;
|
package/test/palette.mjs
CHANGED
|
@@ -681,6 +681,19 @@ export const ACCENT_OVER_TINT = 2;
|
|
|
681
681
|
*/
|
|
682
682
|
export const HIGH_CONTRAST = { text: 7, ink: 7, muted: 4.5, hairline: 3 };
|
|
683
683
|
|
|
684
|
+
/**
|
|
685
|
+
* How far the SELECTED EDGE (`--color-border-selected`) sits from a hairline,
|
|
686
|
+
* in OKLab dE, on every rung: 9, the distance this file holds two neighbouring
|
|
687
|
+
* chart series to. The edge is the accent at an alpha, a tint mixed toward its
|
|
688
|
+
* ground, so it is not held to the 3:1 a mark clears: at that floor the default
|
|
689
|
+
* dark palette, whose accent itself clears 2.61:1 on its worst ground, could
|
|
690
|
+
* not draw a tint at all. What it has to do is read as CHOSEN rather than as
|
|
691
|
+
* one more line, and the component that draws it pairs it with the soft fill
|
|
692
|
+
* or a mark of its own that does clear 3:1, so the state never rests on it.
|
|
693
|
+
* Measured at the build's 0.6, the closest any palette comes is dE 10.1.
|
|
694
|
+
*/
|
|
695
|
+
export const SELECTED_EDGE_SEPARATION = 9;
|
|
696
|
+
|
|
684
697
|
// ---------------------------------------------------------------------------
|
|
685
698
|
// Theme states
|
|
686
699
|
// ---------------------------------------------------------------------------
|
|
@@ -1177,6 +1190,38 @@ function checkState(state, values, profile, push, theme = { tint: null, contrast
|
|
|
1177
1190
|
say('a field boundary clears 3:1', low.ratio >= 3, '--color-border-field', low.ratio, `${low.ratio.toFixed(2)}:1 (worst on ${low.name})`);
|
|
1178
1191
|
}
|
|
1179
1192
|
|
|
1193
|
+
{
|
|
1194
|
+
// THE SELECTED EDGE, on the rungs a chosen option stands on. See
|
|
1195
|
+
// SELECTED_EDGE_SEPARATION: it is a tint, so the floor is that it reads
|
|
1196
|
+
// as the accent and never as one more hairline, against the resting line
|
|
1197
|
+
// and the strong one, which is the line a card under the pointer takes.
|
|
1198
|
+
let low = { measured: Infinity, name: '' };
|
|
1199
|
+
for (const [name, rgb] of opaque) {
|
|
1200
|
+
const edge = flatten(values.get('--color-border-selected'), rgb);
|
|
1201
|
+
for (const line of ['--color-border-default', '--color-border-strong']) {
|
|
1202
|
+
const measured = deltaE(edge, flatten(values.get(line), rgb));
|
|
1203
|
+
if (measured < low.measured) low = { measured, name: `${line} on ${name}` };
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
say(
|
|
1207
|
+
'the selected edge reads apart from a hairline',
|
|
1208
|
+
low.measured >= SELECTED_EDGE_SEPARATION,
|
|
1209
|
+
'--color-border-selected',
|
|
1210
|
+
low.measured,
|
|
1211
|
+
`dE ${low.measured.toFixed(2)} >= ${SELECTED_EDGE_SEPARATION} (closest to ${low.name})`,
|
|
1212
|
+
);
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
if (high) {
|
|
1216
|
+
// A high-contrast theme draws the selected edge as the full accent, and
|
|
1217
|
+
// holds it to the hairline floor it holds the card's own line to.
|
|
1218
|
+
const [, card, sheet] = CARD_HAIRLINE;
|
|
1219
|
+
for (const side of [card, sheet]) {
|
|
1220
|
+
const ratio = contrast(colour('--color-border-selected'), colour(side));
|
|
1221
|
+
say('the selected edge clears 3:1 in high contrast', ratio >= HIGH_CONTRAST.hairline, `--color-border-selected on ${side}`, ratio, `${ratio.toFixed(2)}:1 >= ${HIGH_CONTRAST.hairline}`);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1180
1225
|
// Glass is the ground of what floats OVER CONTENT rather than over
|
|
1181
1226
|
// interface: a canvas's bars and notes, and a chart's reading, which stands
|
|
1182
1227
|
// beside the mark it reads and so over its neighbours. Each carries words,
|