@astryxdesign/theme-matcha 0.7.12-canary.f543ec7 → 0.7.12
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/icons.d.cts +2 -0
- package/dist/matcha.js +1 -1
- package/dist/matchaTheme.d.cts +1 -0
- package/dist/{source.js → source.cjs} +1 -1
- package/dist/source.d.cts +2 -0
- package/dist/source.d.ts +2 -2
- package/dist/source.mjs +1 -1
- package/dist/theme.css +25 -13
- package/package.json +15 -8
- package/src/matchaTheme.ts +1 -1
- package/theme.css.d.ts +3 -0
package/dist/icons.d.cts
ADDED
package/dist/matcha.js
CHANGED
|
@@ -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(#
|
|
126
|
+
"--color-text-secondary": "light-dark(#5a6b2a, #94a468)",
|
|
127
127
|
"--color-text-disabled": "light-dark(#c0cba9, #5a6440)",
|
|
128
128
|
"--color-text-accent": "light-dark(#3e481d, #c0cba9)",
|
|
129
129
|
"--color-on-dark": "#ffffff",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const matchaTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
|
|
@@ -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[
|
|
189
|
+
"--color-text-secondary": [neutral.light[30], neutral.dark[60]],
|
|
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],
|
package/dist/source.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { matchaTheme } from './matchaTheme';
|
|
2
|
-
export { matchaIconRegistry } from './icons';
|
|
1
|
+
export { matchaTheme } from './matchaTheme.js';
|
|
2
|
+
export { matchaIconRegistry } from './icons.js';
|
|
3
3
|
//# sourceMappingURL=source.d.ts.map
|
package/dist/source.mjs
CHANGED
|
@@ -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[
|
|
192
|
+
"--color-text-secondary": [neutral.light[30], neutral.dark[60]],
|
|
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],
|
package/dist/theme.css
CHANGED
|
@@ -86,18 +86,30 @@
|
|
|
86
86
|
|
|
87
87
|
@scope ([data-astryx-theme="matcha"]) to ([data-astryx-theme]) {
|
|
88
88
|
:scope {
|
|
89
|
-
--font-size-4xs: 0.3125rem;
|
|
90
|
-
--font-size-
|
|
91
|
-
--font-size-
|
|
92
|
-
--font-size-
|
|
93
|
-
--font-size-
|
|
94
|
-
--font-size-
|
|
95
|
-
--font-size-
|
|
96
|
-
--font-size-
|
|
97
|
-
--font-size-
|
|
98
|
-
--font-size-
|
|
99
|
-
--font-size-
|
|
100
|
-
--font-size-
|
|
89
|
+
--_scaled-font-size-4xs: min(calc(0.3125rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
|
|
90
|
+
--font-size-4xs: var(--_scaled-font-size-4xs);
|
|
91
|
+
--_scaled-font-size-3xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
|
|
92
|
+
--font-size-3xs: var(--_scaled-font-size-3xs);
|
|
93
|
+
--_scaled-font-size-2xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
|
|
94
|
+
--font-size-2xs: var(--_scaled-font-size-2xs);
|
|
95
|
+
--_scaled-font-size-xs: min(calc(0.625rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
|
|
96
|
+
--font-size-xs: var(--_scaled-font-size-xs);
|
|
97
|
+
--_scaled-font-size-sm: min(calc(0.8125rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
|
|
98
|
+
--font-size-sm: var(--_scaled-font-size-sm);
|
|
99
|
+
--_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
|
|
100
|
+
--font-size-base: var(--_scaled-font-size-base);
|
|
101
|
+
--_scaled-font-size-lg: min(calc(1.25rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
|
|
102
|
+
--font-size-lg: var(--_scaled-font-size-lg);
|
|
103
|
+
--_scaled-font-size-xl: min(calc(1.5625rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
|
|
104
|
+
--font-size-xl: var(--_scaled-font-size-xl);
|
|
105
|
+
--_scaled-font-size-2xl: min(calc(1.9375rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
|
|
106
|
+
--font-size-2xl: var(--_scaled-font-size-2xl);
|
|
107
|
+
--_scaled-font-size-3xl: min(calc(2.4375rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
|
|
108
|
+
--font-size-3xl: var(--_scaled-font-size-3xl);
|
|
109
|
+
--_scaled-font-size-4xl: min(calc(3.0625rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
|
|
110
|
+
--font-size-4xl: var(--_scaled-font-size-4xl);
|
|
111
|
+
--_scaled-font-size-5xl: calc(3.8125rem * var(--_dynamic-type-large-title, 1));
|
|
112
|
+
--font-size-5xl: var(--_scaled-font-size-5xl);
|
|
101
113
|
--text-heading-1-size: var(--font-size-2xl);
|
|
102
114
|
--text-heading-1-weight: var(--font-weight-semibold);
|
|
103
115
|
--text-heading-1-leading: 1.4194;
|
|
@@ -191,7 +203,7 @@
|
|
|
191
203
|
--color-overlay-pressed: light-dark(#3e481d1a, #c0cba91a);
|
|
192
204
|
--color-background-muted: light-dark(#f0f0e0, #3e481d);
|
|
193
205
|
--color-text-primary: light-dark(#3e481d, #c0cba9);
|
|
194
|
-
--color-text-secondary: light-dark(#
|
|
206
|
+
--color-text-secondary: light-dark(#5a6b2a, #94a468);
|
|
195
207
|
--color-text-disabled: light-dark(#c0cba9, #5a6440);
|
|
196
208
|
--color-text-accent: light-dark(#3e481d, #c0cba9);
|
|
197
209
|
--color-on-dark: #ffffff;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-matcha",
|
|
3
|
-
"version": "0.7.12
|
|
3
|
+
"version": "0.7.12",
|
|
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",
|
|
@@ -24,13 +24,19 @@
|
|
|
24
24
|
"sideEffects": [
|
|
25
25
|
"**/*.css"
|
|
26
26
|
],
|
|
27
|
-
"
|
|
27
|
+
"type": "module",
|
|
28
|
+
"main": "./dist/source.cjs",
|
|
28
29
|
"types": "./dist/source.d.ts",
|
|
29
30
|
"exports": {
|
|
30
31
|
".": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/source.d.ts",
|
|
34
|
+
"default": "./dist/source.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/source.d.cts",
|
|
38
|
+
"default": "./dist/source.cjs"
|
|
39
|
+
}
|
|
34
40
|
},
|
|
35
41
|
"./built": {
|
|
36
42
|
"types": "./dist/matcha.d.ts",
|
|
@@ -51,6 +57,7 @@
|
|
|
51
57
|
"src",
|
|
52
58
|
"fonts.css",
|
|
53
59
|
"fonts.css.d.ts",
|
|
60
|
+
"theme.css.d.ts",
|
|
54
61
|
"palette.config.json",
|
|
55
62
|
"!**/*.test.*",
|
|
56
63
|
"!**/*.spec.js",
|
|
@@ -70,15 +77,15 @@
|
|
|
70
77
|
"lucide-react": "^1.18.0"
|
|
71
78
|
},
|
|
72
79
|
"peerDependencies": {
|
|
73
|
-
"@astryxdesign/core": "0.7.12
|
|
80
|
+
"@astryxdesign/core": "0.7.12",
|
|
74
81
|
"react": ">=19"
|
|
75
82
|
},
|
|
76
83
|
"devDependencies": {
|
|
77
|
-
"@astryxdesign/cli": "0.7.12
|
|
84
|
+
"@astryxdesign/cli": "0.7.12"
|
|
78
85
|
},
|
|
79
86
|
"module": "./dist/source.mjs",
|
|
80
87
|
"scripts": {
|
|
81
88
|
"api:report": "node ../../../scripts/api-report/cli.mjs --package .",
|
|
82
|
-
"build": "node ../../../scripts/clean-dist.mjs && node ../../../scripts/generate-matcha-palette-refs.mjs --check && astryx theme build src/matchaTheme.ts -o dist/theme.css --icons-specifier ./icons.mjs && tsup && tsc --project tsconfig.build.json && node ../../../scripts/check-fully-specified.mjs"
|
|
89
|
+
"build": "node ../../../scripts/clean-dist.mjs && node ../../../scripts/generate-matcha-palette-refs.mjs --check && astryx theme build src/matchaTheme.ts -o dist/theme.css --icons-specifier ./icons.mjs && tsup && tsc --project tsconfig.build.json && node ../../../scripts/add-declaration-extensions.mjs && node ../../../scripts/emit-commonjs-declarations.mjs dist/source.d.ts && node ../../../scripts/check-fully-specified.mjs"
|
|
83
90
|
}
|
|
84
91
|
}
|
package/src/matchaTheme.ts
CHANGED
|
@@ -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[
|
|
100
|
+
'--color-text-secondary': [neutral.light[30], neutral.dark[60]],
|
|
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],
|
package/theme.css.d.ts
ADDED