@grafctory/skin 0.0.0-stage → 0.3.2

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 (78) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +482 -2
  3. package/dist/index.core.d.ts +201 -0
  4. package/dist/index.core.d.ts.map +1 -0
  5. package/dist/index.core.js +17 -0
  6. package/dist/index.core.js.map +1 -0
  7. package/dist/index.css +130 -0
  8. package/dist/index.d.ts +432 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +184 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/markup/alerts.css +83 -0
  13. package/dist/markup/blocks.css +255 -0
  14. package/dist/markup/forms.css +552 -0
  15. package/dist/markup/headings.css +131 -0
  16. package/dist/markup/highlights.css +38 -0
  17. package/dist/markup/inlines.css +181 -0
  18. package/dist/markup/lists.css +202 -0
  19. package/dist/markup/reset.css +38 -0
  20. package/dist/markup/tables.css +87 -0
  21. package/dist/presets/inter.css +194 -0
  22. package/dist/presets/roboto.css +198 -0
  23. package/dist/tokens/borders.css +151 -0
  24. package/dist/tokens/borders.d.ts +61 -0
  25. package/dist/tokens/borders.d.ts.map +1 -0
  26. package/dist/tokens/borders.js +76 -0
  27. package/dist/tokens/borders.js.map +1 -0
  28. package/dist/tokens/colors.css +516 -0
  29. package/dist/tokens/colors.d.ts +172 -0
  30. package/dist/tokens/colors.d.ts.map +1 -0
  31. package/dist/tokens/colors.js +187 -0
  32. package/dist/tokens/colors.js.map +1 -0
  33. package/dist/tokens/elevations.css +110 -0
  34. package/dist/tokens/elevations.d.ts +54 -0
  35. package/dist/tokens/elevations.d.ts.map +1 -0
  36. package/dist/tokens/elevations.js +69 -0
  37. package/dist/tokens/elevations.js.map +1 -0
  38. package/dist/tokens/layers.css +57 -0
  39. package/dist/tokens/layers.d.ts +34 -0
  40. package/dist/tokens/layers.d.ts.map +1 -0
  41. package/dist/tokens/layers.js +49 -0
  42. package/dist/tokens/layers.js.map +1 -0
  43. package/dist/tokens/motions.css +91 -0
  44. package/dist/tokens/motions.d.ts +40 -0
  45. package/dist/tokens/motions.d.ts.map +1 -0
  46. package/dist/tokens/motions.js +55 -0
  47. package/dist/tokens/motions.js.map +1 -0
  48. package/dist/tokens/opacities.css +41 -0
  49. package/dist/tokens/opacities.d.ts +32 -0
  50. package/dist/tokens/opacities.d.ts.map +1 -0
  51. package/dist/tokens/opacities.js +47 -0
  52. package/dist/tokens/opacities.js.map +1 -0
  53. package/dist/tokens/palettes.css +546 -0
  54. package/dist/tokens/palettes.d.ts +140 -0
  55. package/dist/tokens/palettes.d.ts.map +1 -0
  56. package/dist/tokens/palettes.js +155 -0
  57. package/dist/tokens/palettes.js.map +1 -0
  58. package/dist/tokens/scalings.css +81 -0
  59. package/dist/tokens/scalings.d.ts +31 -0
  60. package/dist/tokens/scalings.d.ts.map +1 -0
  61. package/dist/tokens/scalings.js +46 -0
  62. package/dist/tokens/scalings.js.map +1 -0
  63. package/dist/tokens/spacings.css +78 -0
  64. package/dist/tokens/spacings.d.ts +34 -0
  65. package/dist/tokens/spacings.d.ts.map +1 -0
  66. package/dist/tokens/spacings.js +49 -0
  67. package/dist/tokens/spacings.js.map +1 -0
  68. package/dist/tokens/typography.css +156 -0
  69. package/dist/tokens/typography.d.ts +77 -0
  70. package/dist/tokens/typography.d.ts.map +1 -0
  71. package/dist/tokens/typography.js +92 -0
  72. package/dist/tokens/typography.js.map +1 -0
  73. package/dist/tokens/viewports.css +101 -0
  74. package/dist/tokens/viewports.d.ts +75 -0
  75. package/dist/tokens/viewports.d.ts.map +1 -0
  76. package/dist/tokens/viewports.js +90 -0
  77. package/dist/tokens/viewports.js.map +1 -0
  78. package/package.json +87 -4
