@astryxdesign/theme-matcha 0.7.3 → 0.7.4-canary.39f7153
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 +27 -5
- package/dist/matcha.d.ts +2 -2
- package/dist/matcha.js +71 -71
- package/dist/matchaColorMapping.test.d.ts +2 -0
- package/dist/matchaColorMapping.test.d.ts.map +1 -0
- package/dist/matchaPaletteRefs.generated.d.ts +130 -0
- package/dist/matchaPaletteRefs.generated.d.ts.map +1 -0
- package/dist/matchaPalettes.d.ts +497 -0
- package/dist/matchaPalettes.d.ts.map +1 -0
- package/dist/matchaPalettes.generated.d.ts +496 -0
- package/dist/matchaPalettes.generated.d.ts.map +1 -0
- package/dist/matchaPalettes.test.d.ts +2 -0
- package/dist/matchaPalettes.test.d.ts.map +1 -0
- package/dist/matchaTheme.d.ts.map +1 -1
- package/dist/matchaTheme.test.d.ts +2 -0
- package/dist/matchaTheme.test.d.ts.map +1 -0
- package/dist/source.js +204 -103
- package/dist/source.mjs +204 -103
- package/dist/theme.css +71 -71
- package/dist/theme.css.d.ts +2 -2
- package/package.json +6 -5
- package/palette.config.json +448 -0
- package/src/matchaColorMapping.test.ts +48 -0
- package/src/matchaPaletteRefs.generated.ts +51 -0
- package/src/matchaPalettes.generated.receipt.json +1502 -0
- package/src/matchaPalettes.generated.ts +501 -0
- package/src/matchaPalettes.test.ts +50 -0
- package/src/matchaPalettes.ts +21 -0
- package/src/matchaTheme.test.ts +77 -0
- package/src/matchaTheme.ts +164 -103
package/dist/source.js
CHANGED
|
@@ -67,27 +67,72 @@ var matchaIconRegistry = {
|
|
|
67
67
|
microphone: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Mic, { ...iconProps })
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
// src/matchaPaletteRefs.generated.ts
|
|
71
|
+
var matchaPaletteRefs = {
|
|
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" }
|
|
75
|
+
},
|
|
76
|
+
teal: {
|
|
77
|
+
light: { 35: "#245546", 50: "#2e6b5a", 55: "#3a7c6b" },
|
|
78
|
+
dark: { 70: "#5ab898", 75: "#6ccaaa" }
|
|
79
|
+
},
|
|
80
|
+
yellow: {
|
|
81
|
+
light: { 45: "#836700", 65: "#c19800", 80: "#f2c000" },
|
|
82
|
+
dark: { 70: "#d1a500", 75: "#e0b318", 85: "#f6d066", 90: "#ffe08b" }
|
|
83
|
+
},
|
|
84
|
+
blue: {
|
|
85
|
+
light: { 35: "#2e4a6e", 50: "#3a5e8c" },
|
|
86
|
+
dark: { 50: "#3a5e8c", 70: "#7ba8d4", 75: "#8dbce0" }
|
|
87
|
+
},
|
|
88
|
+
purple: {
|
|
89
|
+
light: { 35: "#553a70", 50: "#6b4a8c" },
|
|
90
|
+
dark: { 70: "#b08ed4", 75: "#c0a0e0" }
|
|
91
|
+
},
|
|
92
|
+
pink: {
|
|
93
|
+
light: { 30: "#8c3a3a", 35: "#a03a5a", 50: "#c44a70" },
|
|
94
|
+
dark: { 65: "#d47a7a", 70: "#e07a9a", 75: "#f08aaa" }
|
|
95
|
+
},
|
|
96
|
+
orange: {
|
|
97
|
+
light: { 30: "#7c5e3a", 35: "#a06018", 50: "#c47620" },
|
|
98
|
+
dark: { 70: "#d4903a", 75: "#e0a04a" }
|
|
99
|
+
},
|
|
100
|
+
green: {
|
|
101
|
+
light: { 35: "#3d7a00", 50: "#4d9900" },
|
|
102
|
+
dark: { 70: "#6dbf2a", 75: "#80d43a" }
|
|
103
|
+
},
|
|
104
|
+
red: {
|
|
105
|
+
light: { 35: "#cc0000", 50: "#fd0000" },
|
|
106
|
+
dark: { 70: "#ff5c5c", 75: "#ff7a7a" }
|
|
107
|
+
},
|
|
108
|
+
cyan: {
|
|
109
|
+
light: { 35: "#2e6060", 50: "#3a7c7c" },
|
|
110
|
+
dark: { 50: "#3a7c7c", 70: "#70c4c4", 75: "#82d4d4" }
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
70
114
|
// src/matchaTheme.ts
|
|
115
|
+
var { blue, cyan, green, neutral, orange, pink, purple, red, teal, yellow } = matchaPaletteRefs;
|
|
116
|
+
var withAlpha = (color, alpha) => `${color}${alpha}`;
|
|
71
117
|
var matchaSyntax = (0, import_theme.defineSyntaxTheme)({
|
|
72
118
|
name: "astryx-matcha",
|
|
73
119
|
tokens: {
|
|
74
|
-
keyword: [
|
|
75
|
-
string: [
|
|
76
|
-
comment: [
|
|
77
|
-
number: [
|
|
78
|
-
function: [
|
|
79
|
-
type: [
|
|
80
|
-
variable: [
|
|
81
|
-
operator: [
|
|
82
|
-
constant: [
|
|
83
|
-
tag: [
|
|
84
|
-
attribute: [
|
|
85
|
-
property: [
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
punctuation: [
|
|
89
|
-
|
|
90
|
-
background: ["#F0F0E0", "#1a1c14"]
|
|
120
|
+
keyword: [neutral.light[30], neutral.dark[70]],
|
|
121
|
+
string: [teal.light[50], teal.dark[75]],
|
|
122
|
+
comment: [neutral.light[40], neutral.dark[40]],
|
|
123
|
+
number: [yellow.light[45], yellow.dark[75]],
|
|
124
|
+
function: [blue.light[50], blue.dark[70]],
|
|
125
|
+
type: [purple.light[50], purple.dark[70]],
|
|
126
|
+
variable: [neutral.light[20], neutral.dark[75]],
|
|
127
|
+
operator: [neutral.light[40], neutral.dark[60]],
|
|
128
|
+
constant: [yellow.light[45], yellow.dark[75]],
|
|
129
|
+
tag: [pink.light[30], pink.dark[65]],
|
|
130
|
+
attribute: [orange.light[30], yellow.dark[70]],
|
|
131
|
+
property: [teal.light[55], teal.dark[75]],
|
|
132
|
+
// Punctuation uses dedicated neutral stops that maintain WCAG AA against
|
|
133
|
+
// the syntax background in both modes (issue 5386).
|
|
134
|
+
punctuation: [neutral.light[30], neutral.dark[65]],
|
|
135
|
+
background: [neutral.light[95], neutral.dark[10]]
|
|
91
136
|
}
|
|
92
137
|
});
|
|
93
138
|
var matchaTheme = (0, import_theme.defineTheme)({
|
|
@@ -113,103 +158,159 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
113
158
|
tokens: {
|
|
114
159
|
// =========================================================================
|
|
115
160
|
// Colors — earthy matcha palette
|
|
116
|
-
// Core: #3E481D, #707E46, #C0CBA9, #F0F0E0, #FFFFFF
|
|
117
161
|
// =========================================================================
|
|
118
162
|
// Core semantic
|
|
119
|
-
"--color-accent": [
|
|
120
|
-
"--color-accent-muted": [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"--color-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
163
|
+
"--color-accent": [neutral.light[20], neutral.dark[75]],
|
|
164
|
+
"--color-accent-muted": [
|
|
165
|
+
withAlpha(neutral.light[20], "14"),
|
|
166
|
+
withAlpha(neutral.dark[75], "20")
|
|
167
|
+
],
|
|
168
|
+
"--color-neutral": [
|
|
169
|
+
withAlpha(neutral.light[20], "0f"),
|
|
170
|
+
withAlpha(neutral.dark[75], "1a")
|
|
171
|
+
],
|
|
172
|
+
"--color-background-surface": [neutral.light[100], neutral.dark[10]],
|
|
173
|
+
"--color-background-body": [neutral.light[95], neutral.dark[5]],
|
|
174
|
+
"--color-overlay": [
|
|
175
|
+
withAlpha(neutral.light[20], "80"),
|
|
176
|
+
withAlpha(neutral.dark[20], "cc")
|
|
177
|
+
],
|
|
178
|
+
"--color-overlay-hover": [
|
|
179
|
+
withAlpha(neutral.light[20], "0d"),
|
|
180
|
+
withAlpha(neutral.dark[75], "0d")
|
|
181
|
+
],
|
|
182
|
+
"--color-overlay-pressed": [
|
|
183
|
+
withAlpha(neutral.light[20], "1a"),
|
|
184
|
+
withAlpha(neutral.dark[75], "1a")
|
|
185
|
+
],
|
|
186
|
+
"--color-background-muted": [neutral.light[95], neutral.dark[20]],
|
|
128
187
|
// Text
|
|
129
|
-
"--color-text-primary": [
|
|
130
|
-
"--color-text-secondary": [
|
|
131
|
-
"--color-text-disabled": [
|
|
132
|
-
"--color-text-accent": [
|
|
133
|
-
"--color-on-dark":
|
|
134
|
-
"--color-on-light":
|
|
135
|
-
"--color-on-accent": [
|
|
136
|
-
"--color-on-success": [
|
|
137
|
-
"--color-on-error": [
|
|
138
|
-
"--color-on-warning": [
|
|
188
|
+
"--color-text-primary": [neutral.light[20], neutral.dark[75]],
|
|
189
|
+
"--color-text-secondary": [neutral.light[40], neutral.dark[60]],
|
|
190
|
+
"--color-text-disabled": [neutral.light[75], neutral.dark[30]],
|
|
191
|
+
"--color-text-accent": [neutral.light[20], neutral.dark[75]],
|
|
192
|
+
"--color-on-dark": neutral.light[100],
|
|
193
|
+
"--color-on-light": neutral.light[20],
|
|
194
|
+
"--color-on-accent": [neutral.light[100], neutral.dark[20]],
|
|
195
|
+
"--color-on-success": [neutral.light[100], neutral.dark[20]],
|
|
196
|
+
"--color-on-error": [neutral.light[100], neutral.dark[20]],
|
|
197
|
+
"--color-on-warning": [neutral.light[20], neutral.dark[20]],
|
|
139
198
|
// Icon
|
|
140
|
-
"--color-icon-accent": [
|
|
141
|
-
"--color-icon-primary": [
|
|
142
|
-
"--color-icon-secondary": [
|
|
143
|
-
"--color-icon-disabled": [
|
|
199
|
+
"--color-icon-accent": [neutral.light[20], neutral.dark[75]],
|
|
200
|
+
"--color-icon-primary": [neutral.light[20], neutral.dark[75]],
|
|
201
|
+
"--color-icon-secondary": [neutral.light[40], neutral.dark[60]],
|
|
202
|
+
"--color-icon-disabled": [neutral.light[75], neutral.dark[30]],
|
|
144
203
|
// Surface variants
|
|
145
|
-
"--color-background-card": [
|
|
146
|
-
"--color-background-popover": [
|
|
147
|
-
"--color-background-inverted": [
|
|
204
|
+
"--color-background-card": [neutral.light[100], neutral.dark[15]],
|
|
205
|
+
"--color-background-popover": [neutral.light[100], neutral.dark[20]],
|
|
206
|
+
"--color-background-inverted": [neutral.light[20], neutral.dark[75]],
|
|
148
207
|
// Status / Sentiment
|
|
149
|
-
"--color-success": [
|
|
150
|
-
"--color-success-muted": [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"--color-
|
|
208
|
+
"--color-success": [green.light[50], green.dark[70]],
|
|
209
|
+
"--color-success-muted": [
|
|
210
|
+
withAlpha(green.light[50], "20"),
|
|
211
|
+
withAlpha(green.dark[70], "20")
|
|
212
|
+
],
|
|
213
|
+
"--color-error": [red.light[50], red.dark[70]],
|
|
214
|
+
"--color-error-muted": [
|
|
215
|
+
withAlpha(red.light[50], "20"),
|
|
216
|
+
withAlpha(red.dark[70], "20")
|
|
217
|
+
],
|
|
218
|
+
"--color-warning": [yellow.light[80], yellow.dark[85]],
|
|
219
|
+
"--color-warning-muted": [
|
|
220
|
+
withAlpha(yellow.light[80], "20"),
|
|
221
|
+
withAlpha(yellow.dark[85], "20")
|
|
222
|
+
],
|
|
155
223
|
// Border
|
|
156
224
|
// Softer sage borders (default + emphasized/card) in light mode.
|
|
157
|
-
"--color-border": [
|
|
158
|
-
"--color-border-emphasized": [
|
|
225
|
+
"--color-border": [neutral.light[85], withAlpha(neutral.dark[75], "1a")],
|
|
226
|
+
"--color-border-emphasized": [neutral.light[70], neutral.dark[30]],
|
|
159
227
|
// Effects
|
|
160
|
-
"--color-skeleton": [
|
|
161
|
-
"--color-shadow": [
|
|
162
|
-
|
|
228
|
+
"--color-skeleton": [neutral.light[75], neutral.dark[30]],
|
|
229
|
+
"--color-shadow": [
|
|
230
|
+
withAlpha(neutral.light[20], "1a"),
|
|
231
|
+
withAlpha(neutral.dark[0], "4d")
|
|
232
|
+
],
|
|
233
|
+
"--color-tint-hover": [neutral.light[0], neutral.dark[100]],
|
|
163
234
|
// Categorical — Blue
|
|
164
|
-
"--color-background-blue": [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
235
|
+
"--color-background-blue": [
|
|
236
|
+
withAlpha(blue.light[50], "33"),
|
|
237
|
+
withAlpha(blue.dark[50], "33")
|
|
238
|
+
],
|
|
239
|
+
"--color-border-blue": [blue.light[50], blue.dark[70]],
|
|
240
|
+
"--color-icon-blue": [blue.light[50], blue.dark[70]],
|
|
241
|
+
"--color-text-blue": [blue.light[35], blue.dark[75]],
|
|
168
242
|
// Categorical — Cyan
|
|
169
|
-
"--color-background-cyan": [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
243
|
+
"--color-background-cyan": [
|
|
244
|
+
withAlpha(cyan.light[50], "33"),
|
|
245
|
+
withAlpha(cyan.dark[50], "33")
|
|
246
|
+
],
|
|
247
|
+
"--color-border-cyan": [cyan.light[50], cyan.dark[70]],
|
|
248
|
+
"--color-icon-cyan": [cyan.light[50], cyan.dark[70]],
|
|
249
|
+
"--color-text-cyan": [cyan.light[35], cyan.dark[75]],
|
|
173
250
|
// Categorical — Gray
|
|
174
|
-
"--color-background-gray": [
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
251
|
+
"--color-background-gray": [
|
|
252
|
+
withAlpha(neutral.light[40], "33"),
|
|
253
|
+
withAlpha(neutral.dark[30], "33")
|
|
254
|
+
],
|
|
255
|
+
"--color-border-gray": [neutral.light[40], neutral.dark[40]],
|
|
256
|
+
"--color-icon-gray": [neutral.light[40], neutral.dark[60]],
|
|
257
|
+
"--color-text-gray": [neutral.light[20], neutral.dark[75]],
|
|
178
258
|
// Categorical — Green
|
|
179
|
-
"--color-background-green": [
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
259
|
+
"--color-background-green": [
|
|
260
|
+
withAlpha(green.light[50], "33"),
|
|
261
|
+
withAlpha(green.dark[70], "33")
|
|
262
|
+
],
|
|
263
|
+
"--color-border-green": [green.light[50], green.dark[70]],
|
|
264
|
+
"--color-icon-green": [green.light[50], green.dark[70]],
|
|
265
|
+
"--color-text-green": [green.light[35], green.dark[75]],
|
|
183
266
|
// Categorical — Orange
|
|
184
|
-
"--color-background-orange": [
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
267
|
+
"--color-background-orange": [
|
|
268
|
+
withAlpha(orange.light[50], "33"),
|
|
269
|
+
withAlpha(orange.dark[70], "33")
|
|
270
|
+
],
|
|
271
|
+
"--color-border-orange": [orange.light[50], orange.dark[70]],
|
|
272
|
+
"--color-icon-orange": [orange.light[50], orange.dark[70]],
|
|
273
|
+
"--color-text-orange": [orange.light[35], orange.dark[75]],
|
|
188
274
|
// Categorical — Pink
|
|
189
|
-
"--color-background-pink": [
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
275
|
+
"--color-background-pink": [
|
|
276
|
+
withAlpha(pink.light[50], "33"),
|
|
277
|
+
withAlpha(pink.dark[70], "33")
|
|
278
|
+
],
|
|
279
|
+
"--color-border-pink": [pink.light[50], pink.dark[70]],
|
|
280
|
+
"--color-icon-pink": [pink.light[50], pink.dark[70]],
|
|
281
|
+
"--color-text-pink": [pink.light[35], pink.dark[75]],
|
|
193
282
|
// Categorical — Purple
|
|
194
|
-
"--color-background-purple": [
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
283
|
+
"--color-background-purple": [
|
|
284
|
+
withAlpha(purple.light[50], "33"),
|
|
285
|
+
withAlpha(purple.dark[70], "33")
|
|
286
|
+
],
|
|
287
|
+
"--color-border-purple": [purple.light[50], purple.dark[70]],
|
|
288
|
+
"--color-icon-purple": [purple.light[50], purple.dark[70]],
|
|
289
|
+
"--color-text-purple": [purple.light[35], purple.dark[75]],
|
|
198
290
|
// Categorical — Red
|
|
199
|
-
"--color-background-red": [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
291
|
+
"--color-background-red": [
|
|
292
|
+
withAlpha(red.light[50], "33"),
|
|
293
|
+
withAlpha(red.dark[70], "33")
|
|
294
|
+
],
|
|
295
|
+
"--color-border-red": [red.light[50], red.dark[70]],
|
|
296
|
+
"--color-icon-red": [red.light[50], red.dark[70]],
|
|
297
|
+
"--color-text-red": [red.light[35], red.dark[75]],
|
|
203
298
|
// Categorical — Teal
|
|
204
|
-
"--color-background-teal": [
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
299
|
+
"--color-background-teal": [
|
|
300
|
+
withAlpha(teal.light[50], "33"),
|
|
301
|
+
withAlpha(teal.dark[70], "33")
|
|
302
|
+
],
|
|
303
|
+
"--color-border-teal": [teal.light[50], teal.dark[70]],
|
|
304
|
+
"--color-icon-teal": [teal.light[50], teal.dark[70]],
|
|
305
|
+
"--color-text-teal": [teal.light[35], teal.dark[75]],
|
|
208
306
|
// Categorical — Yellow
|
|
209
|
-
"--color-background-yellow": [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
307
|
+
"--color-background-yellow": [
|
|
308
|
+
withAlpha(yellow.light[80], "33"),
|
|
309
|
+
withAlpha(yellow.dark[85], "33")
|
|
310
|
+
],
|
|
311
|
+
"--color-border-yellow": [yellow.light[80], yellow.dark[85]],
|
|
312
|
+
"--color-icon-yellow": [yellow.light[80], yellow.dark[85]],
|
|
313
|
+
"--color-text-yellow": [yellow.light[65], yellow.dark[90]],
|
|
213
314
|
// =========================================================================
|
|
214
315
|
// Spacing
|
|
215
316
|
// =========================================================================
|
|
@@ -245,14 +346,14 @@ var matchaTheme = (0, import_theme.defineTheme)({
|
|
|
245
346
|
// =========================================================================
|
|
246
347
|
// Shadows
|
|
247
348
|
// =========================================================================
|
|
248
|
-
"--shadow-low":
|
|
249
|
-
"--shadow-med":
|
|
250
|
-
"--shadow-high":
|
|
251
|
-
"--shadow-inset-hover":
|
|
252
|
-
"--shadow-inset-selected":
|
|
253
|
-
"--shadow-inset-success":
|
|
254
|
-
"--shadow-inset-warning":
|
|
255
|
-
"--shadow-inset-error":
|
|
349
|
+
"--shadow-low": `0 2px 4px ${withAlpha(neutral.light[20], "0d")}, 0 4px 8px ${withAlpha(neutral.light[20], "1a")}`,
|
|
350
|
+
"--shadow-med": `0 2px 4px ${withAlpha(neutral.light[20], "0d")}, 0 4px 12px ${withAlpha(neutral.light[20], "1a")}`,
|
|
351
|
+
"--shadow-high": `0 4px 6px ${withAlpha(neutral.light[20], "1a")}, 0 12px 24px ${withAlpha(neutral.light[20], "26")}`,
|
|
352
|
+
"--shadow-inset-hover": `inset 0px 0px 0px 2px ${withAlpha(neutral.light[20], "30")}`,
|
|
353
|
+
"--shadow-inset-selected": `inset 0px 0px 0px 2px ${withAlpha(neutral.light[20], "50")}`,
|
|
354
|
+
"--shadow-inset-success": `inset 0px 0px 0px 2px ${withAlpha(green.light[50], "50")}`,
|
|
355
|
+
"--shadow-inset-warning": `inset 0px 0px 0px 2px ${withAlpha(yellow.light[80], "50")}`,
|
|
356
|
+
"--shadow-inset-error": `inset 0px 0px 0px 2px ${withAlpha(red.light[50], "50")}`
|
|
256
357
|
},
|
|
257
358
|
components: {
|
|
258
359
|
button: {
|