@taprootio/espalier 3.6.0 → 3.7.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/CHANGELOG.md +12 -0
- package/custom-elements.json +2106 -2057
- package/dist/root/esp-root.d.ts +8 -0
- package/dist/root/helpers/data-companion-properties.js +1 -1
- package/espalier.token-manifest.json +40 -0
- package/package.json +1 -1
package/dist/root/esp-root.d.ts
CHANGED
|
@@ -72,20 +72,28 @@ export type { SchemeEvents } from "../shared/bus-events.js";
|
|
|
72
72
|
* @cssprop --esp-color-series-7 - Seventh categorical data-series color.
|
|
73
73
|
* @cssprop --esp-color-series-8 - Eighth categorical data-series color.
|
|
74
74
|
* @cssprop --esp-color-series-1-wash - First series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
75
|
+
* @cssprop --esp-color-series-1-tint - First series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
75
76
|
* @cssprop --esp-color-series-1-ink - First series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
76
77
|
* @cssprop --esp-color-series-2-wash - Second series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
78
|
+
* @cssprop --esp-color-series-2-tint - Second series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
77
79
|
* @cssprop --esp-color-series-2-ink - Second series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
78
80
|
* @cssprop --esp-color-series-3-wash - Third series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
81
|
+
* @cssprop --esp-color-series-3-tint - Third series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
79
82
|
* @cssprop --esp-color-series-3-ink - Third series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
80
83
|
* @cssprop --esp-color-series-4-wash - Fourth series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
84
|
+
* @cssprop --esp-color-series-4-tint - Fourth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
81
85
|
* @cssprop --esp-color-series-4-ink - Fourth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
82
86
|
* @cssprop --esp-color-series-5-wash - Fifth series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
87
|
+
* @cssprop --esp-color-series-5-tint - Fifth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
83
88
|
* @cssprop --esp-color-series-5-ink - Fifth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
84
89
|
* @cssprop --esp-color-series-6-wash - Sixth series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
90
|
+
* @cssprop --esp-color-series-6-tint - Sixth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
85
91
|
* @cssprop --esp-color-series-6-ink - Sixth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
86
92
|
* @cssprop --esp-color-series-7-wash - Seventh series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
93
|
+
* @cssprop --esp-color-series-7-tint - Seventh series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
87
94
|
* @cssprop --esp-color-series-7-ink - Seventh series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
88
95
|
* @cssprop --esp-color-series-8-wash - Eighth series washed toward the local background (75% identity in OKLab) for large fills; theme zones re-emit it against their own canvas.
|
|
96
|
+
* @cssprop --esp-color-series-8-tint - Eighth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas.
|
|
89
97
|
* @cssprop --esp-color-series-8-ink - Eighth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable).
|
|
90
98
|
* @cssprop --esp-color-type-overline - Overline ink enforced to Lc 90 against the local background.
|
|
91
99
|
* @cssprop --esp-color-type-label - Label ink enforced to Lc 75 against the local background.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{apcaContrast as s,ensureContrast as
|
|
1
|
+
import{apcaContrast as s,ensureContrast as _,gamutMapToSRGB as i,oklabToOklch as T,oklchToOklab as p,parseOklch as S,serializeOklch as l}from"../../shared/color-engine.js";import{DATA_SERIES_KEYS as f}from"../../shared/data-colors.js";import{TOKEN_PAIRINGS as m}from"../../shared/theme.js";const b=.75,u=.12,E=m.text?.targetLc??75;function I(c,n){const t=_({...c},n,E);if(Math.abs(s(t,n))>=E)return t;const o=i({l:n.l>.5?1:0,c:c.c,h:c.h});return Math.abs(s(o,n))>Math.abs(s(t,n))?o:t}function A(c,n,t){const o=p(c),r=p(n);return T({L:o.L*t+r.L*(1-t),a:o.a*t+r.a*(1-t),b:o.b*t+r.b*(1-t)})}function x(c,n){const t=S(c["--esp-color-background"]??"");if(!t)return{};const o={};for(let r=1;r<=f.length;r+=1){const a=`--esp-color-series-${r}`,e=S(c[a]??n?.[a]??"");e&&(o[`${a}-wash`]=l(i(A(e,t,b))),o[`${a}-tint`]=l(i(A(e,t,u))),o[`${a}-ink`]=l(I(e,t)))}return o}export{u as DATA_TINT_SERIES_SHARE,b as DATA_WASH_SERIES_SHARE,x as dataCompanionProperties};
|
|
@@ -357,6 +357,11 @@
|
|
|
357
357
|
"category": "root-theme",
|
|
358
358
|
"description": "First series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
359
359
|
},
|
|
360
|
+
{
|
|
361
|
+
"name": "--esp-color-series-1-tint",
|
|
362
|
+
"category": "root-theme",
|
|
363
|
+
"description": "First series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
364
|
+
},
|
|
360
365
|
{
|
|
361
366
|
"name": "--esp-color-series-1-wash",
|
|
362
367
|
"category": "root-theme",
|
|
@@ -372,6 +377,11 @@
|
|
|
372
377
|
"category": "root-theme",
|
|
373
378
|
"description": "Second series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
374
379
|
},
|
|
380
|
+
{
|
|
381
|
+
"name": "--esp-color-series-2-tint",
|
|
382
|
+
"category": "root-theme",
|
|
383
|
+
"description": "Second series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
384
|
+
},
|
|
375
385
|
{
|
|
376
386
|
"name": "--esp-color-series-2-wash",
|
|
377
387
|
"category": "root-theme",
|
|
@@ -387,6 +397,11 @@
|
|
|
387
397
|
"category": "root-theme",
|
|
388
398
|
"description": "Third series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
389
399
|
},
|
|
400
|
+
{
|
|
401
|
+
"name": "--esp-color-series-3-tint",
|
|
402
|
+
"category": "root-theme",
|
|
403
|
+
"description": "Third series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
404
|
+
},
|
|
390
405
|
{
|
|
391
406
|
"name": "--esp-color-series-3-wash",
|
|
392
407
|
"category": "root-theme",
|
|
@@ -402,6 +417,11 @@
|
|
|
402
417
|
"category": "root-theme",
|
|
403
418
|
"description": "Fourth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
404
419
|
},
|
|
420
|
+
{
|
|
421
|
+
"name": "--esp-color-series-4-tint",
|
|
422
|
+
"category": "root-theme",
|
|
423
|
+
"description": "Fourth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
424
|
+
},
|
|
405
425
|
{
|
|
406
426
|
"name": "--esp-color-series-4-wash",
|
|
407
427
|
"category": "root-theme",
|
|
@@ -417,6 +437,11 @@
|
|
|
417
437
|
"category": "root-theme",
|
|
418
438
|
"description": "Fifth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
419
439
|
},
|
|
440
|
+
{
|
|
441
|
+
"name": "--esp-color-series-5-tint",
|
|
442
|
+
"category": "root-theme",
|
|
443
|
+
"description": "Fifth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
444
|
+
},
|
|
420
445
|
{
|
|
421
446
|
"name": "--esp-color-series-5-wash",
|
|
422
447
|
"category": "root-theme",
|
|
@@ -432,6 +457,11 @@
|
|
|
432
457
|
"category": "root-theme",
|
|
433
458
|
"description": "Sixth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
434
459
|
},
|
|
460
|
+
{
|
|
461
|
+
"name": "--esp-color-series-6-tint",
|
|
462
|
+
"category": "root-theme",
|
|
463
|
+
"description": "Sixth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
464
|
+
},
|
|
435
465
|
{
|
|
436
466
|
"name": "--esp-color-series-6-wash",
|
|
437
467
|
"category": "root-theme",
|
|
@@ -447,6 +477,11 @@
|
|
|
447
477
|
"category": "root-theme",
|
|
448
478
|
"description": "Seventh series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
449
479
|
},
|
|
480
|
+
{
|
|
481
|
+
"name": "--esp-color-series-7-tint",
|
|
482
|
+
"category": "root-theme",
|
|
483
|
+
"description": "Seventh series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
484
|
+
},
|
|
450
485
|
{
|
|
451
486
|
"name": "--esp-color-series-7-wash",
|
|
452
487
|
"category": "root-theme",
|
|
@@ -462,6 +497,11 @@
|
|
|
462
497
|
"category": "root-theme",
|
|
463
498
|
"description": "Eighth series pushed to the text contrast tier against the local background (best-contrast pole when a mid-lightness surface makes the tier unreachable)."
|
|
464
499
|
},
|
|
500
|
+
{
|
|
501
|
+
"name": "--esp-color-series-8-tint",
|
|
502
|
+
"category": "root-theme",
|
|
503
|
+
"description": "Eighth series tinted over the local background (12% identity in OKLab) for grounds behind ordinary text; theme zones re-emit it against their own canvas."
|
|
504
|
+
},
|
|
465
505
|
{
|
|
466
506
|
"name": "--esp-color-series-8-wash",
|
|
467
507
|
"category": "root-theme",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taprootio/espalier",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"packageManager": "bun@1.3.12",
|
|
5
5
|
"description": "Espalier — a themeable, accessible, framework-agnostic, enterprise-grade design system built on web standards and love.",
|
|
6
6
|
"customElements": "custom-elements.json",
|