@tristan2828/ui-foundation 4.89.0 → 4.91.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/styles/theme.css CHANGED
@@ -148,147 +148,154 @@
148
148
  * category's subcategories in a chart, nesting levels of one kind, a
149
149
  * stacked bar of one category's parts. Opaque fills like the heat scale,
150
150
  * each with its own --category-N-depth-M-foreground for text on it.
151
- * Lightness falls at every step in both themes, so the order survives in
152
- * greyscale; hue stays within about 20 degrees of the slot's, with chroma
153
- * and hue bent a little to push neighbours apart (the developer's pick B,
154
- * 2026-11-09). Every palette takes dark's.
151
+ * One hue per slot, the slot's own (its --category-N hue), across all five
152
+ * steps in both themes; only lightness and chroma change. Depth is
153
+ * contrast with the page, so a higher step is darker in light and
154
+ * brighter in dark, and the order survives in greyscale. (Until 4.91 hue
155
+ * was bent a little to push neighbours apart, which read as drift, orange
156
+ * to pink and purple to magenta, and dark ran the wrong way, a higher
157
+ * step darker, ending in a step almost grey.) Chroma follows what the
158
+ * gamut allows at each lightness, so each ramp reads as one tint, and no
159
+ * step falls under oklch chroma 0.03. Every palette takes dark's.
155
160
  *
156
161
  * Why the gaps are smaller than the heat scale's: every step clears 3:1
157
- * on the card, which leaves light a lightness band of about oklch 0.18 to
158
- * 0.65 and dark 0.58 to 1, and five steps of one hue have to fit in it.
162
+ * on the card, which leaves light a lightness band of about oklch 0.19 to
163
+ * 0.66 and dark 0.57 to 0.95, and five steps of one hue have to fit in it.
159
164
  *
160
165
  * Measured from these values (tests/depth-ramps.test.ts holds neighbours
161
- * to ΔE 17 in light and 13.5 in dark, 10 under simulated deuteranopia and
162
- * protanopia, and every step to 3:1 on every card):
163
- * neighbours light ΔE 17.7 or more; dark 13.9 or more (blue; navy
164
- * 15.3, every other slot 17.4 or more); 10.3 or more
166
+ * to ΔE 8, 6 under simulated deuteranopia and protanopia, every step to
167
+ * ΔE 6 from the neutral greys, and every step to 3:1 on every card):
168
+ * neighbours light ΔE 9.6 to 15.7; dark 8.7 to 12.3; 6.9 or more
165
169
  * with deuteranopia or protanopia in both
