@astryxdesign/theme-matcha 0.7.17-canary.g5a3fd39 → 0.7.17-canary.g5cf5d69
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/matcha.js +46 -12
- package/dist/matchaPaletteRefs.generated.d.ts +7 -4
- package/dist/matchaPaletteRefs.generated.d.ts.map +1 -1
- package/dist/matchaTheme.d.ts.map +1 -1
- package/dist/source.cjs +56 -20
- package/dist/source.mjs +56 -20
- package/dist/theme.css +57 -12
- package/package.json +3 -3
- package/src/matchaPaletteRefs.generated.ts +8 -8
- package/src/matchaTheme.ts +48 -12
package/dist/matcha.js
CHANGED
|
@@ -96,16 +96,16 @@ export const matchaTheme = {
|
|
|
96
96
|
"--font-family-code": "\"JetBrains Mono\", \"SF Mono\", Monaco, Consolas, monospace",
|
|
97
97
|
"--color-syntax-keyword": "light-dark(#5a6b2a, #a8bf6a)",
|
|
98
98
|
"--color-syntax-string": "light-dark(#2e6b5a, #6ccaaa)",
|
|
99
|
-
"--color-syntax-comment": "light-dark(#
|
|
99
|
+
"--color-syntax-comment": "light-dark(#5a6b2a, #7a894f)",
|
|
100
100
|
"--color-syntax-number": "light-dark(#836700, #e0b318)",
|
|
101
101
|
"--color-syntax-function": "light-dark(#3a5e8c, #7ba8d4)",
|
|
102
102
|
"--color-syntax-type": "light-dark(#6b4a8c, #b08ed4)",
|
|
103
103
|
"--color-syntax-variable": "light-dark(#3e481d, #c0cba9)",
|
|
104
|
-
"--color-syntax-operator": "light-dark(#
|
|
104
|
+
"--color-syntax-operator": "light-dark(#5a6b2a, #94a468)",
|
|
105
105
|
"--color-syntax-constant": "light-dark(#836700, #e0b318)",
|
|
106
106
|
"--color-syntax-tag": "light-dark(#8c3a3a, #d47a7a)",
|
|
107
107
|
"--color-syntax-attribute": "light-dark(#7c5e3a, #d1a500)",
|
|
108
|
-
"--color-syntax-property": "light-dark(#
|
|
108
|
+
"--color-syntax-property": "light-dark(#2e6b5a, #6ccaaa)",
|
|
109
109
|
"--color-syntax-punctuation": "light-dark(#5a6b2a, #92af6a)",
|
|
110
110
|
"--color-syntax-background": "light-dark(#f0f0e0, #1a1c14)",
|
|
111
111
|
"--color-syntax-added": "color-mix(in srgb, var(--color-success-muted) 25%, transparent)",
|
|
@@ -123,7 +123,7 @@ export const matchaTheme = {
|
|
|
123
123
|
"--color-overlay-pressed": "light-dark(#3e481d1a, #c0cba91a)",
|
|
124
124
|
"--color-background-muted": "light-dark(#f0f0e0, #3e481d)",
|
|
125
125
|
"--color-text-primary": "light-dark(#3e481d, #c0cba9)",
|
|
126
|
-
"--color-text-secondary": "light-dark(#5a6b2a, #
|
|
126
|
+
"--color-text-secondary": "light-dark(#5a6b2a, #a8bf6a)",
|
|
127
127
|
"--color-text-disabled": "light-dark(#c0cba9, #5a6440)",
|
|
128
128
|
"--color-text-accent": "light-dark(#3e481d, #c0cba9)",
|
|
129
129
|
"--color-on-dark": "#ffffff",
|
|
@@ -139,9 +139,9 @@ export const matchaTheme = {
|
|
|
139
139
|
"--color-text-warning": "light-dark(#836700, #ffe08b)",
|
|
140
140
|
"--color-text-error": "light-dark(#cc0000, #ff7a7a)",
|
|
141
141
|
"--color-on-info-muted": "light-dark(#2e4a6e, #8dbce0)",
|
|
142
|
-
"--color-on-success-muted": "light-dark(#
|
|
143
|
-
"--color-on-warning-muted": "light-dark(#
|
|
144
|
-
"--color-on-error-muted": "light-dark(#
|
|
142
|
+
"--color-on-success-muted": "light-dark(#346a00, #80d43a)",
|
|
143
|
+
"--color-on-warning-muted": "light-dark(#755b00, #ffe08b)",
|
|
144
|
+
"--color-on-error-muted": "light-dark(#b10000, #ff7a7a)",
|
|
145
145
|
"--color-icon-accent": "light-dark(#3e481d, #c0cba9)",
|
|
146
146
|
"--color-icon-primary": "light-dark(#3e481d, #c0cba9)",
|
|
147
147
|
"--color-icon-secondary": "light-dark(#707e46, #94a468)",
|
|
@@ -175,15 +175,15 @@ export const matchaTheme = {
|
|
|
175
175
|
"--color-background-green": "light-dark(#4d990033, #6dbf2a33)",
|
|
176
176
|
"--color-border-green": "light-dark(#4d9900, #6dbf2a)",
|
|
177
177
|
"--color-icon-green": "light-dark(#4d9900, #6dbf2a)",
|
|
178
|
-
"--color-text-green": "light-dark(#
|
|
178
|
+
"--color-text-green": "light-dark(#346a00, #80d43a)",
|
|
179
179
|
"--color-background-orange": "light-dark(#c4762033, #d4903a33)",
|
|
180
180
|
"--color-border-orange": "light-dark(#c47620, #d4903a)",
|
|
181
181
|
"--color-icon-orange": "light-dark(#c47620, #d4903a)",
|
|
182
|
-
"--color-text-orange": "light-dark(#
|
|
182
|
+
"--color-text-orange": "light-dark(#6a5031, #e0a04a)",
|
|
183
183
|
"--color-background-pink": "light-dark(#c44a7033, #e07a9a33)",
|
|
184
184
|
"--color-border-pink": "light-dark(#c44a70, #e07a9a)",
|
|
185
185
|
"--color-icon-pink": "light-dark(#c44a70, #e07a9a)",
|
|
186
|
-
"--color-text-pink": "light-dark(#
|
|
186
|
+
"--color-text-pink": "light-dark(#8c3a3a, #f08aaa)",
|
|
187
187
|
"--color-background-purple": "light-dark(#6b4a8c33, #b08ed433)",
|
|
188
188
|
"--color-border-purple": "light-dark(#6b4a8c, #b08ed4)",
|
|
189
189
|
"--color-icon-purple": "light-dark(#6b4a8c, #b08ed4)",
|
|
@@ -191,7 +191,7 @@ export const matchaTheme = {
|
|
|
191
191
|
"--color-background-red": "light-dark(#fd000033, #ff5c5c33)",
|
|
192
192
|
"--color-border-red": "light-dark(#fd0000, #ff5c5c)",
|
|
193
193
|
"--color-icon-red": "light-dark(#fd0000, #ff5c5c)",
|
|
194
|
-
"--color-text-red": "light-dark(#
|
|
194
|
+
"--color-text-red": "light-dark(#b10000, #ff7a7a)",
|
|
195
195
|
"--color-background-teal": "light-dark(#2e6b5a33, #5ab89833)",
|
|
196
196
|
"--color-border-teal": "light-dark(#2e6b5a, #5ab898)",
|
|
197
197
|
"--color-icon-teal": "light-dark(#2e6b5a, #5ab898)",
|
|
@@ -199,7 +199,7 @@ export const matchaTheme = {
|
|
|
199
199
|
"--color-background-yellow": "light-dark(#f2c00033, #f6d06633)",
|
|
200
200
|
"--color-border-yellow": "light-dark(#f2c000, #f6d066)",
|
|
201
201
|
"--color-icon-yellow": "light-dark(#f2c000, #f6d066)",
|
|
202
|
-
"--color-text-yellow": "light-dark(#
|
|
202
|
+
"--color-text-yellow": "light-dark(#755b00, #ffe08b)",
|
|
203
203
|
"--spacing-0-5": "0.1875rem",
|
|
204
204
|
"--spacing-1": "0.375rem",
|
|
205
205
|
"--spacing-1-5": "0.5625rem",
|
|
@@ -335,6 +335,40 @@ export const matchaTheme = {
|
|
|
335
335
|
"base": {
|
|
336
336
|
"borderRadius": "var(--radius-page)",
|
|
337
337
|
"padding": "var(--spacing-3)"
|
|
338
|
+
},
|
|
339
|
+
"variant:blue": {
|
|
340
|
+
"--color-text-secondary": "light-dark(#3e481d, #a8bf6a)"
|
|
341
|
+
},
|
|
342
|
+
"variant:cyan": {
|
|
343
|
+
"--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
|
|
344
|
+
},
|
|
345
|
+
"variant:gray": {
|
|
346
|
+
"--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
|
|
347
|
+
},
|
|
348
|
+
"variant:green": {
|
|
349
|
+
"--color-text-secondary": "light-dark(#4c5924, #c0cba9)"
|
|
350
|
+
},
|
|
351
|
+
"variant:orange": {
|
|
352
|
+
"--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
|
|
353
|
+
},
|
|
354
|
+
"variant:pink": {
|
|
355
|
+
"--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
|
|
356
|
+
},
|
|
357
|
+
"variant:purple": {
|
|
358
|
+
"--color-text-secondary": "light-dark(#3e481d, #a8bf6a)"
|
|
359
|
+
},
|
|
360
|
+
"variant:red": {
|
|
361
|
+
"--color-text-secondary": "light-dark(#3e481d, #a8bf6a)"
|
|
362
|
+
},
|
|
363
|
+
"variant:teal": {
|
|
364
|
+
"--color-text-secondary": "light-dark(#3e481d, #c0cba9)"
|
|
365
|
+
},
|
|
366
|
+
"variant:yellow": {
|
|
367
|
+
"--color-text-secondary": "light-dark(#4c5924, #c0cba9)"
|
|
368
|
+
},
|
|
369
|
+
"variant:muted": {
|
|
370
|
+
"--color-text-primary": "light-dark(#3e481d, #cdd8b9)",
|
|
371
|
+
"--color-text-secondary": "light-dark(#5a6b2a, #cdd8b9)"
|
|
338
372
|
}
|
|
339
373
|
},
|
|
340
374
|
"section": {
|
|
@@ -3,6 +3,7 @@ export declare const matchaPaletteRefs: {
|
|
|
3
3
|
readonly light: {
|
|
4
4
|
readonly 0: "#000000";
|
|
5
5
|
readonly 20: "#3e481d";
|
|
6
|
+
readonly 25: "#4c5924";
|
|
6
7
|
readonly 30: "#5a6b2a";
|
|
7
8
|
readonly 40: "#707e46";
|
|
8
9
|
readonly 70: "#b7c29e";
|
|
@@ -19,10 +20,12 @@ export declare const matchaPaletteRefs: {
|
|
|
19
20
|
readonly 20: "#3e481d";
|
|
20
21
|
readonly 30: "#5a6440";
|
|
21
22
|
readonly 40: "#707e46";
|
|
23
|
+
readonly 45: "#7a894f";
|
|
22
24
|
readonly 60: "#94a468";
|
|
23
25
|
readonly 65: "#92af6a";
|
|
24
26
|
readonly 70: "#a8bf6a";
|
|
25
27
|
readonly 75: "#c0cba9";
|
|
28
|
+
readonly 80: "#cdd8b9";
|
|
26
29
|
readonly 100: "#ffffff";
|
|
27
30
|
};
|
|
28
31
|
};
|
|
@@ -30,7 +33,6 @@ export declare const matchaPaletteRefs: {
|
|
|
30
33
|
readonly light: {
|
|
31
34
|
readonly 35: "#245546";
|
|
32
35
|
readonly 50: "#2e6b5a";
|
|
33
|
-
readonly 55: "#3a7c6b";
|
|
34
36
|
};
|
|
35
37
|
readonly dark: {
|
|
36
38
|
readonly 70: "#5ab898";
|
|
@@ -39,8 +41,8 @@ export declare const matchaPaletteRefs: {
|
|
|
39
41
|
};
|
|
40
42
|
readonly yellow: {
|
|
41
43
|
readonly light: {
|
|
44
|
+
readonly 40: "#755b00";
|
|
42
45
|
readonly 45: "#836700";
|
|
43
|
-
readonly 65: "#c19800";
|
|
44
46
|
readonly 80: "#f2c000";
|
|
45
47
|
};
|
|
46
48
|
readonly dark: {
|
|
@@ -75,7 +77,6 @@ export declare const matchaPaletteRefs: {
|
|
|
75
77
|
readonly pink: {
|
|
76
78
|
readonly light: {
|
|
77
79
|
readonly 30: "#8c3a3a";
|
|
78
|
-
readonly 35: "#a03a5a";
|
|
79
80
|
readonly 50: "#c44a70";
|
|
80
81
|
};
|
|
81
82
|
readonly dark: {
|
|
@@ -86,8 +87,8 @@ export declare const matchaPaletteRefs: {
|
|
|
86
87
|
};
|
|
87
88
|
readonly orange: {
|
|
88
89
|
readonly light: {
|
|
90
|
+
readonly 25: "#6a5031";
|
|
89
91
|
readonly 30: "#7c5e3a";
|
|
90
|
-
readonly 35: "#a06018";
|
|
91
92
|
readonly 50: "#c47620";
|
|
92
93
|
};
|
|
93
94
|
readonly dark: {
|
|
@@ -97,6 +98,7 @@ export declare const matchaPaletteRefs: {
|
|
|
97
98
|
};
|
|
98
99
|
readonly green: {
|
|
99
100
|
readonly light: {
|
|
101
|
+
readonly 30: "#346a00";
|
|
100
102
|
readonly 35: "#3d7a00";
|
|
101
103
|
readonly 50: "#4d9900";
|
|
102
104
|
};
|
|
@@ -107,6 +109,7 @@ export declare const matchaPaletteRefs: {
|
|
|
107
109
|
};
|
|
108
110
|
readonly red: {
|
|
109
111
|
readonly light: {
|
|
112
|
+
readonly 30: "#b10000";
|
|
110
113
|
readonly 35: "#cc0000";
|
|
111
114
|
readonly 50: "#fd0000";
|
|
112
115
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchaPaletteRefs.generated.d.ts","sourceRoot":"","sources":["../src/matchaPaletteRefs.generated.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"matchaPaletteRefs.generated.d.ts","sourceRoot":"","sources":["../src/matchaPaletteRefs.generated.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCpB,CAAC;AAEX,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchaTheme.d.ts","sourceRoot":"","sources":["../src/matchaTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"matchaTheme.d.ts","sourceRoot":"","sources":["../src/matchaTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,WAAW,gEA6TtB,CAAC"}
|
package/dist/source.cjs
CHANGED
|
@@ -70,15 +70,15 @@ var matchaIconRegistry = {
|
|
|
70
70
|
// src/matchaPaletteRefs.generated.ts
|
|
71
71
|
var matchaPaletteRefs = {
|
|
72
72
|
neutral: {
|
|
73
|
-
light: { 0: "#000000", 20: "#3e481d", 30: "#5a6b2a", 40: "#707e46", 70: "#b7c29e", 75: "#c0cba9", 85: "#dce3ce", 95: "#f0f0e0", 100: "#ffffff" },
|
|
74
|
-
dark: { 0: "#000000", 5: "#12140e", 10: "#1a1c14", 15: "#1e2016", 20: "#3e481d", 30: "#5a6440", 40: "#707e46", 60: "#94a468", 65: "#92af6a", 70: "#a8bf6a", 75: "#c0cba9", 100: "#ffffff" }
|
|
73
|
+
light: { 0: "#000000", 20: "#3e481d", 25: "#4c5924", 30: "#5a6b2a", 40: "#707e46", 70: "#b7c29e", 75: "#c0cba9", 85: "#dce3ce", 95: "#f0f0e0", 100: "#ffffff" },
|
|
74
|
+
dark: { 0: "#000000", 5: "#12140e", 10: "#1a1c14", 15: "#1e2016", 20: "#3e481d", 30: "#5a6440", 40: "#707e46", 45: "#7a894f", 60: "#94a468", 65: "#92af6a", 70: "#a8bf6a", 75: "#c0cba9", 80: "#cdd8b9", 100: "#ffffff" }
|
|
75
75
|
},
|
|
76
76
|
teal: {
|
|
77
|
-
light: { 35: "#245546", 50: "#2e6b5a"
|
|
77
|
+
light: { 35: "#245546", 50: "#2e6b5a" },
|
|
78
78
|
dark: { 70: "#5ab898", 75: "#6ccaaa" }
|
|
79
79
|
},
|
|
80
80
|
yellow: {
|
|
81
|
-
light: {
|
|
81
|
+
light: { 40: "#755b00", 45: "#836700", 80: "#f2c000" },
|
|
82
82
|
dark: { 70: "#d1a500", 75: "#e0b318", 85: "#f6d066", 90: "#ffe08b" }
|
|
83
83
|
},
|
|
84
84
|
blue: {
|
|
@@ -90,19 +90,19 @@ var matchaPaletteRefs = {
|
|
|
90
90
|
dark: { 70: "#b08ed4", 75: "#c0a0e0" }
|
|
91
91
|
},
|
|
92
92
|
pink: {
|
|
93
|
-
light: { 30: "#8c3a3a",
|
|
93
|
+
light: { 30: "#8c3a3a", 50: "#c44a70" },
|
|
94
94
|
dark: { 65: "#d47a7a", 70: "#e07a9a", 75: "#f08aaa" }
|
|
95
95
|
},
|
|
96
96
|
orange: {
|
|
97
|
-
light: {
|
|
97
|
+
light: { 25: "#6a5031", 30: "#7c5e3a", 50: "#c47620" },
|
|
98
98
|
dark: { 70: "#d4903a", 75: "#e0a04a" }
|
|
99
99
|
},
|
|
100
100
|
green: {
|
|
101
|
-
light: { 35: "#3d7a00", 50: "#4d9900" },
|
|
101
|
+
light: { 30: "#346a00", 35: "#3d7a00", 50: "#4d9900" },
|
|
102
102
|
dark: { 70: "#6dbf2a", 75: "#80d43a" }
|
|
103
103
|
},
|
|
104
104
|
red: {
|
|
105
|
-
light: { 35: "#cc0000", 50: "#fd0000" },
|
|
105
|
+
light: { 30: "#b10000", 35: "#cc0000", 50: "#fd0000" },
|
|
106
106
|
dark: { 70: "#ff5c5c", 75: "#ff7a7a" }
|
|
107
107
|
},
|
|
108
108
|
cyan: {
|
|
@@ -119,16 +119,16 @@ var matchaSyntax = (0, import_theme.defineSyntaxTheme)({
|
|
|
119
119
|
tokens: {
|
|
120
120
|
keyword: [neutral.light[30], neutral.dark[70]],
|
|
121
121
|
string: [teal.light[50], teal.dark[75]],
|
|
122
|
-
comment: [neutral.light[
|
|
122
|
+
comment: [neutral.light[30], neutral.dark[45]],
|
|
123
123
|
number: [yellow.light[45], yellow.dark[75]],
|
|
124
124
|
function: [blue.light[50], blue.dark[70]],
|
|
125
125
|
type: [purple.light[50], purple.dark[70]],
|
|
126
126
|
variable: [neutral.light[20], neutral.dark[75]],
|
|
127
|
-
operator: [neutral.light[
|
|
127
|
+
operator: [neutral.light[30], neutral.dark[60]],
|
|
128
128
|
constant: [yellow.light[45], yellow.dark[75]],
|
|
129
129
|
tag: [pink.light[30], pink.dark[65]],
|
|
130
130
|
attribute: [orange.light[30], yellow.dark[70]],
|
|
131
|
-
property: [teal.light[
|
|
131
|
+
property: [teal.light[50], teal.dark[75]],
|
|
132
132
|
// Punctuation uses dedicated neutral stops that maintain WCAG AA against
|
|
133
133
|
// the syntax background in both modes (issue 5386).
|
|
134
134
|
punctuation: [neutral.light[30], neutral.dark[65]],
|
|
@@ -186,7 +186,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
186
186
|
"--color-background-muted": [neutral.light[95], neutral.dark[20]],
|
|
187
187
|
// Text
|
|
188
188
|
"--color-text-primary": [neutral.light[20], neutral.dark[75]],
|
|
189
|
-
"--color-text-secondary": [neutral.light[30], neutral.dark[
|
|
189
|
+
"--color-text-secondary": [neutral.light[30], neutral.dark[70]],
|
|
190
190
|
"--color-text-disabled": [neutral.light[75], neutral.dark[30]],
|
|
191
191
|
"--color-text-accent": [neutral.light[20], neutral.dark[75]],
|
|
192
192
|
"--color-on-dark": neutral.light[100],
|
|
@@ -203,9 +203,9 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
203
203
|
"--color-text-warning": [yellow.light[45], yellow.dark[90]],
|
|
204
204
|
"--color-text-error": [red.light[35], red.dark[75]],
|
|
205
205
|
"--color-on-info-muted": [blue.light[35], blue.dark[75]],
|
|
206
|
-
"--color-on-success-muted": [green.light[
|
|
207
|
-
"--color-on-warning-muted": [yellow.light[
|
|
208
|
-
"--color-on-error-muted": [red.light[
|
|
206
|
+
"--color-on-success-muted": [green.light[30], green.dark[75]],
|
|
207
|
+
"--color-on-warning-muted": [yellow.light[40], yellow.dark[90]],
|
|
208
|
+
"--color-on-error-muted": [red.light[30], red.dark[75]],
|
|
209
209
|
// Icon
|
|
210
210
|
"--color-icon-accent": [neutral.light[20], neutral.dark[75]],
|
|
211
211
|
"--color-icon-primary": [neutral.light[20], neutral.dark[75]],
|
|
@@ -273,7 +273,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
273
273
|
],
|
|
274
274
|
"--color-border-green": [green.light[50], green.dark[70]],
|
|
275
275
|
"--color-icon-green": [green.light[50], green.dark[70]],
|
|
276
|
-
"--color-text-green": [green.light[
|
|
276
|
+
"--color-text-green": [green.light[30], green.dark[75]],
|
|
277
277
|
// Categorical — Orange
|
|
278
278
|
"--color-background-orange": [
|
|
279
279
|
withAlpha(orange.light[50], "33"),
|
|
@@ -281,7 +281,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
281
281
|
],
|
|
282
282
|
"--color-border-orange": [orange.light[50], orange.dark[70]],
|
|
283
283
|
"--color-icon-orange": [orange.light[50], orange.dark[70]],
|
|
284
|
-
"--color-text-orange": [orange.light[
|
|
284
|
+
"--color-text-orange": [orange.light[25], orange.dark[75]],
|
|
285
285
|
// Categorical — Pink
|
|
286
286
|
"--color-background-pink": [
|
|
287
287
|
withAlpha(pink.light[50], "33"),
|
|
@@ -289,7 +289,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
289
289
|
],
|
|
290
290
|
"--color-border-pink": [pink.light[50], pink.dark[70]],
|
|
291
291
|
"--color-icon-pink": [pink.light[50], pink.dark[70]],
|
|
292
|
-
"--color-text-pink": [pink.light[
|
|
292
|
+
"--color-text-pink": [pink.light[30], pink.dark[75]],
|
|
293
293
|
// Categorical — Purple
|
|
294
294
|
"--color-background-purple": [
|
|
295
295
|
withAlpha(purple.light[50], "33"),
|
|
@@ -305,7 +305,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
305
305
|
],
|
|
306
306
|
"--color-border-red": [red.light[50], red.dark[70]],
|
|
307
307
|
"--color-icon-red": [red.light[50], red.dark[70]],
|
|
308
|
-
"--color-text-red": [red.light[
|
|
308
|
+
"--color-text-red": [red.light[30], red.dark[75]],
|
|
309
309
|
// Categorical — Teal
|
|
310
310
|
"--color-background-teal": [
|
|
311
311
|
withAlpha(teal.light[50], "33"),
|
|
@@ -321,7 +321,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
321
321
|
],
|
|
322
322
|
"--color-border-yellow": [yellow.light[80], yellow.dark[85]],
|
|
323
323
|
"--color-icon-yellow": [yellow.light[80], yellow.dark[85]],
|
|
324
|
-
"--color-text-yellow": [yellow.light[
|
|
324
|
+
"--color-text-yellow": [yellow.light[40], yellow.dark[90]],
|
|
325
325
|
// =========================================================================
|
|
326
326
|
// Spacing
|
|
327
327
|
// =========================================================================
|
|
@@ -372,10 +372,46 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
372
372
|
borderRadius: "var(--radius-full)"
|
|
373
373
|
}
|
|
374
374
|
},
|
|
375
|
+
// Secondary text on a coloured or muted card steps to the nearest neutral
|
|
376
|
+
// stop that reads at 4.5:1 on that fill.
|
|
375
377
|
card: {
|
|
376
378
|
base: {
|
|
377
379
|
borderRadius: "var(--radius-page)",
|
|
378
380
|
padding: "var(--spacing-3)"
|
|
381
|
+
},
|
|
382
|
+
"variant:blue": {
|
|
383
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
|
|
384
|
+
},
|
|
385
|
+
"variant:cyan": {
|
|
386
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
387
|
+
},
|
|
388
|
+
"variant:gray": {
|
|
389
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
390
|
+
},
|
|
391
|
+
"variant:green": {
|
|
392
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`
|
|
393
|
+
},
|
|
394
|
+
"variant:orange": {
|
|
395
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
396
|
+
},
|
|
397
|
+
"variant:pink": {
|
|
398
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
399
|
+
},
|
|
400
|
+
"variant:purple": {
|
|
401
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
|
|
402
|
+
},
|
|
403
|
+
"variant:red": {
|
|
404
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
|
|
405
|
+
},
|
|
406
|
+
"variant:teal": {
|
|
407
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[75]})`
|
|
408
|
+
},
|
|
409
|
+
"variant:yellow": {
|
|
410
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`
|
|
411
|
+
},
|
|
412
|
+
"variant:muted": {
|
|
413
|
+
"--color-text-primary": `light-dark(${neutral.light[20]}, ${neutral.dark[80]})`,
|
|
414
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`
|
|
379
415
|
}
|
|
380
416
|
},
|
|
381
417
|
section: {
|
package/dist/source.mjs
CHANGED
|
@@ -73,15 +73,15 @@ var matchaIconRegistry = {
|
|
|
73
73
|
// src/matchaPaletteRefs.generated.ts
|
|
74
74
|
var matchaPaletteRefs = {
|
|
75
75
|
neutral: {
|
|
76
|
-
light: { 0: "#000000", 20: "#3e481d", 30: "#5a6b2a", 40: "#707e46", 70: "#b7c29e", 75: "#c0cba9", 85: "#dce3ce", 95: "#f0f0e0", 100: "#ffffff" },
|
|
77
|
-
dark: { 0: "#000000", 5: "#12140e", 10: "#1a1c14", 15: "#1e2016", 20: "#3e481d", 30: "#5a6440", 40: "#707e46", 60: "#94a468", 65: "#92af6a", 70: "#a8bf6a", 75: "#c0cba9", 100: "#ffffff" }
|
|
76
|
+
light: { 0: "#000000", 20: "#3e481d", 25: "#4c5924", 30: "#5a6b2a", 40: "#707e46", 70: "#b7c29e", 75: "#c0cba9", 85: "#dce3ce", 95: "#f0f0e0", 100: "#ffffff" },
|
|
77
|
+
dark: { 0: "#000000", 5: "#12140e", 10: "#1a1c14", 15: "#1e2016", 20: "#3e481d", 30: "#5a6440", 40: "#707e46", 45: "#7a894f", 60: "#94a468", 65: "#92af6a", 70: "#a8bf6a", 75: "#c0cba9", 80: "#cdd8b9", 100: "#ffffff" }
|
|
78
78
|
},
|
|
79
79
|
teal: {
|
|
80
|
-
light: { 35: "#245546", 50: "#2e6b5a"
|
|
80
|
+
light: { 35: "#245546", 50: "#2e6b5a" },
|
|
81
81
|
dark: { 70: "#5ab898", 75: "#6ccaaa" }
|
|
82
82
|
},
|
|
83
83
|
yellow: {
|
|
84
|
-
light: {
|
|
84
|
+
light: { 40: "#755b00", 45: "#836700", 80: "#f2c000" },
|
|
85
85
|
dark: { 70: "#d1a500", 75: "#e0b318", 85: "#f6d066", 90: "#ffe08b" }
|
|
86
86
|
},
|
|
87
87
|
blue: {
|
|
@@ -93,19 +93,19 @@ var matchaPaletteRefs = {
|
|
|
93
93
|
dark: { 70: "#b08ed4", 75: "#c0a0e0" }
|
|
94
94
|
},
|
|
95
95
|
pink: {
|
|
96
|
-
light: { 30: "#8c3a3a",
|
|
96
|
+
light: { 30: "#8c3a3a", 50: "#c44a70" },
|
|
97
97
|
dark: { 65: "#d47a7a", 70: "#e07a9a", 75: "#f08aaa" }
|
|
98
98
|
},
|
|
99
99
|
orange: {
|
|
100
|
-
light: {
|
|
100
|
+
light: { 25: "#6a5031", 30: "#7c5e3a", 50: "#c47620" },
|
|
101
101
|
dark: { 70: "#d4903a", 75: "#e0a04a" }
|
|
102
102
|
},
|
|
103
103
|
green: {
|
|
104
|
-
light: { 35: "#3d7a00", 50: "#4d9900" },
|
|
104
|
+
light: { 30: "#346a00", 35: "#3d7a00", 50: "#4d9900" },
|
|
105
105
|
dark: { 70: "#6dbf2a", 75: "#80d43a" }
|
|
106
106
|
},
|
|
107
107
|
red: {
|
|
108
|
-
light: { 35: "#cc0000", 50: "#fd0000" },
|
|
108
|
+
light: { 30: "#b10000", 35: "#cc0000", 50: "#fd0000" },
|
|
109
109
|
dark: { 70: "#ff5c5c", 75: "#ff7a7a" }
|
|
110
110
|
},
|
|
111
111
|
cyan: {
|
|
@@ -122,16 +122,16 @@ var matchaSyntax = defineSyntaxTheme({
|
|
|
122
122
|
tokens: {
|
|
123
123
|
keyword: [neutral.light[30], neutral.dark[70]],
|
|
124
124
|
string: [teal.light[50], teal.dark[75]],
|
|
125
|
-
comment: [neutral.light[
|
|
125
|
+
comment: [neutral.light[30], neutral.dark[45]],
|
|
126
126
|
number: [yellow.light[45], yellow.dark[75]],
|
|
127
127
|
function: [blue.light[50], blue.dark[70]],
|
|
128
128
|
type: [purple.light[50], purple.dark[70]],
|
|
129
129
|
variable: [neutral.light[20], neutral.dark[75]],
|
|
130
|
-
operator: [neutral.light[
|
|
130
|
+
operator: [neutral.light[30], neutral.dark[60]],
|
|
131
131
|
constant: [yellow.light[45], yellow.dark[75]],
|
|
132
132
|
tag: [pink.light[30], pink.dark[65]],
|
|
133
133
|
attribute: [orange.light[30], yellow.dark[70]],
|
|
134
|
-
property: [teal.light[
|
|
134
|
+
property: [teal.light[50], teal.dark[75]],
|
|
135
135
|
// Punctuation uses dedicated neutral stops that maintain WCAG AA against
|
|
136
136
|
// the syntax background in both modes (issue 5386).
|
|
137
137
|
punctuation: [neutral.light[30], neutral.dark[65]],
|
|
@@ -189,7 +189,7 @@ var matchaTheme = defineTheme({
|
|
|
189
189
|
"--color-background-muted": [neutral.light[95], neutral.dark[20]],
|
|
190
190
|
// Text
|
|
191
191
|
"--color-text-primary": [neutral.light[20], neutral.dark[75]],
|
|
192
|
-
"--color-text-secondary": [neutral.light[30], neutral.dark[
|
|
192
|
+
"--color-text-secondary": [neutral.light[30], neutral.dark[70]],
|
|
193
193
|
"--color-text-disabled": [neutral.light[75], neutral.dark[30]],
|
|
194
194
|
"--color-text-accent": [neutral.light[20], neutral.dark[75]],
|
|
195
195
|
"--color-on-dark": neutral.light[100],
|
|
@@ -206,9 +206,9 @@ var matchaTheme = defineTheme({
|
|
|
206
206
|
"--color-text-warning": [yellow.light[45], yellow.dark[90]],
|
|
207
207
|
"--color-text-error": [red.light[35], red.dark[75]],
|
|
208
208
|
"--color-on-info-muted": [blue.light[35], blue.dark[75]],
|
|
209
|
-
"--color-on-success-muted": [green.light[
|
|
210
|
-
"--color-on-warning-muted": [yellow.light[
|
|
211
|
-
"--color-on-error-muted": [red.light[
|
|
209
|
+
"--color-on-success-muted": [green.light[30], green.dark[75]],
|
|
210
|
+
"--color-on-warning-muted": [yellow.light[40], yellow.dark[90]],
|
|
211
|
+
"--color-on-error-muted": [red.light[30], red.dark[75]],
|
|
212
212
|
// Icon
|
|
213
213
|
"--color-icon-accent": [neutral.light[20], neutral.dark[75]],
|
|
214
214
|
"--color-icon-primary": [neutral.light[20], neutral.dark[75]],
|
|
@@ -276,7 +276,7 @@ var matchaTheme = defineTheme({
|
|
|
276
276
|
],
|
|
277
277
|
"--color-border-green": [green.light[50], green.dark[70]],
|
|
278
278
|
"--color-icon-green": [green.light[50], green.dark[70]],
|
|
279
|
-
"--color-text-green": [green.light[
|
|
279
|
+
"--color-text-green": [green.light[30], green.dark[75]],
|
|
280
280
|
// Categorical — Orange
|
|
281
281
|
"--color-background-orange": [
|
|
282
282
|
withAlpha(orange.light[50], "33"),
|
|
@@ -284,7 +284,7 @@ var matchaTheme = defineTheme({
|
|
|
284
284
|
],
|
|
285
285
|
"--color-border-orange": [orange.light[50], orange.dark[70]],
|
|
286
286
|
"--color-icon-orange": [orange.light[50], orange.dark[70]],
|
|
287
|
-
"--color-text-orange": [orange.light[
|
|
287
|
+
"--color-text-orange": [orange.light[25], orange.dark[75]],
|
|
288
288
|
// Categorical — Pink
|
|
289
289
|
"--color-background-pink": [
|
|
290
290
|
withAlpha(pink.light[50], "33"),
|
|
@@ -292,7 +292,7 @@ var matchaTheme = defineTheme({
|
|
|
292
292
|
],
|
|
293
293
|
"--color-border-pink": [pink.light[50], pink.dark[70]],
|
|
294
294
|
"--color-icon-pink": [pink.light[50], pink.dark[70]],
|
|
295
|
-
"--color-text-pink": [pink.light[
|
|
295
|
+
"--color-text-pink": [pink.light[30], pink.dark[75]],
|
|
296
296
|
// Categorical — Purple
|
|
297
297
|
"--color-background-purple": [
|
|
298
298
|
withAlpha(purple.light[50], "33"),
|
|
@@ -308,7 +308,7 @@ var matchaTheme = defineTheme({
|
|
|
308
308
|
],
|
|
309
309
|
"--color-border-red": [red.light[50], red.dark[70]],
|
|
310
310
|
"--color-icon-red": [red.light[50], red.dark[70]],
|
|
311
|
-
"--color-text-red": [red.light[
|
|
311
|
+
"--color-text-red": [red.light[30], red.dark[75]],
|
|
312
312
|
// Categorical — Teal
|
|
313
313
|
"--color-background-teal": [
|
|
314
314
|
withAlpha(teal.light[50], "33"),
|
|
@@ -324,7 +324,7 @@ var matchaTheme = defineTheme({
|
|
|
324
324
|
],
|
|
325
325
|
"--color-border-yellow": [yellow.light[80], yellow.dark[85]],
|
|
326
326
|
"--color-icon-yellow": [yellow.light[80], yellow.dark[85]],
|
|
327
|
-
"--color-text-yellow": [yellow.light[
|
|
327
|
+
"--color-text-yellow": [yellow.light[40], yellow.dark[90]],
|
|
328
328
|
// =========================================================================
|
|
329
329
|
// Spacing
|
|
330
330
|
// =========================================================================
|
|
@@ -375,10 +375,46 @@ var matchaTheme = defineTheme({
|
|
|
375
375
|
borderRadius: "var(--radius-full)"
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
|
+
// Secondary text on a coloured or muted card steps to the nearest neutral
|
|
379
|
+
// stop that reads at 4.5:1 on that fill.
|
|
378
380
|
card: {
|
|
379
381
|
base: {
|
|
380
382
|
borderRadius: "var(--radius-page)",
|
|
381
383
|
padding: "var(--spacing-3)"
|
|
384
|
+
},
|
|
385
|
+
"variant:blue": {
|
|
386
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
|
|
387
|
+
},
|
|
388
|
+
"variant:cyan": {
|
|
389
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
390
|
+
},
|
|
391
|
+
"variant:gray": {
|
|
392
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
393
|
+
},
|
|
394
|
+
"variant:green": {
|
|
395
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`
|
|
396
|
+
},
|
|
397
|
+
"variant:orange": {
|
|
398
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
399
|
+
},
|
|
400
|
+
"variant:pink": {
|
|
401
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
|
|
402
|
+
},
|
|
403
|
+
"variant:purple": {
|
|
404
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
|
|
405
|
+
},
|
|
406
|
+
"variant:red": {
|
|
407
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
|
|
408
|
+
},
|
|
409
|
+
"variant:teal": {
|
|
410
|
+
"--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[75]})`
|
|
411
|
+
},
|
|
412
|
+
"variant:yellow": {
|
|
413
|
+
"--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`
|
|
414
|
+
},
|
|
415
|
+
"variant:muted": {
|
|
416
|
+
"--color-text-primary": `light-dark(${neutral.light[20]}, ${neutral.dark[80]})`,
|
|
417
|
+
"--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`
|
|
382
418
|
}
|
|
383
419
|
},
|
|
384
420
|
section: {
|
package/dist/theme.css
CHANGED
|
@@ -176,16 +176,16 @@
|
|
|
176
176
|
--font-family-code: "JetBrains Mono", "SF Mono", Monaco, Consolas, monospace;
|
|
177
177
|
--color-syntax-keyword: light-dark(#5a6b2a, #a8bf6a);
|
|
178
178
|
--color-syntax-string: light-dark(#2e6b5a, #6ccaaa);
|
|
179
|
-
--color-syntax-comment: light-dark(#
|
|
179
|
+
--color-syntax-comment: light-dark(#5a6b2a, #7a894f);
|
|
180
180
|
--color-syntax-number: light-dark(#836700, #e0b318);
|
|
181
181
|
--color-syntax-function: light-dark(#3a5e8c, #7ba8d4);
|
|
182
182
|
--color-syntax-type: light-dark(#6b4a8c, #b08ed4);
|
|
183
183
|
--color-syntax-variable: light-dark(#3e481d, #c0cba9);
|
|
184
|
-
--color-syntax-operator: light-dark(#
|
|
184
|
+
--color-syntax-operator: light-dark(#5a6b2a, #94a468);
|
|
185
185
|
--color-syntax-constant: light-dark(#836700, #e0b318);
|
|
186
186
|
--color-syntax-tag: light-dark(#8c3a3a, #d47a7a);
|
|
187
187
|
--color-syntax-attribute: light-dark(#7c5e3a, #d1a500);
|
|
188
|
-
--color-syntax-property: light-dark(#
|
|
188
|
+
--color-syntax-property: light-dark(#2e6b5a, #6ccaaa);
|
|
189
189
|
--color-syntax-punctuation: light-dark(#5a6b2a, #92af6a);
|
|
190
190
|
--color-syntax-background: light-dark(#f0f0e0, #1a1c14);
|
|
191
191
|
--color-syntax-added: color-mix(in srgb, var(--color-success-muted) 25%, transparent);
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
--color-overlay-pressed: light-dark(#3e481d1a, #c0cba91a);
|
|
204
204
|
--color-background-muted: light-dark(#f0f0e0, #3e481d);
|
|
205
205
|
--color-text-primary: light-dark(#3e481d, #c0cba9);
|
|
206
|
-
--color-text-secondary: light-dark(#5a6b2a, #
|
|
206
|
+
--color-text-secondary: light-dark(#5a6b2a, #a8bf6a);
|
|
207
207
|
--color-text-disabled: light-dark(#c0cba9, #5a6440);
|
|
208
208
|
--color-text-accent: light-dark(#3e481d, #c0cba9);
|
|
209
209
|
--color-on-dark: #ffffff;
|
|
@@ -219,9 +219,9 @@
|
|
|
219
219
|
--color-text-warning: light-dark(#836700, #ffe08b);
|
|
220
220
|
--color-text-error: light-dark(#cc0000, #ff7a7a);
|
|
221
221
|
--color-on-info-muted: light-dark(#2e4a6e, #8dbce0);
|
|
222
|
-
--color-on-success-muted: light-dark(#
|
|
223
|
-
--color-on-warning-muted: light-dark(#
|
|
224
|
-
--color-on-error-muted: light-dark(#
|
|
222
|
+
--color-on-success-muted: light-dark(#346a00, #80d43a);
|
|
223
|
+
--color-on-warning-muted: light-dark(#755b00, #ffe08b);
|
|
224
|
+
--color-on-error-muted: light-dark(#b10000, #ff7a7a);
|
|
225
225
|
--color-icon-accent: light-dark(#3e481d, #c0cba9);
|
|
226
226
|
--color-icon-primary: light-dark(#3e481d, #c0cba9);
|
|
227
227
|
--color-icon-secondary: light-dark(#707e46, #94a468);
|
|
@@ -255,15 +255,15 @@
|
|
|
255
255
|
--color-background-green: light-dark(#4d990033, #6dbf2a33);
|
|
256
256
|
--color-border-green: light-dark(#4d9900, #6dbf2a);
|
|
257
257
|
--color-icon-green: light-dark(#4d9900, #6dbf2a);
|
|
258
|
-
--color-text-green: light-dark(#
|
|
258
|
+
--color-text-green: light-dark(#346a00, #80d43a);
|
|
259
259
|
--color-background-orange: light-dark(#c4762033, #d4903a33);
|
|
260
260
|
--color-border-orange: light-dark(#c47620, #d4903a);
|
|
261
261
|
--color-icon-orange: light-dark(#c47620, #d4903a);
|
|
262
|
-
--color-text-orange: light-dark(#
|
|
262
|
+
--color-text-orange: light-dark(#6a5031, #e0a04a);
|
|
263
263
|
--color-background-pink: light-dark(#c44a7033, #e07a9a33);
|
|
264
264
|
--color-border-pink: light-dark(#c44a70, #e07a9a);
|
|
265
265
|
--color-icon-pink: light-dark(#c44a70, #e07a9a);
|
|
266
|
-
--color-text-pink: light-dark(#
|
|
266
|
+
--color-text-pink: light-dark(#8c3a3a, #f08aaa);
|
|
267
267
|
--color-background-purple: light-dark(#6b4a8c33, #b08ed433);
|
|
268
268
|
--color-border-purple: light-dark(#6b4a8c, #b08ed4);
|
|
269
269
|
--color-icon-purple: light-dark(#6b4a8c, #b08ed4);
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
--color-background-red: light-dark(#fd000033, #ff5c5c33);
|
|
272
272
|
--color-border-red: light-dark(#fd0000, #ff5c5c);
|
|
273
273
|
--color-icon-red: light-dark(#fd0000, #ff5c5c);
|
|
274
|
-
--color-text-red: light-dark(#
|
|
274
|
+
--color-text-red: light-dark(#b10000, #ff7a7a);
|
|
275
275
|
--color-background-teal: light-dark(#2e6b5a33, #5ab89833);
|
|
276
276
|
--color-border-teal: light-dark(#2e6b5a, #5ab898);
|
|
277
277
|
--color-icon-teal: light-dark(#2e6b5a, #5ab898);
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
--color-background-yellow: light-dark(#f2c00033, #f6d06633);
|
|
280
280
|
--color-border-yellow: light-dark(#f2c000, #f6d066);
|
|
281
281
|
--color-icon-yellow: light-dark(#f2c000, #f6d066);
|
|
282
|
-
--color-text-yellow: light-dark(#
|
|
282
|
+
--color-text-yellow: light-dark(#755b00, #ffe08b);
|
|
283
283
|
--spacing-0-5: 0.1875rem;
|
|
284
284
|
--spacing-1: 0.375rem;
|
|
285
285
|
--spacing-1-5: 0.5625rem;
|
|
@@ -444,6 +444,51 @@
|
|
|
444
444
|
--_card-radius: var(--radius-page);
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
.astryx-card[data-variant="blue"] {
|
|
448
|
+
--color-text-secondary: light-dark(#3e481d, #a8bf6a);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.astryx-card[data-variant="cyan"] {
|
|
452
|
+
--color-text-secondary: light-dark(#4c5924, #a8bf6a);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.astryx-card[data-variant="gray"] {
|
|
456
|
+
--color-text-secondary: light-dark(#4c5924, #a8bf6a);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.astryx-card[data-variant="green"] {
|
|
460
|
+
--color-text-secondary: light-dark(#4c5924, #c0cba9);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.astryx-card[data-variant="orange"] {
|
|
464
|
+
--color-text-secondary: light-dark(#4c5924, #a8bf6a);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.astryx-card[data-variant="pink"] {
|
|
468
|
+
--color-text-secondary: light-dark(#4c5924, #a8bf6a);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.astryx-card[data-variant="purple"] {
|
|
472
|
+
--color-text-secondary: light-dark(#3e481d, #a8bf6a);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.astryx-card[data-variant="red"] {
|
|
476
|
+
--color-text-secondary: light-dark(#3e481d, #a8bf6a);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.astryx-card[data-variant="teal"] {
|
|
480
|
+
--color-text-secondary: light-dark(#3e481d, #c0cba9);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.astryx-card[data-variant="yellow"] {
|
|
484
|
+
--color-text-secondary: light-dark(#4c5924, #c0cba9);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.astryx-card[data-variant="muted"] {
|
|
488
|
+
--color-text-primary: light-dark(#3e481d, #cdd8b9);
|
|
489
|
+
--color-text-secondary: light-dark(#5a6b2a, #cdd8b9);
|
|
490
|
+
}
|
|
491
|
+
|
|
447
492
|
.astryx-section {
|
|
448
493
|
--astryx-section-padding: var(--spacing-3);
|
|
449
494
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-matcha",
|
|
3
|
-
"version": "0.7.17-canary.
|
|
3
|
+
"version": "0.7.17-canary.g5cf5d69",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Earthy greens with a calm, organic feel. Naturalistic and grounded, great for wellness or content-first apps.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"lucide-react": "^1.66.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@astryxdesign/core": "0.7.17-canary.
|
|
80
|
+
"@astryxdesign/core": "0.7.17-canary.g5cf5d69",
|
|
81
81
|
"react": ">=19"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@astryxdesign/cli": "0.7.17-canary.
|
|
84
|
+
"@astryxdesign/cli": "0.7.17-canary.g5cf5d69"
|
|
85
85
|
},
|
|
86
86
|
"module": "./dist/source.mjs",
|
|
87
87
|
"scripts": {
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const matchaPaletteRefs = {
|
|
9
9
|
neutral: {
|
|
10
|
-
light: {0: '#000000', 20: '#3e481d', 30: '#5a6b2a', 40: '#707e46', 70: '#b7c29e', 75: '#c0cba9', 85: '#dce3ce', 95: '#f0f0e0', 100: '#ffffff'},
|
|
11
|
-
dark: {0: '#000000', 5: '#12140e', 10: '#1a1c14', 15: '#1e2016', 20: '#3e481d', 30: '#5a6440', 40: '#707e46', 60: '#94a468', 65: '#92af6a', 70: '#a8bf6a', 75: '#c0cba9', 100: '#ffffff'},
|
|
10
|
+
light: {0: '#000000', 20: '#3e481d', 25: '#4c5924', 30: '#5a6b2a', 40: '#707e46', 70: '#b7c29e', 75: '#c0cba9', 85: '#dce3ce', 95: '#f0f0e0', 100: '#ffffff'},
|
|
11
|
+
dark: {0: '#000000', 5: '#12140e', 10: '#1a1c14', 15: '#1e2016', 20: '#3e481d', 30: '#5a6440', 40: '#707e46', 45: '#7a894f', 60: '#94a468', 65: '#92af6a', 70: '#a8bf6a', 75: '#c0cba9', 80: '#cdd8b9', 100: '#ffffff'},
|
|
12
12
|
},
|
|
13
13
|
teal: {
|
|
14
|
-
light: {35: '#245546', 50: '#2e6b5a'
|
|
14
|
+
light: {35: '#245546', 50: '#2e6b5a'},
|
|
15
15
|
dark: {70: '#5ab898', 75: '#6ccaaa'},
|
|
16
16
|
},
|
|
17
17
|
yellow: {
|
|
18
|
-
light: {
|
|
18
|
+
light: {40: '#755b00', 45: '#836700', 80: '#f2c000'},
|
|
19
19
|
dark: {70: '#d1a500', 75: '#e0b318', 85: '#f6d066', 90: '#ffe08b'},
|
|
20
20
|
},
|
|
21
21
|
blue: {
|
|
@@ -27,19 +27,19 @@ export const matchaPaletteRefs = {
|
|
|
27
27
|
dark: {70: '#b08ed4', 75: '#c0a0e0'},
|
|
28
28
|
},
|
|
29
29
|
pink: {
|
|
30
|
-
light: {30: '#8c3a3a',
|
|
30
|
+
light: {30: '#8c3a3a', 50: '#c44a70'},
|
|
31
31
|
dark: {65: '#d47a7a', 70: '#e07a9a', 75: '#f08aaa'},
|
|
32
32
|
},
|
|
33
33
|
orange: {
|
|
34
|
-
light: {
|
|
34
|
+
light: {25: '#6a5031', 30: '#7c5e3a', 50: '#c47620'},
|
|
35
35
|
dark: {70: '#d4903a', 75: '#e0a04a'},
|
|
36
36
|
},
|
|
37
37
|
green: {
|
|
38
|
-
light: {35: '#3d7a00', 50: '#4d9900'},
|
|
38
|
+
light: {30: '#346a00', 35: '#3d7a00', 50: '#4d9900'},
|
|
39
39
|
dark: {70: '#6dbf2a', 75: '#80d43a'},
|
|
40
40
|
},
|
|
41
41
|
red: {
|
|
42
|
-
light: {35: '#cc0000', 50: '#fd0000'},
|
|
42
|
+
light: {30: '#b10000', 35: '#cc0000', 50: '#fd0000'},
|
|
43
43
|
dark: {70: '#ff5c5c', 75: '#ff7a7a'},
|
|
44
44
|
},
|
|
45
45
|
cyan: {
|
package/src/matchaTheme.ts
CHANGED
|
@@ -22,16 +22,16 @@ const matchaSyntax = defineSyntaxTheme({
|
|
|
22
22
|
tokens: {
|
|
23
23
|
keyword: [neutral.light[30], neutral.dark[70]],
|
|
24
24
|
string: [teal.light[50], teal.dark[75]],
|
|
25
|
-
comment: [neutral.light[
|
|
25
|
+
comment: [neutral.light[30], neutral.dark[45]],
|
|
26
26
|
number: [yellow.light[45], yellow.dark[75]],
|
|
27
27
|
function: [blue.light[50], blue.dark[70]],
|
|
28
28
|
type: [purple.light[50], purple.dark[70]],
|
|
29
29
|
variable: [neutral.light[20], neutral.dark[75]],
|
|
30
|
-
operator: [neutral.light[
|
|
30
|
+
operator: [neutral.light[30], neutral.dark[60]],
|
|
31
31
|
constant: [yellow.light[45], yellow.dark[75]],
|
|
32
32
|
tag: [pink.light[30], pink.dark[65]],
|
|
33
33
|
attribute: [orange.light[30], yellow.dark[70]],
|
|
34
|
-
property: [teal.light[
|
|
34
|
+
property: [teal.light[50], teal.dark[75]],
|
|
35
35
|
// Punctuation uses dedicated neutral stops that maintain WCAG AA against
|
|
36
36
|
// the syntax background in both modes (issue 5386).
|
|
37
37
|
punctuation: [neutral.light[30], neutral.dark[65]],
|
|
@@ -97,7 +97,7 @@ export const matchaTheme = defineTheme({
|
|
|
97
97
|
|
|
98
98
|
// Text
|
|
99
99
|
'--color-text-primary': [neutral.light[20], neutral.dark[75]],
|
|
100
|
-
'--color-text-secondary': [neutral.light[30], neutral.dark[
|
|
100
|
+
'--color-text-secondary': [neutral.light[30], neutral.dark[70]],
|
|
101
101
|
'--color-text-disabled': [neutral.light[75], neutral.dark[30]],
|
|
102
102
|
'--color-text-accent': [neutral.light[20], neutral.dark[75]],
|
|
103
103
|
'--color-on-dark': neutral.light[100],
|
|
@@ -116,9 +116,9 @@ export const matchaTheme = defineTheme({
|
|
|
116
116
|
'--color-text-warning': [yellow.light[45], yellow.dark[90]],
|
|
117
117
|
'--color-text-error': [red.light[35], red.dark[75]],
|
|
118
118
|
'--color-on-info-muted': [blue.light[35], blue.dark[75]],
|
|
119
|
-
'--color-on-success-muted': [green.light[
|
|
120
|
-
'--color-on-warning-muted': [yellow.light[
|
|
121
|
-
'--color-on-error-muted': [red.light[
|
|
119
|
+
'--color-on-success-muted': [green.light[30], green.dark[75]],
|
|
120
|
+
'--color-on-warning-muted': [yellow.light[40], yellow.dark[90]],
|
|
121
|
+
'--color-on-error-muted': [red.light[30], red.dark[75]],
|
|
122
122
|
|
|
123
123
|
// Icon
|
|
124
124
|
'--color-icon-accent': [neutral.light[20], neutral.dark[75]],
|
|
@@ -195,7 +195,7 @@ export const matchaTheme = defineTheme({
|
|
|
195
195
|
],
|
|
196
196
|
'--color-border-green': [green.light[50], green.dark[70]],
|
|
197
197
|
'--color-icon-green': [green.light[50], green.dark[70]],
|
|
198
|
-
'--color-text-green': [green.light[
|
|
198
|
+
'--color-text-green': [green.light[30], green.dark[75]],
|
|
199
199
|
|
|
200
200
|
// Categorical — Orange
|
|
201
201
|
'--color-background-orange': [
|
|
@@ -204,7 +204,7 @@ export const matchaTheme = defineTheme({
|
|
|
204
204
|
],
|
|
205
205
|
'--color-border-orange': [orange.light[50], orange.dark[70]],
|
|
206
206
|
'--color-icon-orange': [orange.light[50], orange.dark[70]],
|
|
207
|
-
'--color-text-orange': [orange.light[
|
|
207
|
+
'--color-text-orange': [orange.light[25], orange.dark[75]],
|
|
208
208
|
|
|
209
209
|
// Categorical — Pink
|
|
210
210
|
'--color-background-pink': [
|
|
@@ -213,7 +213,7 @@ export const matchaTheme = defineTheme({
|
|
|
213
213
|
],
|
|
214
214
|
'--color-border-pink': [pink.light[50], pink.dark[70]],
|
|
215
215
|
'--color-icon-pink': [pink.light[50], pink.dark[70]],
|
|
216
|
-
'--color-text-pink': [pink.light[
|
|
216
|
+
'--color-text-pink': [pink.light[30], pink.dark[75]],
|
|
217
217
|
|
|
218
218
|
// Categorical — Purple
|
|
219
219
|
'--color-background-purple': [
|
|
@@ -231,7 +231,7 @@ export const matchaTheme = defineTheme({
|
|
|
231
231
|
],
|
|
232
232
|
'--color-border-red': [red.light[50], red.dark[70]],
|
|
233
233
|
'--color-icon-red': [red.light[50], red.dark[70]],
|
|
234
|
-
'--color-text-red': [red.light[
|
|
234
|
+
'--color-text-red': [red.light[30], red.dark[75]],
|
|
235
235
|
|
|
236
236
|
// Categorical — Teal
|
|
237
237
|
'--color-background-teal': [
|
|
@@ -249,7 +249,7 @@ export const matchaTheme = defineTheme({
|
|
|
249
249
|
],
|
|
250
250
|
'--color-border-yellow': [yellow.light[80], yellow.dark[85]],
|
|
251
251
|
'--color-icon-yellow': [yellow.light[80], yellow.dark[85]],
|
|
252
|
-
'--color-text-yellow': [yellow.light[
|
|
252
|
+
'--color-text-yellow': [yellow.light[40], yellow.dark[90]],
|
|
253
253
|
|
|
254
254
|
// =========================================================================
|
|
255
255
|
// Spacing
|
|
@@ -306,11 +306,47 @@ export const matchaTheme = defineTheme({
|
|
|
306
306
|
borderRadius: 'var(--radius-full)',
|
|
307
307
|
},
|
|
308
308
|
},
|
|
309
|
+
// Secondary text on a coloured or muted card steps to the nearest neutral
|
|
310
|
+
// stop that reads at 4.5:1 on that fill.
|
|
309
311
|
card: {
|
|
310
312
|
base: {
|
|
311
313
|
borderRadius: 'var(--radius-page)',
|
|
312
314
|
padding: 'var(--spacing-3)',
|
|
313
315
|
},
|
|
316
|
+
'variant:blue': {
|
|
317
|
+
'--color-text-secondary': `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`,
|
|
318
|
+
},
|
|
319
|
+
'variant:cyan': {
|
|
320
|
+
'--color-text-secondary': `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`,
|
|
321
|
+
},
|
|
322
|
+
'variant:gray': {
|
|
323
|
+
'--color-text-secondary': `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`,
|
|
324
|
+
},
|
|
325
|
+
'variant:green': {
|
|
326
|
+
'--color-text-secondary': `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`,
|
|
327
|
+
},
|
|
328
|
+
'variant:orange': {
|
|
329
|
+
'--color-text-secondary': `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`,
|
|
330
|
+
},
|
|
331
|
+
'variant:pink': {
|
|
332
|
+
'--color-text-secondary': `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`,
|
|
333
|
+
},
|
|
334
|
+
'variant:purple': {
|
|
335
|
+
'--color-text-secondary': `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`,
|
|
336
|
+
},
|
|
337
|
+
'variant:red': {
|
|
338
|
+
'--color-text-secondary': `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`,
|
|
339
|
+
},
|
|
340
|
+
'variant:teal': {
|
|
341
|
+
'--color-text-secondary': `light-dark(${neutral.light[20]}, ${neutral.dark[75]})`,
|
|
342
|
+
},
|
|
343
|
+
'variant:yellow': {
|
|
344
|
+
'--color-text-secondary': `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`,
|
|
345
|
+
},
|
|
346
|
+
'variant:muted': {
|
|
347
|
+
'--color-text-primary': `light-dark(${neutral.light[20]}, ${neutral.dark[80]})`,
|
|
348
|
+
'--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`,
|
|
349
|
+
},
|
|
314
350
|
},
|
|
315
351
|
section: {
|
|
316
352
|
base: {
|