@phcdevworks/spectre-tokens 2.2.0 → 2.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.
- package/README.md +196 -23
- package/dist/index.cjs +39 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +15 -21
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +39 -9
- package/dist/index.js.map +1 -1
- package/package.json +18 -9
- package/tokens/components.json +15 -9
- package/tokens/modes.json +1 -1
- package/tokens/typography.json +2 -1
package/dist/index.css
CHANGED
|
@@ -3,15 +3,18 @@
|
|
|
3
3
|
--sp-surface-card: #ffffff;
|
|
4
4
|
--sp-surface-input: #ffffff;
|
|
5
5
|
--sp-surface-overlay: rgba(20, 27, 36, 0.6);
|
|
6
|
+
--sp-surface-alternate: #eef1f6;
|
|
6
7
|
--sp-surface-hero: linear-gradient(135deg, #5b6ee1 0%, #6f3fd7 100%);
|
|
7
8
|
--sp-text-on-page-default: #141b24;
|
|
8
9
|
--sp-text-on-page-muted: #4b576a;
|
|
9
10
|
--sp-text-on-page-subtle: #657287;
|
|
10
11
|
--sp-text-on-page-meta: #657287;
|
|
12
|
+
--sp-text-on-page-brand: #1f57db;
|
|
11
13
|
--sp-text-on-surface-default: #141b24;
|
|
12
14
|
--sp-text-on-surface-muted: #4b576a;
|
|
13
15
|
--sp-text-on-surface-subtle: #657287;
|
|
14
16
|
--sp-text-on-surface-meta: #657287;
|
|
17
|
+
--sp-text-on-surface-brand: #1f57db;
|
|
15
18
|
--sp-component-card-text: #141b24;
|
|
16
19
|
--sp-component-card-text-muted: #4b576a;
|
|
17
20
|
--sp-component-input-text: #141b24;
|
|
@@ -110,20 +113,8 @@
|
|
|
110
113
|
--sp-color-focus-primary: #336df4;
|
|
111
114
|
--sp-color-focus-error: #ef4444;
|
|
112
115
|
--sp-color-focus-info: #0369a1;
|
|
113
|
-
--sp-color-white
|
|
114
|
-
--sp-color-
|
|
115
|
-
--sp-color-white-2: f;
|
|
116
|
-
--sp-color-white-3: f;
|
|
117
|
-
--sp-color-white-4: f;
|
|
118
|
-
--sp-color-white-5: f;
|
|
119
|
-
--sp-color-white-6: f;
|
|
120
|
-
--sp-color-black-0: #;
|
|
121
|
-
--sp-color-black-1: 0;
|
|
122
|
-
--sp-color-black-2: 0;
|
|
123
|
-
--sp-color-black-3: 0;
|
|
124
|
-
--sp-color-black-4: 0;
|
|
125
|
-
--sp-color-black-5: 0;
|
|
126
|
-
--sp-color-black-6: 0;
|
|
116
|
+
--sp-color-white: #ffffff;
|
|
117
|
+
--sp-color-black: #000000;
|
|
127
118
|
--sp-space-0: 0rem;
|
|
128
119
|
--sp-space-4: 0.25rem;
|
|
129
120
|
--sp-space-8: 0.5rem;
|
|
@@ -262,7 +253,7 @@
|
|
|
262
253
|
--sp-button-primary-text: #ffffff;
|
|
263
254
|
--sp-button-primary-textdisabled: #8a96ad;
|
|
264
255
|
--sp-button-primary-focusring: rgba(14, 165, 233, 0.4);
|
|
265
|
-
--sp-button-primary-focusvisible:
|
|
256
|
+
--sp-button-primary-focusvisible: rgba(14, 165, 233, 0.4);
|
|
266
257
|
--sp-button-secondary-bg: #ffffff;
|
|
267
258
|
--sp-button-secondary-bghover: #f7f8fb;
|
|
268
259
|
--sp-button-secondary-bgactive: #eef1f6;
|
|
@@ -272,7 +263,7 @@
|
|
|
272
263
|
--sp-button-secondary-border: #075985;
|
|
273
264
|
--sp-button-secondary-borderdisabled: #d9dfeb;
|
|
274
265
|
--sp-button-secondary-focusring: rgba(14, 165, 233, 0.4);
|
|
275
|
-
--sp-button-secondary-focusvisible:
|
|
266
|
+
--sp-button-secondary-focusvisible: rgba(14, 165, 233, 0.4);
|
|
276
267
|
--sp-button-ghost-bg: transparent;
|
|
277
268
|
--sp-button-ghost-bghover: #f0f9ff;
|
|
278
269
|
--sp-button-ghost-bgactive: #e0f2fe;
|
|
@@ -280,7 +271,7 @@
|
|
|
280
271
|
--sp-button-ghost-text: #075985;
|
|
281
272
|
--sp-button-ghost-textdisabled: #8a96ad;
|
|
282
273
|
--sp-button-ghost-focusring: rgba(14, 165, 233, 0.4);
|
|
283
|
-
--sp-button-ghost-focusvisible:
|
|
274
|
+
--sp-button-ghost-focusvisible: rgba(14, 165, 233, 0.4);
|
|
284
275
|
--sp-button-danger-bg: #dc2626;
|
|
285
276
|
--sp-button-danger-bghover: #b91c1c;
|
|
286
277
|
--sp-button-danger-bgactive: #991b1b;
|
|
@@ -310,7 +301,7 @@
|
|
|
310
301
|
--sp-button-accent-text: #ffffff;
|
|
311
302
|
--sp-button-accent-textdisabled: #8a96ad;
|
|
312
303
|
--sp-button-accent-focusring: rgba(133, 79, 247, 0.4);
|
|
313
|
-
--sp-button-accent-focusvisible:
|
|
304
|
+
--sp-button-accent-focusvisible: rgba(133, 79, 247, 0.4);
|
|
314
305
|
--sp-form-default-bg: #ffffff;
|
|
315
306
|
--sp-form-default-border: #b7c1d4;
|
|
316
307
|
--sp-form-default-text: #141b24;
|
|
@@ -318,8 +309,8 @@
|
|
|
318
309
|
--sp-form-hover-border: #0ea5e9;
|
|
319
310
|
--sp-form-focus-border: #0ea5e9;
|
|
320
311
|
--sp-form-focus-ring: #0ea5e9;
|
|
321
|
-
--sp-form-focusvisible-border:
|
|
322
|
-
--sp-form-focusvisible-ring:
|
|
312
|
+
--sp-form-focusvisible-border: #0ea5e9;
|
|
313
|
+
--sp-form-focusvisible-ring: #0ea5e9;
|
|
323
314
|
--sp-form-valid-border: #22c55e;
|
|
324
315
|
--sp-form-valid-bg: #f0fdf4;
|
|
325
316
|
--sp-form-valid-text: #15803d;
|
|
@@ -359,15 +350,18 @@
|
|
|
359
350
|
--sp-surface-card: #222b38;
|
|
360
351
|
--sp-surface-input: #374253;
|
|
361
352
|
--sp-surface-overlay: #222b38;
|
|
362
|
-
--sp-surface-
|
|
353
|
+
--sp-surface-alternate: #222b38;
|
|
354
|
+
--sp-surface-hero: linear-gradient(135deg, #5d28b8 0%, #401f75 100%);
|
|
363
355
|
--sp-text-on-page-default: #f7f8fb;
|
|
364
356
|
--sp-text-on-page-muted: #b7c1d4;
|
|
365
357
|
--sp-text-on-page-subtle: #8a96ad;
|
|
366
358
|
--sp-text-on-page-meta: #8a96ad;
|
|
359
|
+
--sp-text-on-page-brand: #5a92ff;
|
|
367
360
|
--sp-text-on-surface-default: #eef1f6;
|
|
368
361
|
--sp-text-on-surface-muted: #b7c1d4;
|
|
369
362
|
--sp-text-on-surface-subtle: #8a96ad;
|
|
370
363
|
--sp-text-on-surface-meta: #8a96ad;
|
|
364
|
+
--sp-text-on-surface-brand: #5a92ff;
|
|
371
365
|
--sp-component-card-text: #eef1f6;
|
|
372
366
|
--sp-component-card-text-muted: #b7c1d4;
|
|
373
367
|
--sp-component-input-text: #eef1f6;
|
package/dist/index.d.cts
CHANGED
|
@@ -649,6 +649,7 @@ interface SpectreGeneratedTokens {
|
|
|
649
649
|
size: string;
|
|
650
650
|
lineHeight: string;
|
|
651
651
|
weight: number;
|
|
652
|
+
letterSpacing: string;
|
|
652
653
|
};
|
|
653
654
|
sm: {
|
|
654
655
|
size: string;
|
|
@@ -799,6 +800,7 @@ interface ButtonStateTokens {
|
|
|
799
800
|
borderDisabled?: string;
|
|
800
801
|
shadow?: string;
|
|
801
802
|
focusRing?: string;
|
|
803
|
+
focusVisible?: string;
|
|
802
804
|
}
|
|
803
805
|
interface FormStateTokens {
|
|
804
806
|
bg?: string;
|
|
@@ -809,14 +811,19 @@ interface FormStateTokens {
|
|
|
809
811
|
}
|
|
810
812
|
interface ComponentBadgeTokens<Value = string> {
|
|
811
813
|
neutralBg: Value;
|
|
814
|
+
neutralBgHover?: Value;
|
|
812
815
|
neutralText: Value;
|
|
813
816
|
infoBg: Value;
|
|
817
|
+
infoBgHover?: Value;
|
|
814
818
|
infoText: Value;
|
|
815
819
|
successBg: Value;
|
|
820
|
+
successBgHover?: Value;
|
|
816
821
|
successText: Value;
|
|
817
822
|
warningBg: Value;
|
|
823
|
+
warningBgHover?: Value;
|
|
818
824
|
warningText: Value;
|
|
819
825
|
dangerBg: Value;
|
|
826
|
+
dangerBgHover?: Value;
|
|
820
827
|
dangerText: Value;
|
|
821
828
|
}
|
|
822
829
|
interface ComponentIconBoxTokens<Value = string> {
|
|
@@ -829,6 +836,7 @@ interface ComponentIconBoxTokens<Value = string> {
|
|
|
829
836
|
}
|
|
830
837
|
interface ComponentTestimonialTokens<Value = string> {
|
|
831
838
|
bg: Value;
|
|
839
|
+
bgHover?: Value;
|
|
832
840
|
border: Value;
|
|
833
841
|
text: Value;
|
|
834
842
|
authorName: Value;
|
|
@@ -837,6 +845,7 @@ interface ComponentTestimonialTokens<Value = string> {
|
|
|
837
845
|
}
|
|
838
846
|
interface ComponentPricingCardTokens<Value = string> {
|
|
839
847
|
bg: Value;
|
|
848
|
+
bgHover?: Value;
|
|
840
849
|
border: Value;
|
|
841
850
|
featuredBg: Value;
|
|
842
851
|
featuredText: Value;
|
|
@@ -887,17 +896,18 @@ interface SpectreModeTokens {
|
|
|
887
896
|
muted: SemanticTokenValue;
|
|
888
897
|
subtle: SemanticTokenValue;
|
|
889
898
|
meta: SemanticTokenValue;
|
|
899
|
+
brand: SemanticTokenValue;
|
|
890
900
|
};
|
|
891
901
|
onSurface: {
|
|
892
902
|
default: SemanticTokenValue;
|
|
893
903
|
muted: SemanticTokenValue;
|
|
894
904
|
subtle: SemanticTokenValue;
|
|
895
905
|
meta: SemanticTokenValue;
|
|
906
|
+
brand: SemanticTokenValue;
|
|
896
907
|
};
|
|
897
908
|
};
|
|
898
909
|
component: ComponentTokens<SemanticTokenValue>;
|
|
899
910
|
}
|
|
900
|
-
|
|
901
911
|
type SpectreTokens = SpectreGeneratedTokens;
|
|
902
912
|
interface LayoutTokens {
|
|
903
913
|
section: {
|
package/dist/index.d.ts
CHANGED
|
@@ -649,6 +649,7 @@ interface SpectreGeneratedTokens {
|
|
|
649
649
|
size: string;
|
|
650
650
|
lineHeight: string;
|
|
651
651
|
weight: number;
|
|
652
|
+
letterSpacing: string;
|
|
652
653
|
};
|
|
653
654
|
sm: {
|
|
654
655
|
size: string;
|
|
@@ -799,6 +800,7 @@ interface ButtonStateTokens {
|
|
|
799
800
|
borderDisabled?: string;
|
|
800
801
|
shadow?: string;
|
|
801
802
|
focusRing?: string;
|
|
803
|
+
focusVisible?: string;
|
|
802
804
|
}
|
|
803
805
|
interface FormStateTokens {
|
|
804
806
|
bg?: string;
|
|
@@ -809,14 +811,19 @@ interface FormStateTokens {
|
|
|
809
811
|
}
|
|
810
812
|
interface ComponentBadgeTokens<Value = string> {
|
|
811
813
|
neutralBg: Value;
|
|
814
|
+
neutralBgHover?: Value;
|
|
812
815
|
neutralText: Value;
|
|
813
816
|
infoBg: Value;
|
|
817
|
+
infoBgHover?: Value;
|
|
814
818
|
infoText: Value;
|
|
815
819
|
successBg: Value;
|
|
820
|
+
successBgHover?: Value;
|
|
816
821
|
successText: Value;
|
|
817
822
|
warningBg: Value;
|
|
823
|
+
warningBgHover?: Value;
|
|
818
824
|
warningText: Value;
|
|
819
825
|
dangerBg: Value;
|
|
826
|
+
dangerBgHover?: Value;
|
|
820
827
|
dangerText: Value;
|
|
821
828
|
}
|
|
822
829
|
interface ComponentIconBoxTokens<Value = string> {
|
|
@@ -829,6 +836,7 @@ interface ComponentIconBoxTokens<Value = string> {
|
|
|
829
836
|
}
|
|
830
837
|
interface ComponentTestimonialTokens<Value = string> {
|
|
831
838
|
bg: Value;
|
|
839
|
+
bgHover?: Value;
|
|
832
840
|
border: Value;
|
|
833
841
|
text: Value;
|
|
834
842
|
authorName: Value;
|
|
@@ -837,6 +845,7 @@ interface ComponentTestimonialTokens<Value = string> {
|
|
|
837
845
|
}
|
|
838
846
|
interface ComponentPricingCardTokens<Value = string> {
|
|
839
847
|
bg: Value;
|
|
848
|
+
bgHover?: Value;
|
|
840
849
|
border: Value;
|
|
841
850
|
featuredBg: Value;
|
|
842
851
|
featuredText: Value;
|
|
@@ -887,17 +896,18 @@ interface SpectreModeTokens {
|
|
|
887
896
|
muted: SemanticTokenValue;
|
|
888
897
|
subtle: SemanticTokenValue;
|
|
889
898
|
meta: SemanticTokenValue;
|
|
899
|
+
brand: SemanticTokenValue;
|
|
890
900
|
};
|
|
891
901
|
onSurface: {
|
|
892
902
|
default: SemanticTokenValue;
|
|
893
903
|
muted: SemanticTokenValue;
|
|
894
904
|
subtle: SemanticTokenValue;
|
|
895
905
|
meta: SemanticTokenValue;
|
|
906
|
+
brand: SemanticTokenValue;
|
|
896
907
|
};
|
|
897
908
|
};
|
|
898
909
|
component: ComponentTokens<SemanticTokenValue>;
|
|
899
910
|
}
|
|
900
|
-
|
|
901
911
|
type SpectreTokens = SpectreGeneratedTokens;
|
|
902
912
|
interface LayoutTokens {
|
|
903
913
|
section: {
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var coreTokens = {
|
|
|
45
45
|
"text": "{colors.neutral.700}",
|
|
46
46
|
"authorName": "{colors.neutral.900}",
|
|
47
47
|
"authorTitle": "{colors.neutral.500}",
|
|
48
|
-
"quoteMark": "{colors.neutral.
|
|
48
|
+
"quoteMark": "{colors.neutral.500}"
|
|
49
49
|
},
|
|
50
50
|
"pricingCard": {
|
|
51
51
|
"bg": "{colors.white}",
|
|
@@ -73,7 +73,7 @@ var coreTokens = {
|
|
|
73
73
|
"text": "{colors.white}",
|
|
74
74
|
"textDisabled": "{colors.neutral.400}",
|
|
75
75
|
"focusRing": "{colors.info.500} / 0.4",
|
|
76
|
-
"focusVisible": "{
|
|
76
|
+
"focusVisible": "{colors.info.500} / 0.4"
|
|
77
77
|
},
|
|
78
78
|
"secondary": {
|
|
79
79
|
"bg": "{colors.white}",
|
|
@@ -85,7 +85,7 @@ var coreTokens = {
|
|
|
85
85
|
"border": "{colors.info.700}",
|
|
86
86
|
"borderDisabled": "{colors.neutral.200}",
|
|
87
87
|
"focusRing": "{colors.info.500} / 0.4",
|
|
88
|
-
"focusVisible": "{
|
|
88
|
+
"focusVisible": "{colors.info.500} / 0.4"
|
|
89
89
|
},
|
|
90
90
|
"ghost": {
|
|
91
91
|
"bg": "transparent",
|
|
@@ -95,7 +95,7 @@ var coreTokens = {
|
|
|
95
95
|
"text": "{colors.info.700}",
|
|
96
96
|
"textDisabled": "{colors.neutral.400}",
|
|
97
97
|
"focusRing": "{colors.info.500} / 0.4",
|
|
98
|
-
"focusVisible": "{
|
|
98
|
+
"focusVisible": "{colors.info.500} / 0.4"
|
|
99
99
|
},
|
|
100
100
|
"danger": {
|
|
101
101
|
"bg": "{colors.error.600}",
|
|
@@ -133,7 +133,7 @@ var coreTokens = {
|
|
|
133
133
|
"text": "{colors.white}",
|
|
134
134
|
"textDisabled": "{colors.neutral.400}",
|
|
135
135
|
"focusRing": "{colors.accent.500} / 0.4",
|
|
136
|
-
"focusVisible": "{
|
|
136
|
+
"focusVisible": "{colors.accent.500} / 0.4"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"forms": {
|
|
@@ -151,8 +151,8 @@ var coreTokens = {
|
|
|
151
151
|
"ring": "{colors.info.500}"
|
|
152
152
|
},
|
|
153
153
|
"focusVisible": {
|
|
154
|
-
"border": "{
|
|
155
|
-
"ring": "{
|
|
154
|
+
"border": "{colors.info.500}",
|
|
155
|
+
"ring": "{colors.info.500}"
|
|
156
156
|
},
|
|
157
157
|
"valid": {
|
|
158
158
|
"border": "{colors.success.500}",
|
|
@@ -265,7 +265,7 @@ var coreTokens = {
|
|
|
265
265
|
"input": "{colors.neutral.700}",
|
|
266
266
|
"overlay": "{colors.neutral.800}",
|
|
267
267
|
"alternate": "{colors.neutral.800}",
|
|
268
|
-
"hero": "linear-gradient(135deg, {colors.accent.
|
|
268
|
+
"hero": "linear-gradient(135deg, {colors.accent.700} 0%, {colors.accent.900} 100%)"
|
|
269
269
|
},
|
|
270
270
|
"text": {
|
|
271
271
|
"onPage": {
|
|
@@ -649,7 +649,8 @@ var coreTokens = {
|
|
|
649
649
|
"xs": {
|
|
650
650
|
"size": "0.75rem",
|
|
651
651
|
"lineHeight": "1.25rem",
|
|
652
|
-
"weight": 400
|
|
652
|
+
"weight": 400,
|
|
653
|
+
"letterSpacing": "0.02em"
|
|
653
654
|
},
|
|
654
655
|
"sm": {
|
|
655
656
|
"size": "0.875rem",
|
|
@@ -833,6 +834,10 @@ var createCssVariableMap = (tokens2, options = {}) => {
|
|
|
833
834
|
map[name] = resolveValue(tokens2, value);
|
|
834
835
|
};
|
|
835
836
|
Object.entries(baseTokens.colors).forEach(([group, scale]) => {
|
|
837
|
+
if (typeof scale === "string" || typeof scale === "number") {
|
|
838
|
+
assign(toVariableName(prefix, "color", group), scale);
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
836
841
|
Object.entries(scale).forEach(([step, value]) => {
|
|
837
842
|
assign(toVariableName(prefix, "color", group, step), value);
|
|
838
843
|
});
|
|
@@ -998,15 +1003,18 @@ var generateCssVariables = (tokens2, options = {}) => {
|
|
|
998
1003
|
addBase(toVariableName(prefix, "surface", "card"), pickSemantic(tokens2, getPath(defaultMode, ["surface", "card"]), getPath(surfaceAliases, ["card"])));
|
|
999
1004
|
addBase(toVariableName(prefix, "surface", "input"), pickSemantic(tokens2, getPath(defaultMode, ["surface", "input"]), getPath(surfaceAliases, ["input"])));
|
|
1000
1005
|
addBase(toVariableName(prefix, "surface", "overlay"), pickSemantic(tokens2, getPath(defaultMode, ["surface", "overlay"]), getPath(surfaceAliases, ["overlay"])));
|
|
1006
|
+
addBase(toVariableName(prefix, "surface", "alternate"), pickSemantic(tokens2, getPath(defaultMode, ["surface", "alternate"])));
|
|
1001
1007
|
addBase(toVariableName(prefix, "surface", "hero"), pickSemantic(tokens2, getPath(defaultMode, ["surface", "hero"]), getPath(surfaceAliases, ["hero"])));
|
|
1002
1008
|
addBase(toVariableName(prefix, "text", "on", "page", "default"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onPage", "default"]), getPath(textAliases, ["onPage", "default"])));
|
|
1003
1009
|
addBase(toVariableName(prefix, "text", "on", "page", "muted"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onPage", "muted"]), getPath(textAliases, ["onPage", "muted"])));
|
|
1004
1010
|
addBase(toVariableName(prefix, "text", "on", "page", "subtle"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onPage", "subtle"]), getPath(textAliases, ["onPage", "subtle"])));
|
|
1005
1011
|
addBase(toVariableName(prefix, "text", "on", "page", "meta"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onPage", "meta"]), getPath(textAliases, ["onPage", "meta"])));
|
|
1012
|
+
addBase(toVariableName(prefix, "text", "on", "page", "brand"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onPage", "brand"]), getPath(textAliases, ["onPage", "brand"])));
|
|
1006
1013
|
addBase(toVariableName(prefix, "text", "on", "surface", "default"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onSurface", "default"]), getPath(textAliases, ["onSurface", "default"])));
|
|
1007
1014
|
addBase(toVariableName(prefix, "text", "on", "surface", "muted"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onSurface", "muted"]), getPath(textAliases, ["onSurface", "muted"])));
|
|
1008
1015
|
addBase(toVariableName(prefix, "text", "on", "surface", "subtle"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onSurface", "subtle"]), getPath(textAliases, ["onSurface", "subtle"])));
|
|
1009
1016
|
addBase(toVariableName(prefix, "text", "on", "surface", "meta"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onSurface", "meta"]), getPath(textAliases, ["onSurface", "meta"])));
|
|
1017
|
+
addBase(toVariableName(prefix, "text", "on", "surface", "brand"), pickSemantic(tokens2, getPath(defaultMode, ["text", "onSurface", "brand"]), getPath(textAliases, ["onSurface", "brand"])));
|
|
1010
1018
|
addBase(toVariableName(prefix, "component", "card", "text"), pickSemantic(tokens2, getPath(defaultMode, ["component", "card", "text"]), getPath(componentAliases, ["card", "text"])));
|
|
1011
1019
|
addBase(toVariableName(prefix, "component", "card", "text-muted"), pickSemantic(tokens2, getPath(defaultMode, ["component", "card", "textMuted"]), getPath(componentAliases, ["card", "textMuted"])));
|
|
1012
1020
|
addBase(toVariableName(prefix, "component", "input", "text"), pickSemantic(tokens2, getPath(defaultMode, ["component", "input", "text"]), getPath(componentAliases, ["input", "text"])));
|
|
@@ -1050,6 +1058,10 @@ var generateCssVariables = (tokens2, options = {}) => {
|
|
|
1050
1058
|
toVariableName(prefix, "surface", "overlay"),
|
|
1051
1059
|
pickSemantic(tokens2, getPath(darkMode, ["surface", "overlay"]), getPath(defaultMode, ["surface", "overlay"]), getPath(surfaceAliases, ["overlay"]))
|
|
1052
1060
|
);
|
|
1061
|
+
addDark(
|
|
1062
|
+
toVariableName(prefix, "surface", "alternate"),
|
|
1063
|
+
pickSemantic(tokens2, getPath(darkMode, ["surface", "alternate"]), getPath(defaultMode, ["surface", "alternate"]))
|
|
1064
|
+
);
|
|
1053
1065
|
addDark(
|
|
1054
1066
|
toVariableName(prefix, "surface", "hero"),
|
|
1055
1067
|
pickSemantic(tokens2, getPath(darkMode, ["surface", "hero"]), getPath(defaultMode, ["surface", "hero"]), getPath(surfaceAliases, ["hero"]))
|
|
@@ -1090,6 +1102,15 @@ var generateCssVariables = (tokens2, options = {}) => {
|
|
|
1090
1102
|
getPath(textAliases, ["onPage", "meta"])
|
|
1091
1103
|
)
|
|
1092
1104
|
);
|
|
1105
|
+
addDark(
|
|
1106
|
+
toVariableName(prefix, "text", "on", "page", "brand"),
|
|
1107
|
+
pickSemantic(
|
|
1108
|
+
tokens2,
|
|
1109
|
+
getPath(darkMode, ["text", "onPage", "brand"]),
|
|
1110
|
+
getPath(defaultMode, ["text", "onPage", "brand"]),
|
|
1111
|
+
getPath(textAliases, ["onPage", "brand"])
|
|
1112
|
+
)
|
|
1113
|
+
);
|
|
1093
1114
|
addDark(
|
|
1094
1115
|
toVariableName(prefix, "text", "on", "surface", "default"),
|
|
1095
1116
|
pickSemantic(
|
|
@@ -1126,6 +1147,15 @@ var generateCssVariables = (tokens2, options = {}) => {
|
|
|
1126
1147
|
getPath(textAliases, ["onSurface", "meta"])
|
|
1127
1148
|
)
|
|
1128
1149
|
);
|
|
1150
|
+
addDark(
|
|
1151
|
+
toVariableName(prefix, "text", "on", "surface", "brand"),
|
|
1152
|
+
pickSemantic(
|
|
1153
|
+
tokens2,
|
|
1154
|
+
getPath(darkMode, ["text", "onSurface", "brand"]),
|
|
1155
|
+
getPath(defaultMode, ["text", "onSurface", "brand"]),
|
|
1156
|
+
getPath(textAliases, ["onSurface", "brand"])
|
|
1157
|
+
)
|
|
1158
|
+
);
|
|
1129
1159
|
addDark(
|
|
1130
1160
|
toVariableName(prefix, "component", "card", "text"),
|
|
1131
1161
|
pickSemantic(
|