@astryxdesign/theme-neutral 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/neutral.js +2 -1
- package/dist/neutralTheme.d.cts +2 -0
- package/dist/neutralTheme.d.ts +2 -0
- package/dist/neutralTheme.d.ts.map +1 -1
- package/dist/source.cjs +5 -0
- package/dist/source.d.cts +1 -1
- package/dist/source.d.ts +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.mjs +4 -0
- package/dist/theme.css +17 -0
- package/package.json +3 -3
- package/src/neutralTheme.ts +5 -0
- package/src/source.ts +1 -1
package/dist/neutral.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { neutralIconRegistry } from "./icons.mjs";
|
|
10
10
|
/**
|
|
11
|
-
* neutral theme — built by `
|
|
11
|
+
* neutral theme — built by `astryx theme build`
|
|
12
12
|
* Import the CSS file alongside this module:
|
|
13
13
|
*
|
|
14
14
|
* import { neutralTheme } from './neutral';
|
|
@@ -205,6 +205,7 @@ export const neutralTheme = {
|
|
|
205
205
|
"--radius-element": "0.625rem",
|
|
206
206
|
"--radius-container": "0.75rem",
|
|
207
207
|
"--radius-page": "1.75rem",
|
|
208
|
+
"--radius-chat": "28px",
|
|
208
209
|
"--radius-full": "9999px",
|
|
209
210
|
"--shadow-low": "0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%))",
|
|
210
211
|
"--shadow-med": "0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%))",
|
package/dist/neutralTheme.d.cts
CHANGED
package/dist/neutralTheme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neutralTheme.d.ts","sourceRoot":"","sources":["../src/neutralTheme.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"neutralTheme.d.ts","sourceRoot":"","sources":["../src/neutralTheme.ts"],"names":[],"mappings":"AAyCA,qDAAqD;AACrD,eAAO,MAAM,UAAU,4BAA6B,CAAC;AAErD,eAAO,MAAM,YAAY,gEAmZvB,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
|
neutralIconRegistry: () => neutralIconRegistry,
|
|
24
25
|
neutralPalettes: () => neutralPalettes,
|
|
25
26
|
neutralTheme: () => neutralTheme
|
|
@@ -140,6 +141,7 @@ var neutralLocalTokens = {
|
|
|
140
141
|
// portable --color-* roles and no longer reads it.
|
|
141
142
|
"--astryx-theme-neutral-color-status-fill-accent": ["#0074e2", "#6d9cfe"]
|
|
142
143
|
};
|
|
144
|
+
var colorModes = ["light", "dark"];
|
|
143
145
|
var neutralTheme = (0, import_theme.defineTheme)({
|
|
144
146
|
name: "neutral",
|
|
145
147
|
localTokens: neutralLocalTokens,
|
|
@@ -305,6 +307,8 @@ var neutralTheme = (0, import_theme.defineTheme)({
|
|
|
305
307
|
"--radius-element": "0.625rem",
|
|
306
308
|
"--radius-container": "0.75rem",
|
|
307
309
|
"--radius-page": "1.75rem",
|
|
310
|
+
// Chat surfaces stay rounder than cards.
|
|
311
|
+
"--radius-chat": "28px",
|
|
308
312
|
"--radius-full": "9999px",
|
|
309
313
|
// =========================================================================
|
|
310
314
|
// Shadows
|
|
@@ -997,6 +1001,7 @@ var neutralPalettes = {
|
|
|
997
1001
|
};
|
|
998
1002
|
// Annotate the CommonJS export names for ESM import in node:
|
|
999
1003
|
0 && (module.exports = {
|
|
1004
|
+
colorModes,
|
|
1000
1005
|
neutralIconRegistry,
|
|
1001
1006
|
neutralPalettes,
|
|
1002
1007
|
neutralTheme
|
package/dist/source.d.cts
CHANGED
package/dist/source.d.ts
CHANGED
package/dist/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC"}
|
package/dist/source.mjs
CHANGED
|
@@ -145,6 +145,7 @@ var neutralLocalTokens = {
|
|
|
145
145
|
// portable --color-* roles and no longer reads it.
|
|
146
146
|
"--astryx-theme-neutral-color-status-fill-accent": ["#0074e2", "#6d9cfe"]
|
|
147
147
|
};
|
|
148
|
+
var colorModes = ["light", "dark"];
|
|
148
149
|
var neutralTheme = defineTheme({
|
|
149
150
|
name: "neutral",
|
|
150
151
|
localTokens: neutralLocalTokens,
|
|
@@ -310,6 +311,8 @@ var neutralTheme = defineTheme({
|
|
|
310
311
|
"--radius-element": "0.625rem",
|
|
311
312
|
"--radius-container": "0.75rem",
|
|
312
313
|
"--radius-page": "1.75rem",
|
|
314
|
+
// Chat surfaces stay rounder than cards.
|
|
315
|
+
"--radius-chat": "28px",
|
|
313
316
|
"--radius-full": "9999px",
|
|
314
317
|
// =========================================================================
|
|
315
318
|
// Shadows
|
|
@@ -1001,6 +1004,7 @@ var neutralPalettes = {
|
|
|
1001
1004
|
...palette
|
|
1002
1005
|
};
|
|
1003
1006
|
export {
|
|
1007
|
+
colorModes,
|
|
1004
1008
|
neutralIconRegistry,
|
|
1005
1009
|
neutralPalettes,
|
|
1006
1010
|
neutralTheme
|
package/dist/theme.css
CHANGED
|
@@ -284,6 +284,7 @@
|
|
|
284
284
|
--radius-element: 0.625rem;
|
|
285
285
|
--radius-container: 0.75rem;
|
|
286
286
|
--radius-page: 1.75rem;
|
|
287
|
+
--radius-chat: 28px;
|
|
287
288
|
--radius-full: 9999px;
|
|
288
289
|
--shadow-low: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%));
|
|
289
290
|
--shadow-med: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%));
|
|
@@ -719,5 +720,21 @@
|
|
|
719
720
|
--color-icon-primary: var(--color-on-light);
|
|
720
721
|
--color-accent: var(--color-on-light);
|
|
721
722
|
}
|
|
723
|
+
|
|
724
|
+
: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"] {
|
|
725
|
+
color-scheme: light;
|
|
726
|
+
--color-text-primary: var(--color-on-light);
|
|
727
|
+
--color-icon-primary: var(--color-on-light);
|
|
728
|
+
--color-accent: var(--color-on-light);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
@media (prefers-color-scheme: dark) {
|
|
732
|
+
: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"] {
|
|
733
|
+
color-scheme: light;
|
|
734
|
+
--color-text-primary: var(--color-on-light);
|
|
735
|
+
--color-icon-primary: var(--color-on-light);
|
|
736
|
+
--color-accent: var(--color-on-light);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
722
739
|
}
|
|
723
740
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-neutral",
|
|
3
|
-
"version": "0.7.17-canary.
|
|
3
|
+
"version": "0.7.17-canary.gdcdd9fa",
|
|
4
4
|
"displayName": "Neutral Theme",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Restrained warm grays. Minimal and quiet, so the content stays the focus.",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"lucide-react": "^1.66.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@astryxdesign/core": "0.7.17-canary.
|
|
81
|
+
"@astryxdesign/core": "0.7.17-canary.gdcdd9fa",
|
|
82
82
|
"react": ">=19"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@astryxdesign/cli": "0.7.17-canary.
|
|
85
|
+
"@astryxdesign/cli": "0.7.17-canary.gdcdd9fa"
|
|
86
86
|
},
|
|
87
87
|
"module": "./dist/source.mjs",
|
|
88
88
|
"scripts": {
|
package/src/neutralTheme.ts
CHANGED
|
@@ -39,6 +39,9 @@ const neutralLocalTokens: Record<string, TokenValue> = {
|
|
|
39
39
|
'--astryx-theme-neutral-color-status-fill-accent': ['#0074e2', '#6d9cfe'],
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
+
/** The color modes neutral draws: light and dark. */
|
|
43
|
+
export const colorModes = ['light', 'dark'] as const;
|
|
44
|
+
|
|
42
45
|
export const neutralTheme = defineTheme({
|
|
43
46
|
name: 'neutral',
|
|
44
47
|
localTokens: neutralLocalTokens,
|
|
@@ -233,6 +236,8 @@ export const neutralTheme = defineTheme({
|
|
|
233
236
|
'--radius-element': '0.625rem',
|
|
234
237
|
'--radius-container': '0.75rem',
|
|
235
238
|
'--radius-page': '1.75rem',
|
|
239
|
+
// Chat surfaces stay rounder than cards.
|
|
240
|
+
'--radius-chat': '28px',
|
|
236
241
|
'--radius-full': '9999px',
|
|
237
242
|
|
|
238
243
|
// =========================================================================
|
package/src/source.ts
CHANGED