@astryxdesign/theme-matcha 0.7.17-canary.gffd1fc0 → 0.7.17

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.
Files changed (55) hide show
  1. package/README.md +6 -10
  2. package/dist/matcha.js +50 -15
  3. package/dist/matchaPaletteRefs.generated.d.ts +7 -4
  4. package/dist/matchaPaletteRefs.generated.d.ts.map +1 -1
  5. package/dist/matchaTheme.d.cts +2 -0
  6. package/dist/matchaTheme.d.ts +2 -0
  7. package/dist/matchaTheme.d.ts.map +1 -1
  8. package/dist/source.cjs +66 -22
  9. package/dist/source.d.cts +1 -1
  10. package/dist/source.d.ts +1 -1
  11. package/dist/source.d.ts.map +1 -1
  12. package/dist/source.mjs +65 -22
  13. package/dist/theme.css +84 -15
  14. package/fonts/dm-sans-latin-400-normal.woff2 +0 -0
  15. package/fonts/dm-sans-latin-500-normal.woff2 +0 -0
  16. package/fonts/dm-sans-latin-600-normal.woff2 +0 -0
  17. package/fonts/dm-sans-latin-700-normal.woff2 +0 -0
  18. package/fonts/dm-sans-latin-ext-400-normal.woff2 +0 -0
  19. package/fonts/dm-sans-latin-ext-500-normal.woff2 +0 -0
  20. package/fonts/dm-sans-latin-ext-600-normal.woff2 +0 -0
  21. package/fonts/dm-sans-latin-ext-700-normal.woff2 +0 -0
  22. package/fonts/dm-sans.LICENSE.txt +93 -0
  23. package/fonts/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
  24. package/fonts/jetbrains-mono-cyrillic-500-normal.woff2 +0 -0
  25. package/fonts/jetbrains-mono-cyrillic-600-normal.woff2 +0 -0
  26. package/fonts/jetbrains-mono-cyrillic-700-normal.woff2 +0 -0
  27. package/fonts/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
  28. package/fonts/jetbrains-mono-cyrillic-ext-500-normal.woff2 +0 -0
  29. package/fonts/jetbrains-mono-cyrillic-ext-600-normal.woff2 +0 -0
  30. package/fonts/jetbrains-mono-cyrillic-ext-700-normal.woff2 +0 -0
  31. package/fonts/jetbrains-mono-greek-400-normal.woff2 +0 -0
  32. package/fonts/jetbrains-mono-greek-500-normal.woff2 +0 -0
  33. package/fonts/jetbrains-mono-greek-600-normal.woff2 +0 -0
  34. package/fonts/jetbrains-mono-greek-700-normal.woff2 +0 -0
  35. package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
  36. package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
  37. package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
  38. package/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
  39. package/fonts/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  40. package/fonts/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
  41. package/fonts/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
  42. package/fonts/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
  43. package/fonts/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
  44. package/fonts/jetbrains-mono-vietnamese-500-normal.woff2 +0 -0
  45. package/fonts/jetbrains-mono-vietnamese-600-normal.woff2 +0 -0
  46. package/fonts/jetbrains-mono-vietnamese-700-normal.woff2 +0 -0
  47. package/fonts/jetbrains-mono.LICENSE.txt +93 -0
  48. package/fonts/playwrite-us-trad-latin-400-normal.woff2 +0 -0
  49. package/fonts/playwrite-us-trad.LICENSE.txt +93 -0
  50. package/fonts.css +382 -1
  51. package/package.json +4 -3
  52. package/src/matchaPaletteRefs.generated.ts +8 -8
  53. package/src/matchaTheme.ts +58 -14
  54. package/src/source.ts +1 -1
  55. package/LICENSE +0 -21
package/README.md CHANGED
@@ -71,16 +71,12 @@ This theme uses custom typefaces:
71
71
  | Heading | Playwrite US Trad |
72
72
  | Code | JetBrains Mono |
73
73
 
74
- **These fonts must be loaded separately.** The theme references them by name but does not bundle the font files.
74
+ **Load them with the theme's font stylesheet.** It loads each font from font files shipped in this package (in `fonts/`, with their licenses), each with `font-display: fallback`, so a page never waits on a network; served from the same machine or a fast connection, the text first draws in the theme's fonts (a face that takes more than about 3 s leaves that page in the fallback font) (an offline machine, a sandbox, CI):
75
75
 
