@oxy.so/bloom 1.2.0 → 1.3.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.
Files changed (39) hide show
  1. package/lib/commonjs/design-tokens/tokens.json +47 -47
  2. package/lib/commonjs/theme/adaptive-colors.js +8 -6
  3. package/lib/commonjs/theme/adaptive-colors.js.map +1 -1
  4. package/lib/commonjs/theme/build-theme-from-seed.js +4 -0
  5. package/lib/commonjs/theme/build-theme-from-seed.js.map +1 -1
  6. package/lib/commonjs/theme/build-theme.js +4 -0
  7. package/lib/commonjs/theme/build-theme.js.map +1 -1
  8. package/lib/commonjs/theme/color-policy.js +34 -5
  9. package/lib/commonjs/theme/color-policy.js.map +1 -1
  10. package/lib/module/design-tokens/tokens.json +47 -47
  11. package/lib/module/theme/adaptive-colors.js +8 -6
  12. package/lib/module/theme/adaptive-colors.js.map +1 -1
  13. package/lib/module/theme/build-theme-from-seed.js +4 -0
  14. package/lib/module/theme/build-theme-from-seed.js.map +1 -1
  15. package/lib/module/theme/build-theme.js +4 -0
  16. package/lib/module/theme/build-theme.js.map +1 -1
  17. package/lib/module/theme/color-policy.js +34 -5
  18. package/lib/module/theme/color-policy.js.map +1 -1
  19. package/lib/typescript/commonjs/theme/adaptive-colors.d.ts +9 -7
  20. package/lib/typescript/commonjs/theme/adaptive-colors.d.ts.map +1 -1
  21. package/lib/typescript/commonjs/theme/build-theme-from-seed.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
  23. package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/theme/types.d.ts +4 -0
  25. package/lib/typescript/commonjs/theme/types.d.ts.map +1 -1
  26. package/lib/typescript/module/theme/adaptive-colors.d.ts +9 -7
  27. package/lib/typescript/module/theme/adaptive-colors.d.ts.map +1 -1
  28. package/lib/typescript/module/theme/build-theme-from-seed.d.ts.map +1 -1
  29. package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
  30. package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
  31. package/lib/typescript/module/theme/types.d.ts +4 -0
  32. package/lib/typescript/module/theme/types.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/src/design-tokens/tokens.json +47 -47
  35. package/src/theme/adaptive-colors.ts +12 -6
  36. package/src/theme/build-theme-from-seed.ts +4 -0
  37. package/src/theme/build-theme.ts +4 -0
  38. package/src/theme/color-policy.ts +36 -5
  39. package/src/theme/types.ts +4 -0
@@ -6641,7 +6641,7 @@
6641
6641
  "$value": "#ffffff"
6642
6642
  },
6643
6643
  "tertiary": {
6644
- "$value": "#fdaf00"
6644
+ "$value": "#efa500"
6645
6645
  },
6646
6646
  "tertiary-foreground": {
6647
6647
  "$value": "#000000"
@@ -7008,7 +7008,7 @@
7008
7008
  "$value": "#ffffff"
7009
7009
  },
7010
7010
  "tertiary": {
7011
- "$value": "#fdaf00"
7011
+ "$value": "#efa500"
7012
7012
  },
7013
7013
  "tertiary-foreground": {
7014
7014
  "$value": "#000000"
@@ -7375,7 +7375,7 @@
7375
7375
  "$value": "#ffffff"
7376
7376
  },
7377
7377
  "tertiary": {
7378
- "$value": "#ee4f2b"
7378
+ "$value": "#e04522"
7379
7379
  },
7380
7380
  "tertiary-foreground": {
7381
7381
  "$value": "#000000"
@@ -7742,7 +7742,7 @@
7742
7742
  "$value": "#ffffff"
7743
7743
  },
7744
7744
  "tertiary": {
7745
- "$value": "#fecf00"
7745
+ "$value": "#f1c500"
7746
7746
  },
7747
7747
  "tertiary-foreground": {
7748
7748
  "$value": "#000000"
@@ -8109,7 +8109,7 @@
8109
8109
  "$value": "#ffffff"
8110
8110
  },
8111
8111
  "tertiary": {
8112
- "$value": "#fc610f"
8112
+ "$value": "#ee5700"
8113
8113
  },
