@seanyeh77/tokens 0.34.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/dist/index.d.ts +1 -1
- package/dist/index.js +14 -0
- package/dist/tailwind.css +14 -0
- package/dist/tokens.css +28 -0
- package/package.json +1 -1
- package/tokens.json +112 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Generated from tokens.json by scripts/build.ts. Do not edit by hand. */
|
|
2
2
|
|
|
3
|
-
export type ColorToken = 'bg' | 'surface' | 'surface-sub' | 'surface-chrome' | 'surface-input' | 'ink' | 'ink-muted' | 'line' | 'line-strong' | 'graph-edge' | 'graph-node' | 'code-keyword' | 'code-constant' | 'accent' | 'accent-hover' | 'accent-press' | 'accent-text' | 'accent-soft' | 'on-accent' | 'focus-ring' | 'success' | 'success-text' | 'success-soft' | 'warning' | 'warning-text' | 'warning-soft' | 'danger' | 'danger-text' | 'danger-soft' | 'info-text' | 'info-soft' | 'on-solid' | 'danger-ring' | 'mark' | 'scrim' | 'scrim-strong' | 'edge-shadow' | 'file-other' | 'file-pdf' | 'file-video' | 'file-audio' | 'file-slides' | 'file-doc' | 'file-sheet' | 'file-image' | 'file-code' | 'neutral-0' | 'neutral-50' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'neutral-800' | 'neutral-900' | 'neutral-950' | 'chart-1' | 'chart-2' | 'chart-3';
|
|
3
|
+
export type ColorToken = 'bg' | 'surface' | 'surface-sub' | 'surface-chrome' | 'surface-input' | 'ink' | 'ink-muted' | 'line' | 'line-strong' | 'graph-edge' | 'graph-node' | 'code-keyword' | 'code-constant' | 'accent' | 'accent-hover' | 'accent-press' | 'accent-text' | 'accent-soft' | 'on-accent' | 'focus-ring' | 'success' | 'success-text' | 'success-soft' | 'warning' | 'warning-text' | 'warning-soft' | 'danger' | 'danger-text' | 'danger-soft' | 'info-text' | 'info-soft' | 'on-solid' | 'danger-ring' | 'mark' | 'scrim' | 'scrim-strong' | 'edge-shadow' | 'file-other' | 'file-pdf' | 'file-video' | 'file-audio' | 'file-slides' | 'file-doc' | 'file-sheet' | 'file-image' | 'file-code' | 'neutral-0' | 'neutral-50' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'neutral-800' | 'neutral-900' | 'neutral-950' | 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'heat-1' | 'heat-2' | 'heat-3' | 'heat-4' | 'heat-5' | 'heat-6' | 'heat-7' | 'diverge-neg-strong' | 'diverge-neg' | 'diverge-zero' | 'diverge-pos' | 'diverge-pos-strong' | 'forecast-stripe';
|
|
4
4
|
export type SpaceToken = 'space-1' | 'space-2' | 'space-3' | 'space-4' | 'space-5' | 'space-6' | 'space-8' | 'space-12';
|
|
5
5
|
export type RadiusToken = 'radius-sm' | 'radius-chip' | 'radius-md' | 'radius-lg' | 'radius-full';
|
|
6
6
|
export type ShadowToken = 'shadow-sm' | 'shadow-chip' | 'shadow-card' | 'shadow-card-hover' | 'shadow-overlay';
|
package/dist/index.js
CHANGED
|
@@ -61,6 +61,20 @@ export const tokens = Object.freeze({
|
|
|
61
61
|
"chart-1": "#2457d6",
|
|
62
62
|
"chart-2": "#0f9d8a",
|
|
63
63
|
"chart-3": "#cf6a12",
|
|
64
|
+
"chart-4": "#8c8073",
|
|
65
|
+
"heat-1": "#2f6fb5",
|
|
66
|
+
"heat-2": "#6f9fd0",
|
|
67
|
+
"heat-3": "#b5cbe3",
|
|
68
|
+
"heat-4": "#e7e3dd",
|
|
69
|
+
"heat-5": "#f2c08a",
|
|
70
|
+
"heat-6": "#e8853a",
|
|
71
|
+
"heat-7": "#c8401f",
|
|
72
|
+
"diverge-neg-strong": "#1f4f8f",
|
|
73
|
+
"diverge-neg": "#6f9fd0",
|
|
74
|
+
"diverge-zero": "#e7e3dd",
|
|
75
|
+
"diverge-pos": "#f2a462",
|
|
76
|
+
"diverge-pos-strong": "#ad5512",
|
|
77
|
+
"forecast-stripe": "rgba(23, 21, 18, 0.14)",
|
|
64
78
|
"space-1": "4px",
|
|
65
79
|
"space-2": "8px",
|
|
66
80
|
"space-3": "12px",
|
package/dist/tailwind.css
CHANGED
|
@@ -62,6 +62,20 @@
|
|
|
62
62
|
--color-chart-1: var(--chart-1);
|
|
63
63
|
--color-chart-2: var(--chart-2);
|
|
64
64
|
--color-chart-3: var(--chart-3);
|
|
65
|
+
--color-chart-4: var(--chart-4);
|
|
66
|
+
--color-heat-1: var(--heat-1);
|
|
67
|
+
--color-heat-2: var(--heat-2);
|
|
68
|
+
--color-heat-3: var(--heat-3);
|
|
69
|
+
--color-heat-4: var(--heat-4);
|
|
70
|
+
--color-heat-5: var(--heat-5);
|
|
71
|
+
--color-heat-6: var(--heat-6);
|
|
72
|
+
--color-heat-7: var(--heat-7);
|
|
73
|
+
--color-diverge-neg-strong: var(--diverge-neg-strong);
|
|
74
|
+
--color-diverge-neg: var(--diverge-neg);
|
|
75
|
+
--color-diverge-zero: var(--diverge-zero);
|
|
76
|
+
--color-diverge-pos: var(--diverge-pos);
|
|
77
|
+
--color-diverge-pos-strong: var(--diverge-pos-strong);
|
|
78
|
+
--color-forecast-stripe: var(--forecast-stripe);
|
|
65
79
|
--spacing-1: var(--space-1);
|
|
66
80
|
--spacing-2: var(--space-2);
|
|
67
81
|
--spacing-3: var(--space-3);
|
package/dist/tokens.css
CHANGED
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
--chart-1: #2457d6;
|
|
62
62
|
--chart-2: #0f9d8a;
|
|
63
63
|
--chart-3: #cf6a12;
|
|
64
|
+
--chart-4: #8c8073;
|
|
65
|
+
--heat-1: #2f6fb5;
|
|
66
|
+
--heat-2: #6f9fd0;
|
|
67
|
+
--heat-3: #b5cbe3;
|
|
68
|
+
--heat-4: #e7e3dd;
|
|
69
|
+
--heat-5: #f2c08a;
|
|
70
|
+
--heat-6: #e8853a;
|
|
71
|
+
--heat-7: #c8401f;
|
|
72
|
+
--diverge-neg-strong: #1f4f8f;
|
|
73
|
+
--diverge-neg: #6f9fd0;
|
|
74
|
+
--diverge-zero: #e7e3dd;
|
|
75
|
+
--diverge-pos: #f2a462;
|
|
76
|
+
--diverge-pos-strong: #ad5512;
|
|
77
|
+
--forecast-stripe: rgba(23, 21, 18, 0.14);
|
|
64
78
|
--space-1: 4px;
|
|
65
79
|
--space-2: 8px;
|
|
66
80
|
--space-3: 12px;
|
|
@@ -122,6 +136,20 @@
|
|
|
122
136
|
--chart-1: #819ee7;
|
|
123
137
|
--chart-2: #3cc4ae;
|
|
124
138
|
--chart-3: #f0a35e;
|
|
139
|
+
--chart-4: #a59a8f;
|
|
140
|
+
--heat-1: #3d74b8;
|
|
141
|
+
--heat-2: #5f8cc6;
|
|
142
|
+
--heat-3: #8fa9c9;
|
|
143
|
+
--heat-4: #5a534c;
|
|
144
|
+
--heat-5: #c9925a;
|
|
145
|
+
--heat-6: #d9772f;
|
|
146
|
+
--heat-7: #e0532d;
|
|
147
|
+
--diverge-neg-strong: #9dbbe8;
|
|
148
|
+
--diverge-neg: #5f8cc6;
|
|
149
|
+
--diverge-zero: #5a534c;
|
|
150
|
+
--diverge-pos: #d9772f;
|
|
151
|
+
--diverge-pos-strong: #f0a35e;
|
|
152
|
+
--forecast-stripe: rgba(246, 245, 244, 0.14);
|
|
125
153
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
126
154
|
--shadow-chip: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
|
|
127
155
|
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.55);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "Design tokens of SeanYeh's design system: CSS variables for light, dark and the teaching preset, a Tailwind v4 theme, typed token names and self-hosted fonts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hsiu-An Yeh",
|
package/tokens.json
CHANGED
|
@@ -464,6 +464,118 @@
|
|
|
464
464
|
"dark": "#f0a35e"
|
|
465
465
|
},
|
|
466
466
|
"usage": "Third data series in charts."
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "chart-4",
|
|
470
|
+
"value": {
|
|
471
|
+
"light": "#8c8073",
|
|
472
|
+
"dark": "#a59a8f"
|
|
473
|
+
},
|
|
474
|
+
"usage": "Fourth data series in charts: a quiet warm gray for a minor class (other, manual). With more than 3 classes the legend has words and a band has labels."
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "heat-1",
|
|
478
|
+
"value": {
|
|
479
|
+
"light": "#2f6fb5",
|
|
480
|
+
"dark": "#3d74b8"
|
|
481
|
+
},
|
|
482
|
+
"usage": "Heat scale step 1 of 7, cold to hot (blue, neutral, red). Data fills only; the page maps values to steps. Text on it: dark or white, whichever contrasts more (textOn())."
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "heat-2",
|
|
486
|
+
"value": {
|
|
487
|
+
"light": "#6f9fd0",
|
|
488
|
+
"dark": "#5f8cc6"
|
|
489
|
+
},
|
|
490
|
+
"usage": "Heat scale step 2 of 7, cold to hot (blue, neutral, red). Data fills only; the page maps values to steps. Text on it: dark or white, whichever contrasts more (textOn())."
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "heat-3",
|
|
494
|
+
"value": {
|
|
495
|
+
"light": "#b5cbe3",
|
|
496
|
+
"dark": "#8fa9c9"
|
|
497
|
+
},
|
|
498
|
+
"usage": "Heat scale step 3 of 7, cold to hot (blue, neutral, red). Data fills only; the page maps values to steps. Text on it: dark or white, whichever contrasts more (textOn())."
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "heat-4",
|
|
502
|
+
"value": {
|
|
503
|
+
"light": "#e7e3dd",
|
|
504
|
+
"dark": "#5a534c"
|
|
505
|
+
},
|
|
506
|
+
"usage": "Heat scale step 4 of 7, cold to hot (blue, neutral, red). Data fills only; the page maps values to steps. Text on it: dark or white, whichever contrasts more (textOn())."
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"name": "heat-5",
|
|
510
|
+
"value": {
|
|
511
|
+
"light": "#f2c08a",
|
|
512
|
+
"dark": "#c9925a"
|
|
513
|
+
},
|
|
514
|
+
"usage": "Heat scale step 5 of 7, cold to hot (blue, neutral, red). Data fills only; the page maps values to steps. Text on it: dark or white, whichever contrasts more (textOn())."
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "heat-6",
|
|
518
|
+
"value": {
|
|
519
|
+
"light": "#e8853a",
|
|
520
|
+
"dark": "#d9772f"
|
|
521
|
+
},
|
|
522
|
+
"usage": "Heat scale step 6 of 7, cold to hot (blue, neutral, red). Data fills only; the page maps values to steps. Text on it: dark or white, whichever contrasts more (textOn())."
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "heat-7",
|
|
526
|
+
"value": {
|
|
527
|
+
"light": "#c8401f",
|
|
528
|
+
"dark": "#e0532d"
|
|
529
|
+
},
|
|
530
|
+
"usage": "Heat scale step 7 of 7, cold to hot (blue, neutral, red). Data fills only; the page maps values to steps. Text on it: dark or white, whichever contrasts more (textOn())."
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "diverge-neg-strong",
|
|
534
|
+
"value": {
|
|
535
|
+
"light": "#1f4f8f",
|
|
536
|
+
"dark": "#9dbbe8"
|
|
537
|
+
},
|
|
538
|
+
"usage": "Large negative difference. Diverging scale for differences (negative blue, zero neutral, positive orange); data fills only, the value is also written."
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "diverge-neg",
|
|
542
|
+
"value": {
|
|
543
|
+
"light": "#6f9fd0",
|
|
544
|
+
"dark": "#5f8cc6"
|
|
545
|
+
},
|
|
546
|
+
"usage": "Negative difference. Diverging scale for differences (negative blue, zero neutral, positive orange); data fills only, the value is also written."
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "diverge-zero",
|
|
550
|
+
"value": {
|
|
551
|
+
"light": "#e7e3dd",
|
|
552
|
+
"dark": "#5a534c"
|
|
553
|
+
},
|
|
554
|
+
"usage": "No difference. Diverging scale for differences (negative blue, zero neutral, positive orange); data fills only, the value is also written."
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "diverge-pos",
|
|
558
|
+
"value": {
|
|
559
|
+
"light": "#f2a462",
|
|
560
|
+
"dark": "#d9772f"
|
|
561
|
+
},
|
|
562
|
+
"usage": "Positive difference. Diverging scale for differences (negative blue, zero neutral, positive orange); data fills only, the value is also written."
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "diverge-pos-strong",
|
|
566
|
+
"value": {
|
|
567
|
+
"light": "#ad5512",
|
|
568
|
+
"dark": "#f0a35e"
|
|
569
|
+
},
|
|
570
|
+
"usage": "Large positive difference. Diverging scale for differences (negative blue, zero neutral, positive orange); data fills only, the value is also written."
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "forecast-stripe",
|
|
574
|
+
"value": {
|
|
575
|
+
"light": "rgba(23, 21, 18, 0.14)",
|
|
576
|
+
"dark": "rgba(246, 245, 244, 0.14)"
|
|
577
|
+
},
|
|
578
|
+
"usage": "Stripes over a forecast (not measured) value: 45 deg, 4 px line, 9 px period (class ui-forecast)."
|
|
467
579
|
}
|
|
468
580
|
]
|
|
469
581
|
},
|