76
- Add this to your HTML `<head>`:
77
-
78
- ```html
79
- <link rel="preconnect" href="https://fonts.googleapis.com" />
80
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
81
- <link
82
- rel="stylesheet"
83
- href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Playwrite+US+Trad:wght@100..400&display=swap" />
76
+ ```css
77
+ @import '@astryxdesign/theme-matcha/fonts.css';
84
78
  ```
85
79
 
86
- Without this, the theme falls back to system fonts.
80
+ To use Google Fonts' CDN instead, add its stylesheet to your page in place of the import: `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Playwrite+US+Trad&display=swap" />`.
81
+
82
+ Without it, the theme falls back to system fonts.
package/dist/matcha.js CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { matchaIconRegistry } from "./icons.mjs";
10
10
  /**
11
- * matcha theme — built by `pnpm exec astryx theme build`
11
+ * matcha theme — built by `astryx theme build`
12
12
  * Import the CSS file alongside this module:
13
13
  *
14
14
  * import { matchaTheme } from './matcha';
@@ -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(#707e46, #707e46)",
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(#707e46, #94a468)",
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(#3a7c6b, #6ccaaa)",
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)",
@@ -121,9 +121,9 @@ export const matchaTheme = {
121
121
  "--color-overlay": "light-dark(#3e481d80, #3e481dcc)",
122
122
  "--color-overlay-hover": "light-dark(#3e481d0d, #c0cba90d)",
123
123
  "--color-overlay-pressed": "light-dark(#3e481d1a, #c0cba91a)",
124
- "--color-background-muted": "light-dark(#f0f0e0, #3e481d)",
124
+ "--color-background-muted": "light-dark(#f0f0e0, #12140e)",
125
125
  "--color-text-primary": "light-dark(#3e481d, #c0cba9)",
126
- "--color-text-secondary": "light-dark(#5a6b2a, #94a468)",
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,15 +139,15 @@ 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(#3d7a00, #80d43a)",
143
- "--color-on-warning-muted": "light-dark(#836700, #ffe08b)",
144
- "--color-on-error-muted": "light-dark(#cc0000, #ff7a7a)",
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)",
148
148
  "--color-icon-disabled": "light-dark(#c0cba9, #5a6440)",
149
149
  "--color-background-card": "light-dark(#ffffff, #1e2016)",
150
- "--color-background-popover": "light-dark(#ffffff, #3e481d)",
150
+ "--color-background-popover": "light-dark(#ffffff, #1e2016)",
151
151
  "--color-background-inverted": "light-dark(#3e481d, #c0cba9)",
152
152
  "--color-success": "light-dark(#4d9900, #6dbf2a)",
153
153
  "--color-success-muted": "light-dark(#4d990020, #6dbf2a20)",
@@ -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(#3d7a00, #80d43a)",
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(#a06018, #e0a04a)",
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(#a03a5a, #f08aaa)",
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(#cc0000, #ff7a7a)",
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(#c19800, #ffe08b)",
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",
@@ -218,6 +218,7 @@ export const matchaTheme = {
218
218
  "--radius-element": "12px",
219
219
  "--radius-container": "18px",
220
220
  "--radius-page": "42px",
221
+ "--radius-chat": "28px",
221
222
  "--size-element-sm": "36px",
222
223
  "--size-element-md": "40px",
223
224
  "--size-element-lg": "44px",
@@ -335,6 +336,40 @@ export const matchaTheme = {
335
336
  "base": {
336
337
  "borderRadius": "var(--radius-page)",
337
338
  "padding": "var(--spacing-3)"
339
+ },
340
+ "variant:blue": {
341
+ "--color-text-secondary": "light-dark(#3e481d, #a8bf6a)"
342
+ },
343
+ "variant:cyan": {
344
+ "--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
345
+ },
346
+ "variant:gray": {
347
+ "--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
348
+ },
349
+ "variant:green": {
350
+ "--color-text-secondary": "light-dark(#4c5924, #c0cba9)"
351
+ },
352
+ "variant:orange": {
353
+ "--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
354
+ },
355
+ "variant:pink": {
356
+ "--color-text-secondary": "light-dark(#4c5924, #a8bf6a)"
357
+ },
358
+ "variant:purple": {
359
+ "--color-text-secondary": "light-dark(#3e481d, #a8bf6a)"
360
+ },
361
+ "variant:red": {
362
+ "--color-text-secondary": "light-dark(#3e481d, #a8bf6a)"
363
+ },
364
+ "variant:teal": {
365
+ "--color-text-secondary": "light-dark(#3e481d, #c0cba9)"
366
+ },
367
+ "variant:yellow": {
368
+ "--color-text-secondary": "light-dark(#4c5924, #c0cba9)"
369
+ },
370
+ "variant:muted": {
371
+ "--color-text-primary": "light-dark(#3e481d, #cdd8b9)",
372
+ "--color-text-secondary": "light-dark(#5a6b2a, #cdd8b9)"
338
373
  }
339
374
  },
340
375
  "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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCpB,CAAC;AAEX,eAAe,iBAAiB,CAAC"}
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,3 @@
1
+ /** The color modes matcha draws: light and dark. */
2
+ export declare const colorModes: readonly ["light", "dark"];
1
3
  export declare const matchaTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