@@ -0,0 +1,546 @@
1
+ /*
2
+ * Copyright © 2023-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ /*
18
+ * The colours an author picks for content and the colours a chart, a coding or a map reads: eighteen editor colours,
19
+ * four ten-step scales, nine series slots and four area classes. An editor colour, a step, a slot or a class says how
20
+ * an author coloured content, where a value sits or which thing it belongs to. None is ever a substitute for a role
21
+ * token, which says what a colour means in the interface, and an app retuning the roles repaints none of them.
22
+ */
23
+
24
+ /*
25
+ * A scale addresses a colour by position on a ten-step ladder, where the number is the share of the anchor it carries:
26
+ * 010 is the faintest step and 100 the anchor at full strength. A consumer mapping a measure onto a scale reads the
27
+ * step by name, so the values behind the ladder stay revisable.
28
+ *
29
+ * The grey and accent scales are derived, following retuned anchors and mixing towards the page in either scheme.
30
+ */
31
+
32
+ @property --skin--color-gray-010 {
33
+ syntax: "*";
34
+ inherits: true;
35
+ }
36
+
37
+ @property --skin--color-gray-020 {
38
+ syntax: "*";
39
+ inherits: true;
40
+ }
41
+
42
+ @property --skin--color-gray-030 {
43
+ syntax: "*";
44
+ inherits: true;
45
+ }
46
+
47
+ @property --skin--color-gray-040 {
48
+ syntax: "*";
49
+ inherits: true;
50
+ }
51
+
52
+ @property --skin--color-gray-050 {
53
+ syntax: "*";
54
+ inherits: true;
55
+ }
56
+
57
+ @property --skin--color-gray-060 {
58
+ syntax: "*";
59
+ inherits: true;
60
+ }
61
+
62
+ @property --skin--color-gray-070 {
63
+ syntax: "*";
64
+ inherits: true;
65
+ }
66
+
67
+ @property --skin--color-gray-080 {
68
+ syntax: "*";
69
+ inherits: true;
70
+ }
71
+
72
+ @property --skin--color-gray-090 {
73
+ syntax: "*";
74
+ inherits: true;
75
+ }
76
+
77
+ @property --skin--color-gray-100 {
78
+ syntax: "*";
79
+ inherits: true;
80
+ }
81
+
82
+ @property --skin--color-subtle-010 {
83
+ syntax: "*";
84
+ inherits: true;
85
+ }
86
+
87
+ @property --skin--color-subtle-020 {
88
+ syntax: "*";
89
+ inherits: true;
90
+ }
91
+
92
+ @property --skin--color-subtle-030 {
93
+ syntax: "*";
94
+ inherits: true;
95
+ }
96
+
97
+ @property --skin--color-subtle-040 {
98
+ syntax: "*";
99
+ inherits: true;
100
+ }
101
+
102
+ @property --skin--color-subtle-050 {
103
+ syntax: "*";
104
+ inherits: true;
105
+ }
106
+
107
+ @property --skin--color-subtle-060 {
108
+ syntax: "*";
109
+ inherits: true;
110
+ }
111
+
112
+ @property --skin--color-subtle-070 {
113
+ syntax: "*";
114
+ inherits: true;
115
+ }
116
+
117
+ @property --skin--color-subtle-080 {
118
+ syntax: "*";
119
+ inherits: true;
120
+ }
121
+
122
+ @property --skin--color-subtle-090 {
123
+ syntax: "*";
124
+ inherits: true;
125
+ }
126
+
127
+ @property --skin--color-subtle-100 {
128
+ syntax: "*";
129
+ inherits: true;
130
+ }
131
+
132
+ @property --skin--color-strong-010 {
133
+ syntax: "*";
134
+ inherits: true;
135
+ }
136
+
137
+ @property --skin--color-strong-020 {
138
+ syntax: "*";
139
+ inherits: true;
140
+ }
141
+
142
+ @property --skin--color-strong-030 {
143
+ syntax: "*";
144
+ inherits: true;
145
+ }
146
+
147
+ @property --skin--color-strong-040 {
148
+ syntax: "*";
149
+ inherits: true;
150
+ }
151
+
152
+ @property --skin--color-strong-050 {
153
+ syntax: "*";
154
+ inherits: true;
155
+ }
156
+
157
+ @property --skin--color-strong-060 {
158
+ syntax: "*";
159
+ inherits: true;
160
+ }
161
+
162
+ @property --skin--color-strong-070 {
163
+ syntax: "*";
164
+ inherits: true;
165
+ }
166
+
167
+ @property --skin--color-strong-080 {
168
+ syntax: "*";
169
+ inherits: true;
170
+ }
171
+
172
+ @property --skin--color-strong-090 {
173
+ syntax: "*";
174
+ inherits: true;
175
+ }
176
+
177
+ @property --skin--color-strong-100 {
178
+ syntax: "*";
179
+ inherits: true;
180
+ }
181
+
182
+ :root {
183
+
184
+ --skin--color-gray-010: color-mix(in oklab, var(--skin--color) 10%, var(--skin--background-color));
185
+ --skin--color-gray-020: color-mix(in oklab, var(--skin--color) 20%, var(--skin--background-color));
186
+ --skin--color-gray-030: color-mix(in oklab, var(--skin--color) 30%, var(--skin--background-color));
187
+ --skin--color-gray-040: color-mix(in oklab, var(--skin--color) 40%, var(--skin--background-color));
188
+ --skin--color-gray-050: color-mix(in oklab, var(--skin--color) 50%, var(--skin--background-color));
189
+ --skin--color-gray-060: color-mix(in oklab, var(--skin--color) 60%, var(--skin--background-color));
190
+ --skin--color-gray-070: color-mix(in oklab, var(--skin--color) 70%, var(--skin--background-color));
191
+ --skin--color-gray-080: color-mix(in oklab, var(--skin--color) 80%, var(--skin--background-color));
192
+ --skin--color-gray-090: color-mix(in oklab, var(--skin--color) 90%, var(--skin--background-color));
193
+ --skin--color-gray-100: var(--skin--color);
194
+
195
+ --skin--color-subtle-010: color-mix(in oklab, var(--skin--color-subtle) 10%, var(--skin--background-color));
196
+ --skin--color-subtle-020: color-mix(in oklab, var(--skin--color-subtle) 20%, var(--skin--background-color));
197
+ --skin--color-subtle-030: color-mix(in oklab, var(--skin--color-subtle) 30%, var(--skin--background-color));
198
+ --skin--color-subtle-040: color-mix(in oklab, var(--skin--color-subtle) 40%, var(--skin--background-color));
199
+ --skin--color-subtle-050: color-mix(in oklab, var(--skin--color-subtle) 50%, var(--skin--background-color));
200
+ --skin--color-subtle-060: color-mix(in oklab, var(--skin--color-subtle) 60%, var(--skin--background-color));
201
+ --skin--color-subtle-070: color-mix(in oklab, var(--skin--color-subtle) 70%, var(--skin--background-color));
202
+ --skin--color-subtle-080: color-mix(in oklab, var(--skin--color-subtle) 80%, var(--skin--background-color));
203
+ --skin--color-subtle-090: color-mix(in oklab, var(--skin--color-subtle) 90%, var(--skin--background-color));
204
+ --skin--color-subtle-100: var(--skin--color-subtle);
205
+
206
+ --skin--color-strong-010: color-mix(in oklab, var(--skin--color-strong) 10%, var(--skin--background-color));
207
+ --skin--color-strong-020: color-mix(in oklab, var(--skin--color-strong) 20%, var(--skin--background-color));
208
+ --skin--color-strong-030: color-mix(in oklab, var(--skin--color-strong) 30%, var(--skin--background-color));
209
+ --skin--color-strong-040: color-mix(in oklab, var(--skin--color-strong) 40%, var(--skin--background-color));
210
+ --skin--color-strong-050: color-mix(in oklab, var(--skin--color-strong) 50%, var(--skin--background-color));
211
+ --skin--color-strong-060: color-mix(in oklab, var(--skin--color-strong) 60%, var(--skin--background-color));
212
+ --skin--color-strong-070: color-mix(in oklab, var(--skin--color-strong) 70%, var(--skin--background-color));
213
+ --skin--color-strong-080: color-mix(in oklab, var(--skin--color-strong) 80%, var(--skin--background-color));
214
+ --skin--color-strong-090: color-mix(in oklab, var(--skin--color-strong) 90%, var(--skin--background-color));
215
+ --skin--color-strong-100: var(--skin--color-strong);
216
+
217
+ }
218
+
219
+ /*
220
+ * The heat scale runs from a cool blue through green, yellow and red to a violet extremum standing for a measure past
221
+ * the top of its range. Its hue carries the reading and its lightness does not, peaking mid-scale and falling at both
222
+ * ends, so a step means a band a legend names and never a position on a continuous gradient. A consumer states the
223
+ * band in text beside the colour.
224
+ *
225
+ * The scale carries literals rather than derivations of an anchor: a magnitude coding taking the hue an app brands
226
+ * with would stop reading as a temperature. Text over a step takes the page colour up to 070 and the page background
227
+ * from 080 on, where the scale turns dark enough to carry it.
228
+ *
229
+ * Only the last two steps state a light-dark() pair, as the anchors in colors.css do and for the same reason: at their
230
+ * light values they sit at 2.05:1 and 2.76:1 against the dark page and lose the top of the range where it matters
231
+ * most. The cool half holds in both schemes and is stated once.
232
+ */
233
+
234
+ @property --skin--color-heat-010 {
235
+ syntax: "<color>";
236
+ inherits: true;
237
+ initial-value: #1B95F9;
238
+ }
239
+
240
+ @property --skin--color-heat-020 {
241
+ syntax: "<color>";
242
+ inherits: true;
243
+ initial-value: #28CBF3;
244
+ }
245
+
246
+ @property --skin--color-heat-030 {
247
+ syntax: "<color>";
248
+ inherits: true;
249
+ initial-value: #2DE2BF;
250
+ }
251
+
252
+ @property --skin--color-heat-040 {
253
+ syntax: "<color>";
254
+ inherits: true;
255
+ initial-value: #76F17E;
256
+ }
257
+
258
+ @property --skin--color-heat-050 {
259
+ syntax: "<color>";
260
+ inherits: true;
261
+ initial-value: #C9F14C;
262
+ }
263
+
264
+ @property --skin--color-heat-060 {
265
+ syntax: "<color>";
266
+ inherits: true;
267
+ initial-value: #FDDC59;
268
+ }
269
+
270
+ @property --skin--color-heat-070 {
271
+ syntax: "<color>";
272
+ inherits: true;
273
+ initial-value: #FA9522;
274
+ }
275
+
276
+ @property --skin--color-heat-080 {
277
+ syntax: "<color>";
278
+ inherits: true;
279
+ initial-value: #DF2212;
280
+ }
281
+
282
+ @property --skin--color-heat-090 {
283
+ syntax: "*";
284
+ inherits: true;
285
+ initial-value: light-dark(#8F0D35, #B13550);
286
+ }
287
+
288
+ @property --skin--color-heat-100 {
289
+ syntax: "*";
290
+ inherits: true;
291
+ initial-value: light-dark(#9813B1, #B940D2);
292
+ }
293
+
294
+ /*
295
+ * The series slots tell one thing apart from another, on a bar, a line or a wedge. A number is a slot rather than a
296
+ * share: the slots stand in a fixed order, and a consumer takes them in sequence and holds each one to the thing it
297
+ * paints, so a filter dropping a series leaves the survivors their colours. Their separation is what the order buys,
298
+ * measured under simulated colour vision deficiency, so reordering or resampling them forfeits it.
299
+ *
300
+ * The slots are literals rather than derivations of an accent: an app rebranding gets its brand on the interface
301
+ * without its charts changing meaning. They hold nine of the ten hues of the Tableau 10 qualitative scheme, its grey
302
+ * left out, in an order of this package's own choosing rather than Tableau's. One value serves both colour schemes,
303
+ * since every slot clears 4:1 against either page.
304
+ *
305
+ * The order is what separation rests on: the hues alternate in lightness as they run, and the pairs that collapse
306
+ * under simulated colour vision deficiency are kept out of each other's way. A set holding one lightness fails
307
+ * however far apart its hues sit, which is why Tableau's own order is not the one declared here.
308
+ *
309
+ * Nine slots hold where only neighbours are compared, on grouped bars, stacked segments and lines. Where every pair
310
+ * is compared, on a scatter, a bubble chart or a map, only the first three hold, and a fourth thing is faceted rather
311
+ * than coloured. A tenth thing is gathered under one residual slot, never given a colour of its own. A state is told
312
+ * in the role that names it, never in a slot.
313
+ *
314
+ * Four of the nine, the yellow, the pink, the teal and the orange, fall short of 3:1 against the light page, so a
315
+ * chart carrying them **ALWAYS** states its figures in text as well, through direct labels or a table view; on the
316
+ * dark page each one clears 4.1:1.
317
+ */
318
+
319
+ @property --skin--color-series-1 {
320
+ syntax: "<color>";
321
+ inherits: true;
322
+ initial-value: #4E79A7;
323
+ }
324
+
325
+ @property --skin--color-series-2 {
326
+ syntax: "<color>";
327
+ inherits: true;
328
+ initial-value: #59A14F;
329
+ }
330
+
331
+ @property --skin--color-series-3 {
332
+ syntax: "<color>";
333
+ inherits: true;
334
+ initial-value: #EDC948;
335
+ }
336
+
337
+ @property --skin--color-series-4 {
338
+ syntax: "<color>";
339
+ inherits: true;
340
+ initial-value: #9C755F;
341
+ }
342
+
343
+ @property --skin--color-series-5 {
344
+ syntax: "<color>";
345
+ inherits: true;
346
+ initial-value: #76B7B2;
347
+ }
348
+
349
+ @property --skin--color-series-6 {
350
+ syntax: "<color>";
351
+ inherits: true;
352
+ initial-value: #F28E2B;
353
+ }
354
+
355
+ @property --skin--color-series-7 {
356
+ syntax: "<color>";
357
+ inherits: true;
358
+ initial-value: #B07AA1;
359
+ }
360
+
361
+ @property --skin--color-series-8 {
362
+ syntax: "<color>";
363
+ inherits: true;
364
+ initial-value: #FF9DA7;
365
+ }
366
+
367
+ @property --skin--color-series-9 {
368
+ syntax: "<color>";
369
+ inherits: true;
370
+ initial-value: #E15759;
371
+ }
372
+
373
+ /*
374
+ * The area classes fill a shape rather than draw a mark: a region on a choropleth, a band on a terrain, a cell on a
375
+ * grid. They come as two pairs, a light and a dark of one hue each, so a reader tells the members of a pair apart by
376
+ * lightness where hue alone would fail, and reads the two hues as two families. That pairing is what a photocopied or
377
+ * greyscale-printed map survives on, which a set of unrelated hues does not.
378
+ *
379
+ * Every pair of classes meets on a shared boundary, not just the ones a legend lists side by side, so the four are
380
+ * held to the all-pairs measure rather than the adjacent one. Four is where the scheme they come from stops being
381
+ * safe under simulated colour vision deficiency: a fifth class is a second map, never a fifth colour.
382
+ *
383
+ * The two pale classes fall short of 3:1 against the light page, so a map carrying them **ALWAYS** keeps its
384
+ * boundaries drawn and names its classes in the legend; on the dark page each class clears 3.9:1.
385
+ */
386
+
387
+ @property --skin--color-area-1 {
388
+ syntax: "<color>";
389
+ inherits: true;
390
+ initial-value: #A6CEE3;
391
+ }
392
+
393
+ @property --skin--color-area-2 {
394
+ syntax: "<color>";
395
+ inherits: true;
396
+ initial-value: #1F78B4;
397
+ }
398
+
399
+ @property --skin--color-area-3 {
400
+ syntax: "<color>";
401
+ inherits: true;
402
+ initial-value: #B2DF8A;
403
+ }
404
+
405
+ @property --skin--color-area-4 {
406
+ syntax: "<color>";
407
+ inherits: true;
408
+ initial-value: #33A02C;
409
+ }
410
+
411
+ /*
412
+ * The editor colours are what an author picks to colour content: a word set in red, a table cell filled in yellow,
413
+ * a highlight behind a phrase. They form a grid of six columns, a neutral and five hues, by three steps named as the
414
+ * look attribute names its own: strong stands out from the page, subtle stays close to it and the plain name sits
415
+ * between them. The neutral column takes black, gray and white for its three steps.
416
+ *
417
+ * The values are muted as the pickers of document editors keep them, rather than set at the gamut's edge, on three
418
+ * steps spaced in OKLab lightness from the page, the tints on the dark page held to a lower chroma still. Gray sits
419
+ * on the plain step, while black and white keep the ends of the scale their names promise, beyond the lightness the
420
+ * five hues span, so the neutral column frames the hues rather than sitting among them on either page.
421
+ *
422
+ * The plain step is the one a picker names red or blue, so it is the one an author reaches for first and most often
423
+ * sets as text. It holds 3:1 against the page, the WCAG minimum for large text and for a mark such as an underline
424
+ * or a cell border, which the editor pickers it was sampled from hold as well: spaced evenly at 0.70 on the light
425
+ * page it fell to 2.6:1, so it sits lower there by as little as 3:1 requires, while on the dark page it holds 3.9:1
426
+ * at its even spacing. It stops short of 4.5:1 on purpose: that far down it would crowd the strong step and leave each
427
+ * hue two near-identical darks. No step is held to 4.5:1, so text at body size is the author's to judge.
428
+ *
429
+ * Any colour serves as text or as fill, and how an author combines them is otherwise the author's to judge: the
430
+ * package holds them to the gamut and the plain step to 3:1, with no guarantee for any other pairing. Each states
431
+ * both schemes, so the strong step is dark on the light page and light on the dark one, and the subtle step the
432
+ * reverse, black and white included, so a step stands out from or recedes into the page whichever scheme is in force.
433
+ *
434
+ * They carry literals named for how they look, since an author attaches no meaning the interface could rely on: a
435
+ * passage made blue stays blue whatever an app brands with, and retuning a status colour repaints no content. Red,
436
+ * yellow, green and blue are the hues every author names, a quarter turn apart, and purple is the one hue between
437
+ * them sitting next to none, while orange, teal and the rest each fall between two of the five.
438
+ */
439
+
440
+ @property --skin--color-black {
441
+ syntax: "*";
442
+ inherits: true;
443
+ initial-value: light-dark(#000, #EEE);
444
+ }
445
+
446
+ @property --skin--color-gray {
447
+ syntax: "*";
448
+ inherits: true;
449
+ initial-value: light-dark(#91949D, #74777F);
450
+ }
451
+
452
+ @property --skin--color-white {
453
+ syntax: "*";
454
+ inherits: true;
455
+ initial-value: light-dark(#FFF, #111);
456
+ }
457
+
458
+ @property --skin--color-red-strong {
459
+ syntax: "*";
460
+ inherits: true;
461
+ initial-value: light-dark(#A0392C, #FF9786);
462
+ }
463
+
464
+ @property --skin--color-red {
465
+ syntax: "*";
466
+ inherits: true;
467
+ initial-value: light-dark(#EB6E6E, #C2494C);
468
+ }
469
+
470
+ @property --skin--color-red-subtle {
471
+ syntax: "*";
472
+ inherits: true;
473
+ initial-value: light-dark(#F8D7D3, #533936);
474
+ }
475
+
476
+ @property --skin--color-yellow-strong {
477
+ syntax: "*";
478
+ inherits: true;
479
+ initial-value: light-dark(#7A601D, #CCB070);
480
+ }
481
+
482
+ @property --skin--color-yellow {
483
+ syntax: "*";
484
+ inherits: true;
485
+ initial-value: light-dark(#B49036, #957206);
486
+ }
487
+
488
+ @property --skin--color-yellow-subtle {
489
+ syntax: "*";
490
+ inherits: true;
491
+ initial-value: light-dark(#F3E995, #423D14);
492
+ }
493
+
494
+ @property --skin--color-green-strong {
495
+ syntax: "*";
496
+ inherits: true;
497
+ initial-value: light-dark(#446A45, #9CC59C);
498
+ }
499
+
500
+ @property --skin--color-green {
501
+ syntax: "*";
502
+ inherits: true;
503
+ initial-value: light-dark(#65A368, #4B884E);
504
+ }
505
+
506
+ @property --skin--color-green-subtle {
507
+ syntax: "*";
508
+ inherits: true;
509
+ initial-value: light-dark(#D0EFD0, #2A442B);
510
+ }
511
+
512
+ @property --skin--color-blue-strong {
513
+ syntax: "*";
514
+ inherits: true;
515
+ initial-value: light-dark(#2A57B6, #96BAFF);
516
+ }
517
+
518
+ @property --skin--color-blue {
519
+ syntax: "*";
520
+ inherits: true;
521
+ initial-value: light-dark(#6192F6, #4172D7);
522
+ }
523
+
524
+ @property --skin--color-blue-subtle {
525
+ syntax: "*";
526
+ inherits: true;
527
+ initial-value: light-dark(#D2E0FA, #364156);
528
+ }
529
+
530
+ @property --skin--color-purple-strong {
531
+ syntax: "*";
532
+ inherits: true;
533
+ initial-value: light-dark(#7842A0, #D29DFF);
534
+ }
535
+
536
+ @property --skin--color-purple {
537
+ syntax: "*";
538
+ inherits: true;
539
+ initial-value: light-dark(#BB76F3, #9650CB);
540
+ }
541
+
542
+ @property --skin--color-purple-subtle {
543
+ syntax: "*";
544
+ inherits: true;
545
+ initial-value: light-dark(#EAD8F9, #483954);
546
+ }
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Palette tokens.
3
+ *
4
+ * Names the colours an author picks for content and the colours a chart, a coding or a map reads: eighteen editor
5
+ * colours, four ten-step scales, nine series slots and four area classes. An editor colour, a step, a slot or a class
6
+ * says how an author coloured content, where a value sits or which thing it belongs to. None ever stands in for a
7
+ * {@link colors role}, which says what a colour means in the interface, such as a failure or a disabled control.
8
+ *
9
+ * @remarks
10
+ *
11
+ * **Editor colours** — what an author picks to colour content, as text or as fill: a word set in red, a table cell
12
+ * filled in yellow, a highlight behind a phrase. They form a grid of a neutral and five hues by three steps, named
13
+ * as the `look` attribute names its own: `colorRedStrong` stands out from the page, `colorRedSubtle` stays close to
14
+ * it and `colorRed` sits between, with `colorBlack`, `colorGray` and `colorWhite` as the neutral steps. Each states
15
+ * both colour schemes, so a strong step is dark on the light page and light on the dark one. They are named for how
16
+ * they look and keep their values under any brand, since an author attaches no meaning the interface could rely on.
17
+ * For the same reason a widget never states a meaning with one. The plain step holds 3:1 on the page in either
18
+ * colour scheme, enough for large text and for a mark. That is the only contrast guarantee: any other step or
19
+ * combination is the author's to judge, and so is text at body size, which WCAG holds to 4.5:1 rather than 3:1.
20
+ *
21
+ * **Colour scales** — where a colour stands for a position rather than for a role, a ten-step scale provides it:
22
+ * `colorGray*` for a neutral, `colorSubtle*` and `colorStrong*` for a branded one, and `colorHeat*` for a magnitude.
23
+ * The number is the share of the anchor the step carries, so `010` is the faintest and `100` the anchor itself, and
24
+ * the three derived scales follow an app retuning {@link colors the anchors}. A step is not a replacement for a role
25
+ * token: the text and background roles do not land on the ladder.
26
+ *
27
+ * **The heat scale** — it carries literals of its own, cool blue through green and red to a violet extremum standing
28
+ * for a measure past the top of its range. Its hue carries the reading and its lightness does not, so a step means a
29
+ * band a legend names, never a position on a continuous gradient, and a consumer states the band in text beside the
30
+ * colour. Text over a step takes the page colour {@link colors `color`} up to `070` and the page background
31
+ * {@link colors `backgroundColor`} from `080` on. A continuous gradient needs a monotone scale of
32
+ * its own.
33
+ *
34
+ * **Series slots** — `colorSeries1` to `colorSeries9` tell one thing apart from another, on a bar, a line or a wedge.
35
+ * A number is a slot rather than a share: the slots stand in a fixed order, taken in sequence and held to the thing
36
+ * each one paints, so a filter dropping a series leaves the survivors their colours. Their separation under simulated
37
+ * colour vision deficiency is what the order buys, so reordering or resampling them forfeits it, and a state is told
38
+ * in the role that names it rather than in a slot. Nine hold where only neighbours are compared; where every pair is
39
+ * compared, on a scatter, a bubble chart or a map, the first three hold and a fourth thing is faceted rather than
40
+ * coloured. One value serves both colour schemes; four of the nine stay under 3:1 against the light page, so a chart
41
+ * carrying them states its figures in text as well, through direct labels or a table view.
42
+ *
43
+ * **Area classes** — `colorArea1` to `colorArea4` fill a shape rather than draw a mark: a region on a choropleth, a
44
+ * band on a terrain, a cell on a grid. They come as two pairs, a light and a dark of one hue each, so the members of
45
+ * a pair are told apart by lightness where hue alone would fail, and the two hues read as two families; that pairing
46
+ * is what a greyscale print survives on. Every pair of classes meets on a shared boundary, so the four are held to
47
+ * the all-pairs measure rather than the adjacent one, and four is the limit: a fifth class is a second map, never a
48
+ * fifth colour. The two pale classes stay under 3:1 against the light page, so a map keeps its boundaries drawn and
49
+ * names its classes in the legend.
50
+ *
51
+ * **Classified surfaces** — a step, a slot or a class may fill a surface rather than paint a mark, tinting an area by
52
+ * the class it belongs to: the columns of a board along its flow, the lanes of a swimlane by type. The fill takes
53
+ * the place of the page background for everything the area holds, so the area **always** assigns `color` too: text
54
+ * left on the page colour may lose contrast over the fill, as it does over the heat scale from `080` on, and over
55
+ * its brighter steps wherever the dark scheme sets that colour light. Inside the area, `backgroundColor` names the
56
+ * fill itself, so text meant to take the page background is given a colour of its own rather than that token. A
57
+ * colour washed out through {@link index.css css.tint} keeps the area close to the page instead, so at a low
58
+ * share the text it holds stays readable on the page colour, in either colour scheme, with no `color` of its own.
59
+ *
60
+ * @module palettes
61
+ */
62
+ /**
63
+ * The custom property behind every palette token.
64
+ *
65
+ * Narrowed to literals, so the design system contract can name the tokens and the custom properties they resolve to.
66
+ */
67
+ export declare const palettes: {
68
+ readonly colorGray010: "--skin--color-gray-010";
69
+ readonly colorGray020: "--skin--color-gray-020";
70
+ readonly colorGray030: "--skin--color-gray-030";
71
+ readonly colorGray040: "--skin--color-gray-040";
72
+ readonly colorGray050: "--skin--color-gray-050";
73
+ readonly colorGray060: "--skin--color-gray-060";
74
+ readonly colorGray070: "--skin--color-gray-070";
75
+ readonly colorGray080: "--skin--color-gray-080";
76
+ readonly colorGray090: "--skin--color-gray-090";
77
+ readonly colorGray100: "--skin--color-gray-100";
78
+ readonly colorSubtle010: "--skin--color-subtle-010";
79
+ readonly colorSubtle020: "--skin--color-subtle-020";
80
+ readonly colorSubtle030: "--skin--color-subtle-030";
81
+ readonly colorSubtle040: "--skin--color-subtle-040";
82
+ readonly colorSubtle050: "--skin--color-subtle-050";
83
+ readonly colorSubtle060: "--skin--color-subtle-060";
84
+ readonly colorSubtle070: "--skin--color-subtle-070";
85
+ readonly colorSubtle080: "--skin--color-subtle-080";
86
+ readonly colorSubtle090: "--skin--color-subtle-090";
87
+ readonly colorSubtle100: "--skin--color-subtle-100";
88
+ readonly colorStrong010: "--skin--color-strong-010";
89
+ readonly colorStrong020: "--skin--color-strong-020";
90
+ readonly colorStrong030: "--skin--color-strong-030";
91
+ readonly colorStrong040: "--skin--color-strong-040";
92
+ readonly colorStrong050: "--skin--color-strong-050";
93
+ readonly colorStrong060: "--skin--color-strong-060";
94
+ readonly colorStrong070: "--skin--color-strong-070";
95
+ readonly colorStrong080: "--skin--color-strong-080";
96
+ readonly colorStrong090: "--skin--color-strong-090";
97
+ readonly colorStrong100: "--skin--color-strong-100";
98
+ readonly colorHeat010: "--skin--color-heat-010";
99
+ readonly colorHeat020: "--skin--color-heat-020";
100
+ readonly colorHeat030: "--skin--color-heat-030";
101
+ readonly colorHeat040: "--skin--color-heat-040";
102
+ readonly colorHeat050: "--skin--color-heat-050";
103
+ readonly colorHeat060: "--skin--color-heat-060";
104
+ readonly colorHeat070: "--skin--color-heat-070";
105
+ readonly colorHeat080: "--skin--color-heat-080";
106
+ readonly colorHeat090: "--skin--color-heat-090";
107
+ readonly colorHeat100: "--skin--color-heat-100";
108
+ readonly colorSeries1: "--skin--color-series-1";
109
+ readonly colorSeries2: "--skin--color-series-2";
110
+ readonly colorSeries3: "--skin--color-series-3";
111
+ readonly colorSeries4: "--skin--color-series-4";
112
+ readonly colorSeries5: "--skin--color-series-5";
113
+ readonly colorSeries6: "--skin--color-series-6";
114
+ readonly colorSeries7: "--skin--color-series-7";
115
+ readonly colorSeries8: "--skin--color-series-8";
116
+ readonly colorSeries9: "--skin--color-series-9";
117
+ readonly colorArea1: "--skin--color-area-1";
118
+ readonly colorArea2: "--skin--color-area-2";
119
+ readonly colorArea3: "--skin--color-area-3";
120
+ readonly colorArea4: "--skin--color-area-4";
121
+ readonly colorBlack: "--skin--color-black";
122
+ readonly colorGray: "--skin--color-gray";
123
+ readonly colorWhite: "--skin--color-white";
124
+ readonly colorRedStrong: "--skin--color-red-strong";
125
+ readonly colorRed: "--skin--color-red";
126
+ readonly colorRedSubtle: "--skin--color-red-subtle";
127
+ readonly colorYellowStrong: "--skin--color-yellow-strong";
128
+ readonly colorYellow: "--skin--color-yellow";
129
+ readonly colorYellowSubtle: "--skin--color-yellow-subtle";
130
+ readonly colorGreenStrong: "--skin--color-green-strong";
131
+ readonly colorGreen: "--skin--color-green";
132
+ readonly colorGreenSubtle: "--skin--color-green-subtle";
133
+ readonly colorBlueStrong: "--skin--color-blue-strong";
134
+ readonly colorBlue: "--skin--color-blue";
135
+ readonly colorBlueSubtle: "--skin--color-blue-subtle";
136
+ readonly colorPurpleStrong: "--skin--color-purple-strong";
137
+ readonly colorPurple: "--skin--color-purple";
138
+ readonly colorPurpleSubtle: "--skin--color-purple-subtle";
139
+ };
140
+ //# sourceMappingURL=palettes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palettes.d.ts","sourceRoot":"","sources":["../../src/tokens/palettes.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAGH;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFX,CAAC"}