8114
8114
  "tertiary-foreground": {
8115
8115
  "$value": "#000000"
@@ -8476,7 +8476,7 @@
8476
8476
  "$value": "#ffffff"
8477
8477
  },
8478
8478
  "tertiary": {
8479
- "$value": "#e94068"
8479
+ "$value": "#db365e"
8480
8480
  },
8481
8481
  "tertiary-foreground": {
8482
8482
  "$value": "#000000"
@@ -8843,7 +8843,7 @@
8843
8843
  "$value": "#ffffff"
8844
8844
  },
8845
8845
  "tertiary": {
8846
- "$value": "#7d2de5"
8846
+ "$value": "#7a29e3"
8847
8847
  },
8848
8848
  "tertiary-foreground": {
8849
8849
  "$value": "#ffffff"
@@ -9210,10 +9210,10 @@
9210
9210
  "$value": "#ffffff"
9211
9211
  },
9212
9212
  "tertiary": {
9213
- "$value": "#e54532"
9213
+ "$value": "#d63b2a"
9214
9214
  },
9215
9215
  "tertiary-foreground": {
9216
- "$value": "#000000"
9216
+ "$value": "#ffffff"
9217
9217
  },
9218
9218
  "muted": {
9219
9219
  "$value": "#cfd2d1"
@@ -9577,7 +9577,7 @@
9577
9577
  "$value": "#ffffff"
9578
9578
  },
9579
9579
  "tertiary": {
9580
- "$value": "#fc6105"
9580
+ "$value": "#eb5900"
9581
9581
  },
9582
9582
  "tertiary-foreground": {
9583
9583
  "$value": "#000000"
@@ -9944,7 +9944,7 @@
9944
9944
  "$value": "#ffffff"
9945
9945
  },
9946
9946
  "tertiary": {
9947
- "$value": "#e8482e"
9947
+ "$value": "#d93e26"
9948
9948
  },
9949
9949
  "tertiary-foreground": {
9950
9950
  "$value": "#000000"
@@ -10311,7 +10311,7 @@
10311
10311
  "$value": "#ffffff"
10312
10312
  },
10313
10313
  "tertiary": {
10314
- "$value": "#a5f945"
10314
+ "$value": "#9aed3a"
10315
10315
  },
10316
10316
  "tertiary-foreground": {
10317
10317
  "$value": "#000000"
@@ -10678,7 +10678,7 @@
10678
10678
  "$value": "#ffffff"
10679
10679
  },
10680
10680
  "tertiary": {
10681
- "$value": "#fea100"
10681
+ "$value": "#ef9800"
10682
10682
  },
10683
10683
  "tertiary-foreground": {
10684
10684
  "$value": "#000000"
@@ -11045,7 +11045,7 @@
11045
11045
  "$value": "#ffffff"
11046
11046
  },
11047
11047
  "tertiary": {
11048
- "$value": "#00f1fe"
11048
+ "$value": "#00e5f1"
11049
11049
  },
11050
11050
  "tertiary-foreground": {
11051
11051
  "$value": "#000000"
@@ -11412,10 +11412,10 @@
11412
11412
  "$value": "#ffffff"
11413
11413
  },
11414
11414
  "tertiary": {
11415
- "$value": "#017dff"
11415
+ "$value": "#0073ec"
11416
11416
  },
11417
11417
  "tertiary-foreground": {
11418
- "$value": "#000000"
11418
+ "$value": "#ffffff"
11419
11419
  },
11420
11420
  "muted": {
11421
11421
  "$value": "#dbcfcf"
@@ -11779,7 +11779,7 @@
11779
11779
  "$value": "#ffffff"
11780
11780
  },
11781
11781
  "tertiary": {
11782
- "$value": "#00e3fd"
11782
+ "$value": "#00d7f0"
11783
11783
  },
11784
11784
  "tertiary-foreground": {
11785
11785
  "$value": "#000000"
@@ -12146,7 +12146,7 @@
12146
12146
  "$value": "#ffffff"
12147
12147
  },
12148
12148
  "tertiary": {
12149
- "$value": "#a5f945"
12149
+ "$value": "#9aed3a"
12150
12150
  },
12151
12151
  "tertiary-foreground": {
12152
12152
  "$value": "#000000"
@@ -12514,7 +12514,7 @@
12514
12514
  "$value": "#ffffff"
12515
12515
  },