@@ -1,2 +1,4 @@
1
+ /** The color modes matcha draws: light and dark. */
2
+ export declare const colorModes: readonly ["light", "dark"];
1
3
  export declare const matchaTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
2
4
  //# sourceMappingURL=matchaTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matchaTheme.d.ts","sourceRoot":"","sources":["../src/matchaTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,WAAW,gEAyRtB,CAAC"}
1
+ {"version":3,"file":"matchaTheme.d.ts","sourceRoot":"","sources":["../src/matchaTheme.ts"],"names":[],"mappings":"AAyCA,oDAAoD;AACpD,eAAO,MAAM,UAAU,4BAA6B,CAAC;AAErD,eAAO,MAAM,WAAW,gEAkUtB,CAAC"}
package/dist/source.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/source.ts
21
21
  var source_exports = {};
22
22
  __export(source_exports, {
23
+ colorModes: () => colorModes,
23
24
  matchaIconRegistry: () => matchaIconRegistry,
24
25
  matchaTheme: () => matchaTheme
25
26
  });
@@ -70,15 +71,15 @@ var matchaIconRegistry = {
70
71
  // src/matchaPaletteRefs.generated.ts
71
72
  var matchaPaletteRefs = {
72
73
  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" }
74
+ light: { 0: "#000000", 20: "#3e481d", 25: "#4c5924", 30: "#5a6b2a", 40: "#707e46", 70: "#b7c29e", 75: "#c0cba9", 85: "#dce3ce", 95: "#f0f0e0", 100: "#ffffff" },
75
+ 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
76
  },
76
77
  teal: {
77
- light: { 35: "#245546", 50: "#2e6b5a", 55: "#3a7c6b" },
78
+ light: { 35: "#245546", 50: "#2e6b5a" },
78
79
  dark: { 70: "#5ab898", 75: "#6ccaaa" }
79
80
  },
80
81
  yellow: {
81
- light: { 45: "#836700", 65: "#c19800", 80: "#f2c000" },
82
+ light: { 40: "#755b00", 45: "#836700", 80: "#f2c000" },
82
83
  dark: { 70: "#d1a500", 75: "#e0b318", 85: "#f6d066", 90: "#ffe08b" }
83
84
  },
84
85
  blue: {
@@ -90,19 +91,19 @@ var matchaPaletteRefs = {
90
91
  dark: { 70: "#b08ed4", 75: "#c0a0e0" }
91
92
  },
92
93
  pink: {
93
- light: { 30: "#8c3a3a", 35: "#a03a5a", 50: "#c44a70" },
94
+ light: { 30: "#8c3a3a", 50: "#c44a70" },
94
95
  dark: { 65: "#d47a7a", 70: "#e07a9a", 75: "#f08aaa" }
95
96
  },
96
97
  orange: {
97
- light: { 30: "#7c5e3a", 35: "#a06018", 50: "#c47620" },
98
+ light: { 25: "#6a5031", 30: "#7c5e3a", 50: "#c47620" },
98
99
  dark: { 70: "#d4903a", 75: "#e0a04a" }
99
100
  },
100
101
  green: {
101
- light: { 35: "#3d7a00", 50: "#4d9900" },
102
+ light: { 30: "#346a00", 35: "#3d7a00", 50: "#4d9900" },
102
103
  dark: { 70: "#6dbf2a", 75: "#80d43a" }
103
104
  },
104
105
  red: {
105
- light: { 35: "#cc0000", 50: "#fd0000" },
106
+ light: { 30: "#b10000", 35: "#cc0000", 50: "#fd0000" },
106
107
  dark: { 70: "#ff5c5c", 75: "#ff7a7a" }
107
108
  },
108
109
  cyan: {
@@ -119,22 +120,23 @@ var matchaSyntax = (0, import_theme.defineSyntaxTheme)({
119
120
  tokens: {
120
121
  keyword: [neutral.light[30], neutral.dark[70]],
121
122
  string: [teal.light[50], teal.dark[75]],
122
- comment: [neutral.light[40], neutral.dark[40]],
123
+ comment: [neutral.light[30], neutral.dark[45]],
123
124
  number: [yellow.light[45], yellow.dark[75]],
124
125
  function: [blue.light[50], blue.dark[70]],
125
126
  type: [purple.light[50], purple.dark[70]],
126
127
  variable: [neutral.light[20], neutral.dark[75]],
127
- operator: [neutral.light[40], neutral.dark[60]],
128
+ operator: [neutral.light[30], neutral.dark[60]],
128
129
  constant: [yellow.light[45], yellow.dark[75]],
129
130
  tag: [pink.light[30], pink.dark[65]],
130
131
  attribute: [orange.light[30], yellow.dark[70]],
131
- property: [teal.light[55], teal.dark[75]],
132
+ property: [teal.light[50], teal.dark[75]],
132
133
  // Punctuation uses dedicated neutral stops that maintain WCAG AA against
133
134
  // the syntax background in both modes (issue 5386).
134
135
  punctuation: [neutral.light[30], neutral.dark[65]],
135
136
  background: [neutral.light[95], neutral.dark[10]]
136
137
  }
137
138
  });
139
+ var colorModes = ["light", "dark"];
138
140
  var matchaTheme = (0, import_theme.defineTheme)({
139
141
  name: "matcha",
140
142
  typography: {
@@ -183,10 +185,13 @@ var matchaTheme = (0, import_theme.defineTheme)({
183
185
  withAlpha(neutral.light[20], "1a"),
184
186
  withAlpha(neutral.dark[75], "1a")
185
187
  ],
186
- "--color-background-muted": [neutral.light[95], neutral.dark[20]],
188
+ // Matcha's dark ramp is a deep gray neutral up to stop 15 and olive from
189
+ // stop 20, so dark surfaces stay at or under 15: the muted fill sits with
190
+ // the page, as it does in light mode.
191
+ "--color-background-muted": [neutral.light[95], neutral.dark[5]],
187
192
  // Text
188
193
  "--color-text-primary": [neutral.light[20], neutral.dark[75]],
189
- "--color-text-secondary": [neutral.light[30], neutral.dark[60]],
194
+ "--color-text-secondary": [neutral.light[30], neutral.dark[70]],
190
195
  "--color-text-disabled": [neutral.light[75], neutral.dark[30]],
191
196
  "--color-text-accent": [neutral.light[20], neutral.dark[75]],
192
197
  "--color-on-dark": neutral.light[100],
@@ -203,9 +208,9 @@ var matchaTheme = (0, import_theme.defineTheme)({
203
208
  "--color-text-warning": [yellow.light[45], yellow.dark[90]],
204
209
  "--color-text-error": [red.light[35], red.dark[75]],
205
210
  "--color-on-info-muted": [blue.light[35], blue.dark[75]],
206
- "--color-on-success-muted": [green.light[35], green.dark[75]],
207
- "--color-on-warning-muted": [yellow.light[45], yellow.dark[90]],
208
- "--color-on-error-muted": [red.light[35], red.dark[75]],
211
+ "--color-on-success-muted": [green.light[30], green.dark[75]],
212
+ "--color-on-warning-muted": [yellow.light[40], yellow.dark[90]],
213
+ "--color-on-error-muted": [red.light[30], red.dark[75]],
209
214
  // Icon
210
215
  "--color-icon-accent": [neutral.light[20], neutral.dark[75]],
211
216
  "--color-icon-primary": [neutral.light[20], neutral.dark[75]],
@@ -213,7 +218,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
213
218
  "--color-icon-disabled": [neutral.light[75], neutral.dark[30]],
214
219
  // Surface variants
215
220
  "--color-background-card": [neutral.light[100], neutral.dark[15]],
216
- "--color-background-popover": [neutral.light[100], neutral.dark[20]],
221
+ "--color-background-popover": [neutral.light[100], neutral.dark[15]],
217
222
  "--color-background-inverted": [neutral.light[20], neutral.dark[75]],
218
223
  // Status / Sentiment
219
224
  "--color-success": [green.light[50], green.dark[70]],
@@ -273,7 +278,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
273
278
  ],
274
279
  "--color-border-green": [green.light[50], green.dark[70]],
275
280
  "--color-icon-green": [green.light[50], green.dark[70]],
276
- "--color-text-green": [green.light[35], green.dark[75]],
281
+ "--color-text-green": [green.light[30], green.dark[75]],
277
282
  // Categorical — Orange
278
283
  "--color-background-orange": [
279
284
  withAlpha(orange.light[50], "33"),
@@ -281,7 +286,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
281
286
  ],
282
287
  "--color-border-orange": [orange.light[50], orange.dark[70]],
283
288
  "--color-icon-orange": [orange.light[50], orange.dark[70]],
284
- "--color-text-orange": [orange.light[35], orange.dark[75]],
289
+ "--color-text-orange": [orange.light[25], orange.dark[75]],
285
290
  // Categorical — Pink
286
291
  "--color-background-pink": [
287
292
  withAlpha(pink.light[50], "33"),
@@ -289,7 +294,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
289
294
  ],
290
295
  "--color-border-pink": [pink.light[50], pink.dark[70]],
291
296
  "--color-icon-pink": [pink.light[50], pink.dark[70]],
292
- "--color-text-pink": [pink.light[35], pink.dark[75]],
297
+ "--color-text-pink": [pink.light[30], pink.dark[75]],
293
298
  // Categorical — Purple
294
299
  "--color-background-purple": [
295
300
  withAlpha(purple.light[50], "33"),
@@ -305,7 +310,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
305
310
  ],
306
311
  "--color-border-red": [red.light[50], red.dark[70]],
307
312
  "--color-icon-red": [red.light[50], red.dark[70]],
308
- "--color-text-red": [red.light[35], red.dark[75]],
313
+ "--color-text-red": [red.light[30], red.dark[75]],
309
314
  // Categorical — Teal
310
315
  "--color-background-teal": [
311
316
  withAlpha(teal.light[50], "33"),
@@ -321,7 +326,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
321
326
  ],
322
327
  "--color-border-yellow": [yellow.light[80], yellow.dark[85]],
323
328
  "--color-icon-yellow": [yellow.light[80], yellow.dark[85]],
324
- "--color-text-yellow": [yellow.light[65], yellow.dark[90]],
329
+ "--color-text-yellow": [yellow.light[40], yellow.dark[90]],
325
330
  // =========================================================================
326
331
  // Spacing
327
332
  // =========================================================================
@@ -346,6 +351,8 @@ var matchaTheme = (0, import_theme.defineTheme)({
346
351
  "--radius-element": "12px",
347
352
  "--radius-container": "18px",
348
353
  "--radius-page": "42px",
354
+ // Chat surfaces stay rounder than cards.
355
+ "--radius-chat": "28px",
349
356
  // No explicit --font-size-* overrides — font sizes come from
350
357
  // typography.scale above, keeping the scale the single source of truth.
351
358
  // =========================================================================
@@ -372,10 +379,46 @@ var matchaTheme = (0, import_theme.defineTheme)({
372
379
  borderRadius: "var(--radius-full)"
373
380
  }
374
381
  },
382
+ // Secondary text on a coloured or muted card steps to the nearest neutral
383
+ // stop that reads at 4.5:1 on that fill.
375
384
  card: {
376
385
  base: {
377
386
  borderRadius: "var(--radius-page)",
378
387
  padding: "var(--spacing-3)"
388
+ },
389
+ "variant:blue": {
390
+ "--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
391
+ },
392
+ "variant:cyan": {
393
+ "--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
394
+ },
395
+ "variant:gray": {
396
+ "--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
397
+ },
398
+ "variant:green": {
399
+ "--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`
400
+ },
401
+ "variant:orange": {
402
+ "--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
403
+ },
404
+ "variant:pink": {
405
+ "--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[70]})`
406
+ },
407
+ "variant:purple": {
408
+ "--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
409
+ },
410
+ "variant:red": {
411
+ "--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[70]})`
412
+ },
413
+ "variant:teal": {
414
+ "--color-text-secondary": `light-dark(${neutral.light[20]}, ${neutral.dark[75]})`
415
+ },
416
+ "variant:yellow": {
417
+ "--color-text-secondary": `light-dark(${neutral.light[25]}, ${neutral.dark[75]})`
418
+ },
419
+ "variant:muted": {
420
+ "--color-text-primary": `light-dark(${neutral.light[20]}, ${neutral.dark[80]})`,
421
+ "--color-text-secondary": `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`
379
422
  }
380
423
  },
381
424
  section: {
@@ -388,6 +431,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
388
431
  });
389
432
  // Annotate the CommonJS export names for ESM import in node:
390
433
  0 && (module.exports = {
434
+ colorModes,
391
435
  matchaIconRegistry,
392
436
  matchaTheme
393
437
  });
package/dist/source.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- export { matchaTheme } from './matchaTheme.cjs';
1
+ export { colorModes, matchaTheme } from './matchaTheme.cjs';
2
2
  export { matchaIconRegistry } from './icons.cjs';
package/dist/source.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { matchaTheme } from './matchaTheme.js';
1
+ export { colorModes, matchaTheme } from './matchaTheme.js';
2
2
  export { matchaIconRegistry } from './icons.js';
3
3
  //# sourceMappingURL=source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC"}