@astryxdesign/theme-matcha 0.7.17-canary.gdaeb596 → 0.7.17-canary.gdcdd9fa

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 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';
@@ -121,7 +121,7 @@ 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
126
  "--color-text-secondary": "light-dark(#5a6b2a, #a8bf6a)",
127
127
  "--color-text-disabled": "light-dark(#c0cba9, #5a6440)",
@@ -147,7 +147,7 @@ export const matchaTheme = {
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)",
@@ -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",
@@ -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,gEA6TtB,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
  });
@@ -135,6 +136,7 @@ var matchaSyntax = (0, import_theme.defineSyntaxTheme)({
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,7 +185,10 @@ 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
194
  "--color-text-secondary": [neutral.light[30], neutral.dark[70]],
@@ -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]],
@@ -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
  // =========================================================================
@@ -424,6 +431,7 @@ var matchaTheme = (0, import_theme.defineTheme)({
424
431
  });
425
432
  // Annotate the CommonJS export names for ESM import in node:
426
433
  0 && (module.exports = {
434
+ colorModes,
427
435
  matchaIconRegistry,
428
436
  matchaTheme
429
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"}
package/dist/source.mjs CHANGED
@@ -138,6 +138,7 @@ var matchaSyntax = defineSyntaxTheme({
138
138
  background: [neutral.light[95], neutral.dark[10]]
139
139
  }
140
140
  });
141
+ var colorModes = ["light", "dark"];
141
142
  var matchaTheme = defineTheme({
142
143
  name: "matcha",
143
144
  typography: {
@@ -186,7 +187,10 @@ var matchaTheme = defineTheme({
186
187
  withAlpha(neutral.light[20], "1a"),
187
188
  withAlpha(neutral.dark[75], "1a")
188
189
  ],
189
- "--color-background-muted": [neutral.light[95], neutral.dark[20]],
190
+ // Matcha's dark ramp is a deep gray neutral up to stop 15 and olive from
191
+ // stop 20, so dark surfaces stay at or under 15: the muted fill sits with
192
+ // the page, as it does in light mode.
193
+ "--color-background-muted": [neutral.light[95], neutral.dark[5]],
190
194
  // Text
191
195
  "--color-text-primary": [neutral.light[20], neutral.dark[75]],
192
196
  "--color-text-secondary": [neutral.light[30], neutral.dark[70]],
@@ -216,7 +220,7 @@ var matchaTheme = defineTheme({
216
220
  "--color-icon-disabled": [neutral.light[75], neutral.dark[30]],
217
221
  // Surface variants
218
222
  "--color-background-card": [neutral.light[100], neutral.dark[15]],
219
- "--color-background-popover": [neutral.light[100], neutral.dark[20]],
223
+ "--color-background-popover": [neutral.light[100], neutral.dark[15]],
220
224
  "--color-background-inverted": [neutral.light[20], neutral.dark[75]],
221
225
  // Status / Sentiment
222
226
  "--color-success": [green.light[50], green.dark[70]],
@@ -349,6 +353,8 @@ var matchaTheme = defineTheme({
349
353
  "--radius-element": "12px",
350
354
  "--radius-container": "18px",
351
355
  "--radius-page": "42px",
356
+ // Chat surfaces stay rounder than cards.
357
+ "--radius-chat": "28px",
352
358
  // No explicit --font-size-* overrides — font sizes come from
353
359
  // typography.scale above, keeping the scale the single source of truth.
354
360
  // =========================================================================
@@ -426,6 +432,7 @@ var matchaTheme = defineTheme({
426
432
  icons: matchaIconRegistry
427
433
  });
428
434
  export {
435
+ colorModes,
429
436
  matchaIconRegistry,
430
437
  matchaTheme
431
438
  };
package/dist/theme.css CHANGED
@@ -200,7 +200,7 @@
200
200
  --color-overlay: light-dark(#3e481d80, #3e481dcc);
201
201
  --color-overlay-hover: light-dark(#3e481d0d, #c0cba90d);
202
202
  --color-overlay-pressed: light-dark(#3e481d1a, #c0cba91a);
203
- --color-background-muted: light-dark(#f0f0e0, #3e481d);
203
+ --color-background-muted: light-dark(#f0f0e0, #12140e);
204
204
  --color-text-primary: light-dark(#3e481d, #c0cba9);
205
205
  --color-text-secondary: light-dark(#5a6b2a, #a8bf6a);
206
206
  --color-text-disabled: light-dark(#c0cba9, #5a6440);
@@ -226,7 +226,7 @@
226
226
  --color-icon-secondary: light-dark(#707e46, #94a468);
227
227
  --color-icon-disabled: light-dark(#c0cba9, #5a6440);
228
228
  --color-background-card: light-dark(#ffffff, #1e2016);
229
- --color-background-popover: light-dark(#ffffff, #3e481d);
229
+ --color-background-popover: light-dark(#ffffff, #1e2016);
230
230
  --color-background-inverted: light-dark(#3e481d, #c0cba9);
231
231
  --color-success: light-dark(#4d9900, #6dbf2a);
232
232
  --color-success-muted: light-dark(#4d990020, #6dbf2a20);
@@ -297,6 +297,7 @@
297
297
  --radius-element: 12px;
298
298
  --radius-container: 18px;
299
299
  --radius-page: 42px;
300
+ --radius-chat: 28px;
300
301
  --size-element-sm: 36px;
301
302
  --size-element-md: 40px;
302
303
  --size-element-lg: 44px;
@@ -563,5 +564,21 @@
563
564
  --color-icon-primary: var(--color-on-light);
564
565
  --color-accent: var(--color-on-light);
565
566
  }
567
+
568
+ :where(:scope[data-theme="dark"]) [data-astryx-media-dark-page="light"], :where(:scope:not([data-theme="light"], [data-theme="dark"]):not(:is([data-theme="light"], [data-theme="dark"]) *):where(html[data-astryx-scheme="dark"] *)) [data-astryx-media-dark-page="light"] {
569
+ color-scheme: light;
570
+ --color-text-primary: var(--color-on-light);
571
+ --color-icon-primary: var(--color-on-light);
572
+ --color-accent: var(--color-on-light);
573
+ }
574
+
575
+ @media (prefers-color-scheme: dark) {
576
+ :where(:scope:not([data-theme="light"], [data-theme="dark"]):not(:is([data-theme="light"], [data-theme="dark"]) *):where(html:not([data-astryx-scheme]) *)) [data-astryx-media-dark-page="light"], :where(:is([data-theme="light"], [data-theme="dark"]) :scope:not([data-theme="light"], [data-theme="dark"])) [data-astryx-media-dark-page="light"] {
577
+ color-scheme: light;
578
+ --color-text-primary: var(--color-on-light);
579
+ --color-icon-primary: var(--color-on-light);
580
+ --color-accent: var(--color-on-light);
581
+ }
582
+ }
566
583
  }
567
584
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-matcha",
3
- "version": "0.7.17-canary.gdaeb596",
3
+ "version": "0.7.17-canary.gdcdd9fa",
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.gdaeb596",
80
+ "@astryxdesign/core": "0.7.17-canary.gdcdd9fa",
81
81
  "react": ">=19"
82
82
  },
83
83
  "devDependencies": {
84
- "@astryxdesign/cli": "0.7.17-canary.gdaeb596"
84
+ "@astryxdesign/cli": "0.7.17-canary.gdcdd9fa"
85
85
  },
86
86
  "module": "./dist/source.mjs",
87
87
  "scripts": {
@@ -39,6 +39,9 @@ const matchaSyntax = defineSyntaxTheme({
39
39
  },
40
40
  });
41
41
 
42
+ /** The color modes matcha draws: light and dark. */
43
+ export const colorModes = ['light', 'dark'] as const;
44
+
42
45
  export const matchaTheme = defineTheme({
43
46
  name: 'matcha',
44
47
 
@@ -93,7 +96,10 @@ export const matchaTheme = defineTheme({
93
96
  withAlpha(neutral.light[20], '1a'),
94
97
  withAlpha(neutral.dark[75], '1a'),
95
98
  ],
96
- '--color-background-muted': [neutral.light[95], neutral.dark[20]],
99
+ // Matcha's dark ramp is a deep gray neutral up to stop 15 and olive from
100
+ // stop 20, so dark surfaces stay at or under 15: the muted fill sits with
101
+ // the page, as it does in light mode.
102
+ '--color-background-muted': [neutral.light[95], neutral.dark[5]],
97
103
 
98
104
  // Text
99
105
  '--color-text-primary': [neutral.light[20], neutral.dark[75]],
@@ -128,7 +134,7 @@ export const matchaTheme = defineTheme({
128
134
 
129
135
  // Surface variants
130
136
  '--color-background-card': [neutral.light[100], neutral.dark[15]],
131
- '--color-background-popover': [neutral.light[100], neutral.dark[20]],
137
+ '--color-background-popover': [neutral.light[100], neutral.dark[15]],
132
138
  '--color-background-inverted': [neutral.light[20], neutral.dark[75]],
133
139
 
134
140
  // Status / Sentiment
@@ -276,6 +282,8 @@ export const matchaTheme = defineTheme({
276
282
  '--radius-element': '12px',
277
283
  '--radius-container': '18px',
278
284
  '--radius-page': '42px',
285
+ // Chat surfaces stay rounder than cards.
286
+ '--radius-chat': '28px',
279
287
 
280
288
  // No explicit --font-size-* overrides — font sizes come from
281
289
  // typography.scale above, keeping the scale the single source of truth.
package/src/source.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- export {matchaTheme} from './matchaTheme';
3
+ export {colorModes, matchaTheme} from './matchaTheme';
4
4
  export {matchaIconRegistry} from './icons';