12516
12516
  "tertiary": {
12517
- "$value": "#feb300"
12517
+ "$value": "#efa900"
12518
12518
  },
12519
12519
  "tertiary-foreground": {
12520
12520
  "$value": "#000000"
@@ -12882,7 +12882,7 @@
12882
12882
  "$value": "#ffffff"
12883
12883
  },
12884
12884
  "tertiary": {
12885
- "$value": "#0056ff"
12885
+ "$value": "#004ee9"
12886
12886
  },
12887
12887
  "tertiary-foreground": {
12888
12888
  "$value": "#ffffff"
@@ -13250,7 +13250,7 @@
13250
13250
  "$value": "#ffffff"
13251
13251
  },
13252
13252
  "tertiary": {
13253
- "$value": "#e455dc"
13253
+ "$value": "#d74ad0"
13254
13254
  },
13255
13255
  "tertiary-foreground": {
13256
13256
  "$value": "#000000"
@@ -13618,7 +13618,7 @@
13618
13618
  "$value": "#ffffff"
13619
13619
  },
13620
13620
  "tertiary": {
13621
- "$value": "#ff8a00"
13621
+ "$value": "#ef8100"
13622
13622
  },
13623
13623
  "tertiary-foreground": {
13624
13624
  "$value": "#000000"
@@ -13986,7 +13986,7 @@
13986
13986
  "$value": "#ffffff"
13987
13987
  },
13988
13988
  "tertiary": {
13989
- "$value": "#e948ac"
13989
+ "$value": "#dc3da1"
13990
13990
  },
13991
13991
  "tertiary-foreground": {
13992
13992
  "$value": "#000000"
@@ -14722,7 +14722,7 @@
14722
14722
  "$value": "#ffffff"
14723
14723
  },
14724
14724
  "tertiary": {
14725
- "$value": "#e94288"
14725
+ "$value": "#db367d"
14726
14726
  },
14727
14727
  "tertiary-foreground": {
14728
14728
  "$value": "#000000"
@@ -15090,7 +15090,7 @@
15090
15090
  "$value": "#ffffff"
15091
15091
  },
15092
15092
  "tertiary": {
15093
- "$value": "#a3f947"
15093
+ "$value": "#99ee3b"
15094
15094
  },
15095
15095
  "tertiary-foreground": {
15096
15096
  "$value": "#000000"
@@ -15458,7 +15458,7 @@
15458
15458
  "$value": "#ffffff"
15459
15459
  },
15460
15460
  "tertiary": {
15461
- "$value": "#e845a2"
15461
+ "$value": "#da3997"
15462
15462
  },
15463
15463
  "tertiary-foreground": {
15464
15464
  "$value": "#000000"
@@ -15826,7 +15826,7 @@
15826
15826
  "$value": "#ffffff"
15827
15827
  },
15828
15828
  "tertiary": {
15829
- "$value": "#ffbf06"
15829
+ "$value": "#f1b400"
15830
15830
  },
15831
15831
  "tertiary-foreground": {
15832
15832
  "$value": "#000000"
@@ -16194,7 +16194,7 @@
16194
16194
  "$value": "#ffffff"
16195
16195
  },
16196
16196
  "tertiary": {
16197
- "$value": "#fd7100"
16197
+ "$value": "#ed6900"
16198
16198
  },
16199
16199
  "tertiary-foreground": {
16200
16200
  "$value": "#000000"
@@ -16562,7 +16562,7 @@
16562
16562
  "$value": "#ffffff"
16563
16563
  },
16564
16564
  "tertiary": {
16565
- "$value": "#ffd700"
16565
+ "$value": "#f2cc00"
16566
16566
  },
16567
16567
  "tertiary-foreground": {
16568
16568
  "$value": "#000000"
@@ -16930,7 +16930,7 @@
16930
16930
  "$value": "#ffffff"
16931
16931
  },
16932
16932
  "tertiary": {
16933
- "$value": "#00d9fe"
16933
+ "$value": "#00cdf0"
16934
16934
  },
16935
16935
  "tertiary-foreground": {
16936
16936
  "$value": "#000000"
@@ -17298,7 +17298,7 @@
17298
17298
  "$value": "#ffffff"
17299
17299
  },
17300
17300
  "tertiary": {
17301
- "$value": "#00f4ff"
17301
+ "$value": "#00e8f2"
17302
17302
  },