166
- * on its card 3.03 at the least (light, on --muted); 3.17 in dark
170
+ * neutral greys 8.8 at the least from --muted, --muted-foreground,
171
+ * --rule, --border, --input and the charts' greys, in
172
+ * light, dark and every palette
173
+ * on its card 3.11 at the least (light, on --muted); 3.24 in dark
167
174
  * (on Graphite's raised surface)
168
- * text on the fill 4.55 at the least: in light, black on step 1 (and
169
- * step 2 of blue, gold and lime), white on the rest;
170
- * black on every step in dark
175
+ * text on the fill 4.65 at the least: in light, black on step 1 and
176
+ * white on steps 2 to 5 of every slot; black on
177
+ * every step in dark
171
178
  */
172
- --category-1-depth-1-700: oklch(0.636 0.107 221); /* blue */
173
- --category-1-depth-1-400: oklch(0.941 0.03 228);
174
- --category-1-depth-2-700: oklch(0.616 0.199 255);
175
- --category-1-depth-2-400: oklch(0.836 0.118 219);
176
- --category-1-depth-3-700: oklch(0.495 0.22 264);
177
- --category-1-depth-3-400: oklch(0.728 0.16 238);
178
- --category-1-depth-4-700: oklch(0.311 0.131 268);
179
- --category-1-depth-4-400: oklch(0.659 0.071 253);
180
- --category-1-depth-5-700: oklch(0.177 0.025 268);
181
- --category-1-depth-5-400: oklch(0.577 0.025 273);
182
- --category-2-depth-1-700: oklch(0.644 0.025 34); /* orange */
183
- --category-2-depth-1-400: oklch(0.967 0.025 73);
184
- --category-2-depth-2-700: oklch(0.556 0.126 28);
185
- --category-2-depth-2-400: oklch(0.859 0.122 76);
186
- --category-2-depth-3-700: oklch(0.536 0.122 63);
187
- --category-2-depth-3-400: oklch(0.726 0.184 53);
188
- --category-2-depth-4-700: oklch(0.433 0.031 69);
189
- --category-2-depth-4-400: oklch(0.706 0.105 31);
190
- --category-2-depth-5-700: oklch(0.181 0.041 63);
191
- --category-2-depth-5-400: oklch(0.579 0.025 36);
192
- --category-3-depth-1-700: oklch(0.641 0.025 168); /* green */
193
- --category-3-depth-1-400: oklch(0.981 0.025 173);
194
- --category-3-depth-2-700: oklch(0.513 0.091 176);
195
- --category-3-depth-2-400: oklch(0.854 0.14 165);
196
- --category-3-depth-3-700: oklch(0.493 0.162 141);
197
- --category-3-depth-3-400: oklch(0.834 0.219 132);
198
- --category-3-depth-4-700: oklch(0.302 0.101 143);
199
- --category-3-depth-4-400: oklch(0.632 0.138 131);
200
- --category-3-depth-5-700: oklch(0.176 0.025 137);
201
- --category-3-depth-5-400: oklch(0.574 0.025 136);
202
- --category-4-depth-1-700: oklch(0.646 0.025 292); /* purple */
203
- --category-4-depth-1-400: oklch(0.937 0.025 296);
204
- --category-4-depth-2-700: oklch(0.573 0.123 284);
205
- --category-4-depth-2-400: oklch(0.813 0.102 297);
206
- --category-4-depth-3-700: oklch(0.461 0.219 299);
207
- --category-4-depth-3-400: oklch(0.665 0.19 289);
208
- --category-4-depth-4-700: oklch(0.263 0.115 306);
209
- --category-4-depth-4-400: oklch(0.622 0.132 329);
210
- --category-4-depth-5-700: oklch(0.176 0.025 324);
211
- --category-4-depth-5-400: oklch(0.58 0.025 329);
212
- --category-5-depth-1-700: oklch(0.647 0.026 27); /* pink */
213
- --category-5-depth-1-400: oklch(0.956 0.025 344);
214
- --category-5-depth-2-700: oklch(0.575 0.141 21);
215
- --category-5-depth-2-400: oklch(0.826 0.114 350);
216
- --category-5-depth-3-700: oklch(0.386 0.157 28);
217
- --category-5-depth-3-400: oklch(0.664 0.208 343);
218
- --category-5-depth-4-700: oklch(0.36 0.132 348);
219
- --category-5-depth-4-400: oklch(0.637 0.253 13);
220
- --category-5-depth-5-700: oklch(0.182 0.031 349);
221
- --category-5-depth-5-400: oklch(0.606 0.243 30);
222
- --category-6-depth-1-700: oklch(0.645 0.038 78); /* brown */
223
- --category-6-depth-1-400: oklch(0.966 0.025 74);
224
- --category-6-depth-2-700: oklch(0.556 0.119 72);
225
- --category-6-depth-2-400: oklch(0.842 0.118 80);
226
- --category-6-depth-3-700: oklch(0.535 0.105 35);
227
- --category-6-depth-3-400: oklch(0.735 0.184 54);
228
- --category-6-depth-4-700: oklch(0.321 0.109 36);
229
- --category-6-depth-4-400: oklch(0.714 0.1 32);
230
- --category-6-depth-5-700: oklch(0.178 0.026 36);
231
- --category-6-depth-5-400: oklch(0.579 0.025 37);
232
- --category-7-depth-1-700: oklch(0.641 0.025 206); /* teal */
233
- --category-7-depth-1-400: oklch(0.979 0.027 163);
234
- --category-7-depth-2-700: oklch(0.527 0.089 200);
235
- --category-7-depth-2-400: oklch(0.875 0.131 162);
236
- --category-7-depth-3-700: oklch(0.507 0.111 160);
237
- --category-7-depth-3-400: oklch(0.849 0.143 201);
238
- --category-7-depth-4-700: oklch(0.342 0.066 167);
239
- --category-7-depth-4-400: oklch(0.65 0.111 194);
240
- --category-7-depth-5-700: oklch(0.177 0.026 162);
241
- --category-7-depth-5-400: oklch(0.574 0.025 202);
242
- --category-8-depth-1-700: oklch(0.647 0.025 5); /* red */
243
- --category-8-depth-1-400: oklch(0.951 0.026 50);
244
- --category-8-depth-2-700: oklch(0.571 0.136 13);
245
- --category-8-depth-2-400: oklch(0.812 0.108 42);
246
- --category-8-depth-3-700: oklch(0.363 0.144 9);
247
- --category-8-depth-3-400: oklch(0.662 0.183 47);
248
- --category-8-depth-4-700: oklch(0.342 0.094 47);
249
- --category-8-depth-4-400: oklch(0.622 0.251 25);
250
- --category-8-depth-5-700: oklch(0.179 0.027 48);
251
- --category-8-depth-5-400: oklch(0.598 0.164 4);
252
- --category-9-depth-1-700: oklch(0.642 0.037 108); /* gold */
253
- --category-9-depth-1-400: oklch(0.994 0.025 108);
254
- --category-9-depth-2-700: oklch(0.589 0.122 99);
255
- --category-9-depth-2-400: oklch(0.866 0.122 108);
256
- --category-9-depth-3-700: oklch(0.538 0.071 63);
257
- --category-9-depth-3-400: oklch(0.823 0.17 80);
258
- --category-9-depth-4-700: oklch(0.343 0.074 68);
259
- --category-9-depth-4-400: oklch(0.631 0.121 72);
260
- --category-9-depth-5-700: oklch(0.181 0.032 62);
261
- --category-9-depth-5-400: oklch(0.578 0.025 68);
262
- --category-10-depth-1-700: oklch(0.646 0.027 303); /* navy */
263
- --category-10-depth-1-400: oklch(0.944 0.026 267);
264
- --category-10-depth-2-700: oklch(0.575 0.126 291);
265
- --category-10-depth-2-400: oklch(0.812 0.093 266);
266
- --category-10-depth-3-700: oklch(0.441 0.219 294);
267
- --category-10-depth-3-400: oklch(0.668 0.176 274);
268
- --category-10-depth-4-700: oklch(0.357 0.104 257);
269
- --category-10-depth-4-400: oklch(0.599 0.108 301);
270
- --category-10-depth-5-700: oklch(0.178 0.025 265);
271
- --category-10-depth-5-400: oklch(0.579 0.025 302);
272
- --category-11-depth-1-700: oklch(0.643 0.035 104); /* lime */
273
- --category-11-depth-1-400: oklch(0.986 0.026 136);
274
- --category-11-depth-2-700: oklch(0.576 0.119 98);
275
- --category-11-depth-2-400: oklch(0.842 0.132 143);
276
- --category-11-depth-3-700: oklch(0.55 0.093 137);
277
- --category-11-depth-3-400: oklch(0.803 0.179 113);
278
- --category-11-depth-4-700: oklch(0.413 0.033 130);
279
- --category-11-depth-4-400: oklch(0.627 0.126 96);
280
- --category-11-depth-5-700: oklch(0.179 0.025 141);
281
- --category-11-depth-5-400: oklch(0.579 0.027 102);
282
- --category-12-depth-1-700: oklch(0.646 0.025 353); /* magenta */
283
- --category-12-depth-1-400: oklch(0.968 0.025 321);
284
- --category-12-depth-2-700: oklch(0.566 0.139 0);
285
- --category-12-depth-2-400: oklch(0.865 0.121 325);
286
- --category-12-depth-3-700: oklch(0.531 0.219 317);
287
- --category-12-depth-3-400: oklch(0.702 0.218 317);
288
- --category-12-depth-4-700: oklch(0.319 0.129 325);
289
- --category-12-depth-4-400: oklch(0.681 0.116 354);
290
- --category-12-depth-5-700: oklch(0.177 0.025 314);
291
- --category-12-depth-5-400: oklch(0.58 0.026 0);
179
+ --category-1-depth-1-700: oklch(0.609 0.142 245); /* blue */
180
+ --category-1-depth-1-400: oklch(0.58 0.116 245);
181
+ --category-1-depth-2-700: oklch(0.521 0.121 245);
182
+ --category-1-depth-2-400: oklch(0.66 0.148 245);
183
+ --category-1-depth-3-700: oklch(0.422 0.095 245);
184
+ --category-1-depth-3-400: oklch(0.753 0.112 245);
185
+ --category-1-depth-4-700: oklch(0.309 0.07 245);
186
+ --category-1-depth-4-400: oklch(0.839 0.064 245);
187
+ --category-1-depth-5-700: oklch(0.19 0.039 245);
188
+ --category-1-depth-5-400: oklch(0.928 0.031 245);
189
+ --category-2-depth-1-700: oklch(0.638 0.152 52); /* orange */
190
+ --category-2-depth-1-400: oklch(0.593 0.133 52);
191
+ --category-2-depth-2-700: oklch(0.535 0.127 52);
192
+ --category-2-depth-2-400: oklch(0.692 0.165 52);
193
+ --category-2-depth-3-700: oklch(0.421 0.095 52);
194
+ --category-2-depth-3-400: oklch(0.788 0.127 52);
195
+ --category-2-depth-4-700: oklch(0.298 0.06 52);
196
+ --category-2-depth-4-400: oklch(0.865 0.072 52);
197
+ --category-2-depth-5-700: oklch(0.19 0.033 52);
198
+ --category-2-depth-5-400: oklch(0.943 0.03 52);
199
+ --category-3-depth-1-700: oklch(0.619 0.151 152); /* green */
200
+ --category-3-depth-1-400: oklch(0.568 0.128 152);
201
+ --category-3-depth-2-700: oklch(0.521 0.126 152);
202
+ --category-3-depth-2-400: oklch(0.656 0.16 152);
203
+ --category-3-depth-3-700: oklch(0.418 0.097 152);
204
+ --category-3-depth-3-400: oklch(0.766 0.187 152);
205
+ --category-3-depth-4-700: oklch(0.306 0.064 152);
206
+ --category-3-depth-4-400: oklch(0.898 0.167 152);
207
+ --category-3-depth-5-700: oklch(0.19 0.039 152);
208
+ --category-3-depth-5-400: oklch(0.945 0.081 152);
209
+ --category-4-depth-1-700: oklch(0.651 0.218 305); /* purple */
210
+ --category-4-depth-1-400: oklch(0.612 0.246 305);
211
+ --category-4-depth-2-700: oklch(0.562 0.27 305);
212
+ --category-4-depth-2-400: oklch(0.691 0.187 305);
213
+ --category-4-depth-3-700: oklch(0.444 0.193 305);
214
+ --category-4-depth-3-400: oklch(0.779 0.128 305);
215
+ --category-4-depth-4-700: oklch(0.311 0.132 305);
216
+ --category-4-depth-4-400: oklch(0.869 0.074 305);
217
+ --category-4-depth-5-700: oklch(0.19 0.071 305);
218
+ --category-4-depth-5-400: oklch(0.945 0.03 305);
219
+ --category-5-depth-1-700: oklch(0.662 0.219 7); /* pink */
220
+ --category-5-depth-1-400: oklch(0.612 0.227 7);
221
+ --category-5-depth-2-700: oklch(0.525 0.175 7);
222
+ --category-5-depth-2-400: oklch(0.693 0.189 7);
223
+ --category-5-depth-3-700: oklch(0.427 0.149 7);
224
+ --category-5-depth-3-400: oklch(0.764 0.125 7);
225
+ --category-5-depth-4-700: oklch(0.31 0.096 7);
226
+ --category-5-depth-4-400: oklch(0.841 0.075 7);
227
+ --category-5-depth-5-700: oklch(0.19 0.05 7);
228
+ --category-5-depth-5-400: oklch(0.933 0.032 7);
229
+ --category-6-depth-1-700: oklch(0.639 0.145 56); /* brown */
230
+ --category-6-depth-1-400: oklch(0.592 0.131 56);
231
+ --category-6-depth-2-700: oklch(0.533 0.12 56);
232
+ --category-6-depth-2-400: oklch(0.692 0.157 56);
233
+ --category-6-depth-3-700: oklch(0.419 0.09 56);
234
+ --category-6-depth-3-400: oklch(0.795 0.127 56);
235
+ --category-6-depth-4-700: oklch(0.297 0.057 56);
236
+ --category-6-depth-4-400: oklch(0.869 0.072 56);
237
+ --category-6-depth-5-700: oklch(0.19 0.031 56);
238
+ --category-6-depth-5-400: oklch(0.945 0.03 56);
239
+ --category-7-depth-1-700: oklch(0.613 0.101 183); /* teal */
240
+ --category-7-depth-1-400: oklch(0.57 0.093 183);
241
+ --category-7-depth-2-700: oklch(0.523 0.086 183);
242
+ --category-7-depth-2-400: oklch(0.653 0.1 183);
243
+ --category-7-depth-3-700: oklch(0.423 0.069 183);
244
+ --category-7-depth-3-400: oklch(0.747 0.113 183);
245
+ --category-7-depth-4-700: oklch(0.314 0.047 183);
246
+ --category-7-depth-4-400: oklch(0.848 0.14 183);
247
+ --category-7-depth-5-700: oklch(0.196 0.03 183);
248
+ --category-7-depth-5-400: oklch(0.94 0.081 183);
249
+ --category-8-depth-1-700: oklch(0.66 0.191 27); /* red */
250
+ --category-8-depth-1-400: oklch(0.611 0.211 27);
251
+ --category-8-depth-2-700: oklch(0.534 0.162 27);
252
+ --category-8-depth-2-400: oklch(0.68 0.156 27);
253
+ --category-8-depth-3-700: oklch(0.427 0.129 27);
254
+ --category-8-depth-3-400: oklch(0.759 0.107 27);
255
+ --category-8-depth-4-700: oklch(0.31 0.093 27);
256
+ --category-8-depth-4-400: oklch(0.848 0.066 27);
257
+ --category-8-depth-5-700: oklch(0.19 0.061 27);
258
+ --category-8-depth-5-400: oklch(0.931 0.031 27);
259
+ --category-9-depth-1-700: oklch(0.633 0.12 84); /* gold */
260
+ --category-9-depth-1-400: oklch(0.584 0.094 84);
261
+ --category-9-depth-2-700: oklch(0.533 0.099 84);
262
+ --category-9-depth-2-400: oklch(0.674 0.121 84);
263
+ --category-9-depth-3-700: oklch(0.427 0.071 84);
264
+ --category-9-depth-3-400: oklch(0.782 0.149 84);
265
+ --category-9-depth-4-700: oklch(0.295 0.053 84);
266
+ --category-9-depth-4-400: oklch(0.886 0.111 84);
267
+ --category-9-depth-5-700: oklch(0.19 0.03 84);
268
+ --category-9-depth-5-400: oklch(0.943 0.054 84);
269
+ --category-10-depth-1-700: oklch(0.649 0.169 279); /* navy */
270
+ --category-10-depth-1-400: oklch(0.618 0.195 279);
271
+ --category-10-depth-2-700: oklch(0.559 0.23 279);
272
+ --category-10-depth-2-400: oklch(0.693 0.152 279);
273
+ --category-10-depth-3-700: oklch(0.449 0.253 279);
274
+ --category-10-depth-3-400: oklch(0.771 0.103 279);
275
+ --category-10-depth-4-700: oklch(0.318 0.16 279);
276
+ --category-10-depth-4-400: oklch(0.849 0.06 279);
277
+ --category-10-depth-5-700: oklch(0.19 0.086 279);
278
+ --category-10-depth-5-400: oklch(0.93 0.03 279);
279
+ --category-11-depth-1-700: oklch(0.621 0.135 119); /* lime */
280
+ --category-11-depth-1-400: oklch(0.576 0.114 119);
281
+ --category-11-depth-2-700: oklch(0.527 0.105 119);
282
+ --category-11-depth-2-400: oklch(0.656 0.115 119);
283
+ --category-11-depth-3-700: oklch(0.413 0.087 119);
284
+ --category-11-depth-3-400: oklch(0.741 0.139 119);
285
+ --category-11-depth-4-700: oklch(0.297 0.055 119);
286
+ --category-11-depth-4-400: oklch(0.832 0.172 119);
287
+ --category-11-depth-5-700: oklch(0.19 0.031 119);
288
+ --category-11-depth-5-400: oklch(0.939 0.205 119);
289
+ --category-12-depth-1-700: oklch(0.646 0.259 337); /* magenta */
290
+ --category-12-depth-1-400: oklch(0.619 0.253 337);
291
+ --category-12-depth-2-700: oklch(0.53 0.209 337);
292
+ --category-12-depth-2-400: oklch(0.715 0.232 337);
293
+ --category-12-depth-3-700: oklch(0.417 0.169 337);
294
+ --category-12-depth-3-400: oklch(0.795 0.153 337);
295
+ --category-12-depth-4-700: oklch(0.295 0.114 337);
296
+ --category-12-depth-4-400: oklch(0.869 0.085 337);
297
+ --category-12-depth-5-700: oklch(0.19 0.062 337);
298
+ --category-12-depth-5-400: oklch(0.945 0.032 337);
292
299
  --blue-500: oklch(0.488 0.243 264.376);
293
300
 
294
301
  /*
@@ -543,7 +550,7 @@
543
550
  --category-1-depth-1: var(--category-1-depth-1-700);
544
551
  --category-1-depth-1-foreground: var(--black);
545
552
  --category-1-depth-2: var(--category-1-depth-2-700);
546
- --category-1-depth-2-foreground: var(--black);
553
+ --category-1-depth-2-foreground: var(--white);
547
554
  --category-1-depth-3: var(--category-1-depth-3-700);
548
555
  --category-1-depth-3-foreground: var(--white);
549
556
  --category-1-depth-4: var(--category-1-depth-4-700);
@@ -623,7 +630,7 @@
623
630
  --category-9-depth-1: var(--category-9-depth-1-700);
624
631
  --category-9-depth-1-foreground: var(--black);
625
632
  --category-9-depth-2: var(--category-9-depth-2-700);
626
- --category-9-depth-2-foreground: var(--black);
633
+ --category-9-depth-2-foreground: var(--white);
627
634
  --category-9-depth-3: var(--category-9-depth-3-700);
628
635
  --category-9-depth-3-foreground: var(--white);
629
636
  --category-9-depth-4: var(--category-9-depth-4-700);
@@ -643,7 +650,7 @@
643
650
  --category-11-depth-1: var(--category-11-depth-1-700);
644
651
  --category-11-depth-1-foreground: var(--black);
645
652
  --category-11-depth-2: var(--category-11-depth-2-700);
646
- --category-11-depth-2-foreground: var(--black);
653
+ --category-11-depth-2-foreground: var(--white);
647
654
  --category-11-depth-3: var(--category-11-depth-3-700);
648
655
  --category-11-depth-3-foreground: var(--white);
649
656
  --category-11-depth-4: var(--category-11-depth-4-700);