17303
17303
  "tertiary-foreground": {
17304
17304
  "$value": "#000000"
@@ -17666,7 +17666,7 @@
17666
17666
  "$value": "#ffffff"
17667
17667
  },
17668
17668
  "tertiary": {
17669
- "$value": "#befc33"
17669
+ "$value": "#b4f024"
17670
17670
  },
17671
17671
  "tertiary-foreground": {
17672
17672
  "$value": "#000000"
@@ -18034,7 +18034,7 @@
18034
18034
  "$value": "#ffffff"
18035
18035
  },
18036
18036
  "tertiary": {
18037
- "$value": "#febf00"
18037
+ "$value": "#f0b500"
18038
18038
  },
18039
18039
  "tertiary-foreground": {
18040
18040
  "$value": "#000000"
@@ -18402,7 +18402,7 @@
18402
18402
  "$value": "#ffffff"
18403
18403
  },
18404
18404
  "tertiary": {
18405
- "$value": "#026aff"
18405
+ "$value": "#0061eb"
18406
18406
  },
18407
18407
  "tertiary-foreground": {
18408
18408
  "$value": "#ffffff"
@@ -18770,7 +18770,7 @@
18770
18770
  "$value": "#ffffff"
18771
18771
  },
18772
18772
  "tertiary": {
18773
- "$value": "#e74cbf"
18773
+ "$value": "#da41b4"
18774
18774
  },
18775
18775
  "tertiary-foreground": {
18776
18776
  "$value": "#000000"
@@ -19138,7 +19138,7 @@
19138
19138
  "$value": "#ffffff"
19139
19139
  },
19140
19140
  "tertiary": {
19141
- "$value": "#e8428d"
19141
+ "$value": "#da3683"
19142
19142
  },
19143
19143
  "tertiary-foreground": {
19144
19144
  "$value": "#000000"
@@ -19506,7 +19506,7 @@
19506
19506
  "$value": "#ffffff"
19507
19507
  },
19508
19508
  "tertiary": {
19509
- "$value": "#0057fd"
19509
+ "$value": "#004ee6"
19510
19510
  },
19511
19511
  "tertiary-foreground": {
19512
19512
  "$value": "#ffffff"
@@ -19874,7 +19874,7 @@
19874
19874
  "$value": "#ffffff"
19875
19875
  },
19876
19876
  "tertiary": {
19877
- "$value": "#febb00"
19877
+ "$value": "#f0b100"
19878
19878
  },
19879
19879
  "tertiary-foreground": {
19880
19880
  "$value": "#000000"
@@ -20242,7 +20242,7 @@
20242
20242
  "$value": "#ffffff"
20243
20243
  },
20244
20244
  "tertiary": {
20245
- "$value": "#00fd8b"
20245
+ "$value": "#00f083"
20246
20246
  },
20247
20247
  "tertiary-foreground": {
20248
20248
  "$value": "#000000"
@@ -20610,7 +20610,7 @@
20610
20610
  "$value": "#ffffff"
20611
20611
  },
20612
20612
  "tertiary": {
20613
- "$value": "#00fdec"
20613
+ "$value": "#00f1e0"
20614
20614
  },
20615
20615
  "tertiary-foreground": {
20616
20616
  "$value": "#000000"
@@ -20978,7 +20978,7 @@
20978
20978
  "$value": "#ffffff"
20979
20979
  },
20980
20980
  "tertiary": {
20981
- "$value": "#00e6ff"
20981
+ "$value": "#00daf2"
20982
20982
  },
20983
20983
  "tertiary-foreground": {
20984
20984
  "$value": "#000000"
@@ -21346,7 +21346,7 @@
21346
21346
  "$value": "#ffffff"
21347
21347
  },
21348
21348
  "tertiary": {
21349
- "$value": "#b3fa3c"
21349
+ "$value": "#a8ef2f"
21350
21350
  },
21351
21351
  "tertiary-foreground": {
21352
21352
  "$value": "#000000"
@@ -21714,7 +21714,7 @@
21714
21714
  "$value": "#ffffff"
21715
21715
  },
21716
21716
  "tertiary": {
21717
- "$value": "#00ffd9"
21717
+ "$value": "#00f2ce"
21718
21718
  },
21719
21719
  "tertiary-foreground": {
21720
21720
  "$value": "#000000"
@@ -22082,7 +22082,7 @@
22082
22082
  "$value": "#ffffff"
22083
22083
  },
22084
22084
  "tertiary": {
22085
- "$value": "#0063fe"
22085
+ "$value": "#005ae8"
22086
22086
  },
22087
22087
  "tertiary-foreground": {
22088
22088
  "$value": "#ffffff"
@@ -22450,7 +22450,7 @@
22450
22450
  "$value": "#ffffff"
22451
22451
  },
22452
22452
  "tertiary": {
22453
- "$value": "#f95d15"
22453
+ "$value": "#eb5305"
22454
22454
  },
22455
22455
  "tertiary-foreground": {
22456
22456
  "$value": "#000000"
@@ -22818,7 +22818,7 @@
22818
22818
  "$value": "#ffffff"
22819
22819
  },
22820
22820
  "tertiary": {
22821
- "$value": "#affb40"
22821
+ "$value": "#a4ef34"
22822
22822
  },
22823
22823
  "tertiary-foreground": {
22824
22824
  "$value": "#000000"
@@ -23186,7 +23186,7 @@
23186
23186
  "$value": "#ffffff"
23187
23187
  },
23188
23188
  "tertiary": {
23189
- "$value": "#00ffda"
23189
+ "$value": "#00f2cf"
23190
23190
  },
23191
23191
  "tertiary-foreground": {
23192
23192
  "$value": "#000000"
@@ -24,12 +24,14 @@ import type { ThemeColors } from './types';
24
24
  *
25
25
  * Material You and iOS dynamic ship a brand family and an error family and
26
26
  * NOTHING for success/warning/info — which is why the four status fills below
27
- * are frozen hexes rather than platform reads. The tinted status members have no
28
- * platform counterpart at all, so they are deliberately absent here and come
29
- * from the preset-derived palette underneath (`buildTheme` overlays this on it).
30
- * That keeps the four `*Subtle`/`*SubtleForeground` pairs coming from ONE source
31
- * — the colour policy, whose pairs are gated at AA — instead of four hand-picked
32
- * tints that would only be legible by luck.
27
+ * are frozen hexes rather than platform reads. The tinted status members, and
28
+ * now the solid `-foreground` members alongside them, have no platform
29
+ * counterpart at all, so they are deliberately absent here and come from the
30
+ * preset-derived palette underneath (`buildTheme` overlays this on it). That
31
+ * keeps every `success`/`error`/`warning`/`info` pair — both the `*Subtle`/
32
+ * `*SubtleForeground` tint and the solid `*Foreground` — coming from ONE source
33
+ * — the colour policy, whose pairs are gated at AA — instead of hand-picked
34
+ * labels for a fill this file already admits it is only guessing at.
33
35
  *
34
36
  * Consequence for anyone extending this file: adding one of those keys to a
35
37
  * branch below is a type error, on purpose. Answering it needs a real platform
@@ -45,6 +47,10 @@ export type AdaptiveColors = Omit<
45
47
  | 'warningSubtleForeground'
46
48
  | 'infoSubtle'
47
49
  | 'infoSubtleForeground'
50
+ | 'successForeground'
51
+ | 'errorForeground'
52
+ | 'warningForeground'
53
+ | 'infoForeground'
48
54
  >;
49
55
 
50
56
  const c = (v: unknown): string => v as string;
@@ -85,9 +85,13 @@ export function buildColorsFromSeed(
85
85
  iconActive: g('primary'),
86
86
 
87
87
  success: g('success'),
88
+ successForeground: g('success-foreground'),
88
89
  error: g('error'),
90
+ errorForeground: g('error-foreground'),
89
91
  warning: g('warning'),
92
+ warningForeground: g('warning-foreground'),
90
93
  info: g('info'),
94
+ infoForeground: g('info-foreground'),
91
95
 
92
96
  successSubtle: g('success-subtle'),
93
97
  successSubtleForeground: g('success-text'),
@@ -86,9 +86,13 @@ function buildColorsFromPreset(
86
86
  // The status family is themed per mode and legible, from the same pipeline
87
87
  // as everything else — not four frozen hexes that fail AA under white text.
88
88
  success: g('success'),
89
+ successForeground: g('success-foreground'),
89
90
  error: g('error'),
91
+ errorForeground: g('error-foreground'),
90
92
  warning: g('warning'),
93
+ warningForeground: g('warning-foreground'),
91
94
  info: g('info'),
95
+ infoForeground: g('info-foreground'),
92
96
 
93
97
  // The tinted half of the same four families. `-subtle` is the translucent
94
98
  // surface, `-text` the member legible on it — the pair the policy generates
@@ -109,6 +109,21 @@ const FILL_TONE_SEARCH_CEILING = 56;
109
109
  */
110
110
  const LIGHT_DEPTH_STEP = 5;
111
111
 
112
+ /**
113
+ * How much a PINNED action steps below its own peak in light mode — smaller
114
+ * than `LIGHT_DEPTH_STEP`, because staying close to the peak (not the full
115
+ * depth every other fill takes) is this branch's entire reason to exist (see
116
+ * `pinnedAction` below). 5 — `LIGHT_DEPTH_STEP` itself — was tried first and
117
+ * rejected: two curated presets can declare tertiary hues a fraction of a
118
+ * degree apart (`indigo-ember` and `pewter-current`, both a "turquoise
119
+ * action", 0.26° apart), and at THAT specific offset the two hues' peaks
120
+ * happened to round to the same quantized 8-bit colour, so one pinned action
121
+ * rendered two presets identically. The offset has no other significance
122
+ * than clearing that — any of {3, 4, 7, 8} does, checked against every
123
+ * built-in preset's own pinned `tertiaryHex`.
124
+ */
125
+ const PINNED_ACTION_LIGHT_STEP = 4;
126
+
112
127
  /**
113
128
  * How deep a light-mode fill may go. Deliberately BELOW the search's lower bound,
114
129
  * which those two used to share — and sharing them silently voided the depth step
@@ -550,11 +565,27 @@ export function buildPolicyTokens(
550
565
  ? MONOCHROME_SECONDARY_TONE.dark
551
566
  : MONOCHROME_SECONDARY_TONE.light
552
567
  : pinnedAction
553
- // A deliberately paired action stays at the hue's vivid peak instead of
554
- // turning signal yellow into ochre or lime into olive on a light page.
555
- // The matched foreground may be black; legibility is decided by the pair,
556
- // not by a blanket white-label preference.
557
- ? Math.max(peakTone(hue), isDark ? DARK_ACCENT_FLOOR : LIGHT_FILL_FLOOR)
568
+ // A deliberately paired action stays NEAR the hue's vivid peak instead of
569
+ // turning signal yellow into ochre or lime into olive on a light page. The
570
+ // matched foreground may be black; legibility is decided by the pair, not
571
+ // by a blanket white-label preference.
572
+ //
573
+ // Light and dark still have to differ, same as every other fill in this
574
+ // file — an EARLIER version of this branch floored both modes on
575
+ // `peakTone(hue)` directly with only the FLOOR differing (`LIGHT_FILL_FLOOR`
576
+ // vs `DARK_ACCENT_FLOOR`), so for any hue whose peak sits above both floors
577
+ // — the common case — the floor never bound anything and light and dark
578
+ // landed on the IDENTICAL tone: the same fill and the same foreground
579
+ // rendered twice. Measured across the 47 built-in presets that declare a
580
+ // `tertiaryHex`, that was ~30 of them, plus any app pinning its own
581
+ // `tertiaryColor`. Dark keeps the pure peak (the "stay vivid" case this
582
+ // branch exists for is a dark-page problem — deepening costs nothing
583
+ // there); light steps `PINNED_ACTION_LIGHT_STEP` below its own peak, so it
584
+ // still reads as "the same brand, a page deeper" rather than vanishing
585
+ // into the dark-mode swatch.
586
+ ? isDark
587
+ ? Math.max(peakTone(hue), DARK_ACCENT_FLOOR)
588
+ : Math.max(LIGHT_FILL_FLOOR, peakTone(hue) - PINNED_ACTION_LIGHT_STEP)
558
589
  : accentTone(hue, isDark);
559
590
  const pair = fillPair(fillPalette, tone);
560
591
  tokens[`--${role}`] = pair.fill;
@@ -31,9 +31,13 @@ export interface ThemeColors {
31
31
  iconActive: string;
32
32
 
33
33
  success: string;
34
+ successForeground: string;
34
35
  error: string;
36
+ errorForeground: string;
35
37
  warning: string;
38
+ warningForeground: string;
36
39
  info: string;
40
+ infoForeground: string;
37
41
 
38
42
  /**
39
43
  * The tinted status SURFACES and the text that is legible on them.