@astryxdesign/theme-neutral 0.5.4 → 0.6.0-canary.0e3f116

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 CHANGED
@@ -40,6 +40,19 @@ theme-local import. Neutral currently uses 21 numbered stops in each light and
40
40
  dark ramp, but that layout is a Neutral decision rather than a requirement for
41
41
  other themes.
42
42
 
43
+ Exact solid endpoints use the same stable palette namespace as the tonal
44
+ families: `neutralPalettes.black` and `neutralPalettes.white`. Theme definitions
45
+ can assign those values directly to semantic tokens without treating a neutral
46
+ ramp endpoint as the named color.
47
+
48
+ ```ts
49
+ import {neutralPalettes} from '@astryxdesign/theme-neutral';
50
+
51
+ const tokens = {
52
+ '--color-background-inverted': [neutralPalettes.black, neutralPalettes.white],
53
+ };
54
+ ```
55
+
43
56
  Neutral opts into a muted dark edge for chromatic families. Stops 5 through 25
44
57
  use 50% of their realized chroma, then recover smoothly to the standard dark
45
58
  recipe at stop 60. Yellow uses a gentler 65% edge multiplier. Light ramps,
package/dist/neutral.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/neutralTheme.ts
4
4
  * Command: astryx theme build src/neutralTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.5.4
6
- * Core: @astryxdesign/core@0.5.4
5
+ * CLI: @astryxdesign/cli@0.6.0
6
+ * Core: @astryxdesign/core@0.6.0
7
7
  */
8
8
 
9
9
  /// <reference path="./neutral.variants.d.ts" />
package/dist/neutral.js CHANGED
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/neutralTheme.ts
4
4
  * Command: astryx theme build src/neutralTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.5.4
6
- * Core: @astryxdesign/core@0.5.4
5
+ * CLI: @astryxdesign/cli@0.6.0
6
+ * Core: @astryxdesign/core@0.6.0
7
7
  */
8
8
 
9
9
  import { neutralIconRegistry } from "./icons.mjs";
@@ -103,29 +103,29 @@ export const neutralTheme = {
103
103
  "--color-background-card": "light-dark(#ffffff, #1b1b1b)",
104
104
  "--color-background-popover": "light-dark(#ffffff, #1b1b1b)",
105
105
  "--color-background-muted": "light-dark(#f1f1f1, #1b1b1b)",
106
- "--color-accent": "light-dark(#262626, #f1f1f1)",
106
+ "--color-accent": "light-dark(#1b1b1b, #f1f1f1)",
107
107
  "--color-accent-muted": "light-dark(#f1f1f1, #262626)",
108
108
  "--color-neutral": "light-dark(#0000000F, #ffffff1A)",
109
109
  "--color-overlay": "light-dark(#00000080, #000000CC)",
110
110
  "--color-overlay-hover": "light-dark(#0000000D, #ffffff0D)",
111
111
  "--color-overlay-pressed": "light-dark(#0000001A, #ffffff1A)",
112
- "--color-text-primary": "light-dark(#111111, #ffffff)",
113
- "--color-text-secondary": "light-dark(#525252, #9e9e9e)",
114
- "--color-text-disabled": "light-dark(#9e9e9e, #525252)",
115
- "--color-text-accent": "light-dark(#262626, #f1f1f1)",
112
+ "--color-text-primary": "light-dark(#000000, #ffffff)",
113
+ "--color-text-secondary": "light-dark(#474747, #9e9e9e)",
114
+ "--color-text-disabled": "light-dark(#919191, #525252)",
115
+ "--color-text-accent": "light-dark(#1b1b1b, #f1f1f1)",
116
116
  "--color-on-dark": "#ffffff",
117
117
  "--color-on-light": "#111111",
118
118
  "--color-on-accent": "light-dark(#ffffff, #111111)",
119
119
  "--color-on-success": "light-dark(#ffffff, #111111)",
120
120
  "--color-on-error": "light-dark(#ffffff, #111111)",
121
121
  "--color-on-warning": "#111111",
122
- "--color-icon-accent": "light-dark(#262626, #f1f1f1)",
123
- "--color-icon-primary": "light-dark(#111111, #ffffff)",
124
- "--color-icon-secondary": "light-dark(#777777, #9e9e9e)",
125
- "--color-icon-disabled": "light-dark(#9e9e9e, #525252)",
126
- "--color-success": "light-dark(#237028, #a4d6a3)",
127
- "--color-error": "light-dark(#9e0015, #ffc4be)",
128
- "--color-warning": "light-dark(#745b00, #f8d36a)",
122
+ "--color-icon-accent": "light-dark(#1b1b1b, #f1f1f1)",
123
+ "--color-icon-primary": "light-dark(#000000, #ffffff)",
124
+ "--color-icon-secondary": "light-dark(#6a6a6a, #9e9e9e)",
125
+ "--color-icon-disabled": "light-dark(#919191, #525252)",
126
+ "--color-success": "light-dark(#00490b, #a4d6a3)",
127
+ "--color-error": "light-dark(#76000c, #ffc4be)",
128
+ "--color-warning": "light-dark(#4b3900, #f8d36a)",
129
129
  "--color-success-muted": "light-dark(#bce0bb, #90ca903D)",
130
130
  "--color-error-muted": "light-dark(#ffc4be, #ff98903D)",
131
131
  "--color-warning-muted": "light-dark(#fae19e, #e2b6233D)",
@@ -136,44 +136,44 @@ export const neutralTheme = {
136
136
  "--color-tint-hover": "light-dark(black, white)",
137
137
  "--color-background-red": "light-dark(#ffc4be, #5b2b28)",
138
138
  "--color-border-red": "light-dark(#ffaea7, #fa6762)",
139
- "--color-icon-red": "light-dark(#8a0011, #ff9890)",
140
- "--color-text-red": "light-dark(#8a0011, #ffaea7)",
139
+ "--color-icon-red": "light-dark(#76000c, #ff9890)",
140
+ "--color-text-red": "light-dark(#76000c, #ffaea7)",
141
141
  "--color-background-orange": "light-dark(#ffc7a1, #503424)",
142
142
  "--color-border-orange": "light-dark(#ffc7a1, #df843f)",
143
- "--color-icon-orange": "light-dark(#733100, #ff9e55)",
144
- "--color-text-orange": "light-dark(#733100, #ffb37e)",
143
+ "--color-icon-orange": "light-dark(#622700, #ff9e55)",
144
+ "--color-text-orange": "light-dark(#622700, #ffb37e)",
145
145
  "--color-background-yellow": "light-dark(#fae19e, #453a1c)",
146
146
  "--color-border-yellow": "light-dark(#e3c36c, #c29900)",
147
- "--color-icon-yellow": "light-dark(#584400, #e2b623)",
148
- "--color-text-yellow": "light-dark(#584400, #eec448)",
147
+ "--color-icon-yellow": "light-dark(#4b3900, #e2b623)",
148
+ "--color-text-yellow": "light-dark(#4b3900, #eec448)",
149
149
  "--color-background-green": "light-dark(#bce0bb, #2b422b)",
150
150
  "--color-border-green": "light-dark(#aad4a9, #6ab26b)",
151
- "--color-icon-green": "light-dark(#0b5615, #90ca90)",
152
- "--color-text-green": "light-dark(#0b5615, #90ca90)",
151
+ "--color-icon-green": "light-dark(#00490b, #90ca90)",
152
+ "--color-text-green": "light-dark(#00490b, #90ca90)",
153
153
  "--color-background-teal": "light-dark(#a9e2d6, #28413c)",
154
154
  "--color-border-teal": "light-dark(#90d7c8, #4fb1a0)",
155
- "--color-icon-teal": "light-dark(#005348, #81c9bb)",
156
- "--color-text-teal": "light-dark(#005348, #90d7c8)",
155
+ "--color-icon-teal": "light-dark(#00463d, #81c9bb)",
156
+ "--color-text-teal": "light-dark(#00463d, #90d7c8)",
157
157
  "--color-background-cyan": "light-dark(#9ae2f4, #274046)",
158
158
  "--color-border-cyan": "light-dark(#85d5e9, #49adc4)",
159
- "--color-icon-cyan": "light-dark(#00505f, #71c7dd)",
160
- "--color-text-cyan": "light-dark(#00505f, #85d5e9)",
159
+ "--color-icon-cyan": "light-dark(#004351, #71c7dd)",
160
+ "--color-text-cyan": "light-dark(#004351, #85d5e9)",
161
161
  "--color-background-blue": "light-dark(#b9d7ff, #253c5a)",
162
162
  "--color-border-blue": "light-dark(#a1caff, #5aa0f8)",
163
- "--color-icon-blue": "light-dark(#00458c, #88bcff)",
164
- "--color-text-blue": "light-dark(#00458c, #a1caff)",
163
+ "--color-icon-blue": "light-dark(#003978, #88bcff)",
164
+ "--color-text-blue": "light-dark(#003978, #a1caff)",
165
165
  "--color-background-purple": "light-dark(#f7d5ff, #4a2f51)",
166
166
  "--color-border-purple": "light-dark(#f3bfff, #d885eb)",
167
- "--color-icon-purple": "light-dark(#6b187c, #e496f6)",
168
- "--color-text-purple": "light-dark(#6b187c, #eaacf8)",
167
+ "--color-icon-purple": "light-dark(#5c0e6c, #e496f6)",
168
+ "--color-text-purple": "light-dark(#5c0e6c, #eaacf8)",
169
169
  "--color-background-pink": "light-dark(#ffc0d7, #572b3d)",
170
170
  "--color-border-pink": "light-dark(#ffc0d7, #fc78b1)",
171
- "--color-icon-pink": "light-dark(#83004b, #fd92bd)",
172
- "--color-text-pink": "light-dark(#83004b, #ffa9ca)",
171
+ "--color-icon-pink": "light-dark(#70003f, #fd92bd)",
172
+ "--color-text-pink": "light-dark(#70003f, #ffa9ca)",
173
173
  "--color-background-gray": "light-dark(#e2e2e2, #303030)",
174
174
  "--color-border-gray": "light-dark(#d4d4d4, #262626)",
175
- "--color-icon-gray": "light-dark(#525252, #9e9e9e)",
176
- "--color-text-gray": "light-dark(#262626, #d4d4d4)",
175
+ "--color-icon-gray": "light-dark(#474747, #9e9e9e)",
176
+ "--color-text-gray": "light-dark(#1b1b1b, #d4d4d4)",
177
177
  "--radius-none": "0px",
178
178
  "--radius-inner": "0.375rem",
179
179
  "--radius-element": "0.625rem",
@@ -380,7 +380,7 @@ export const neutralTheme = {
380
380
  "color": "var(--color-text-gray)"
381
381
  }
382
382
  },
383
- "statusdot": {
383
+ "status-dot": {
384
384
  "variant:success": {
385
385
  "backgroundColor": "var(--astryx-theme-neutral-color-status-fill-success)"
386
386
  },
@@ -468,7 +468,7 @@ export const neutralTheme = {
468
468
  "--color-background-gray": "var(--color-border-emphasized)"
469
469
  }
470
470
  },
471
- "progressbar": {
471
+ "progress-bar": {
472
472
  "base": {
473
473
  "--color-background-muted": "var(--color-border-emphasized)"
474
474
  },
@@ -512,6 +512,46 @@ export const neutralTheme = {
512
512
  "--color-accent": "var(--color-on-light)"
513
513
  }
514
514
  },
515
+ __adaptations: {
516
+ "widthBreakpoints": {
517
+ "sm": 640,
518
+ "md": 768,
519
+ "lg": 1024,
520
+ "xl": 1280,
521
+ "2xl": 1536
522
+ },
523
+ "rules": []
524
+ },
525
+ __axes: {
526
+ "typography": {
527
+ "scale": {
528
+ "base": 14,
529
+ "ratio": 1.2
530
+ },
531
+ "body": {
532
+ "family": "Figtree",
533
+ "fallbacks": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif"
534
+ },
535
+ "heading": {
536
+ "family": "Figtree",
537
+ "fallbacks": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif",
538
+ "weights": {
539
+ "3": "bold",
540
+ "4": "bold"
541
+ }
542
+ },
543
+ "code": {
544
+ "family": "ui-monospace",
545
+ "fallbacks": "\"SF Mono\", Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace"
546
+ }
547
+ },
548
+ "motion": {
549
+ "fast": 125,
550
+ "medium": 300,
551
+ "slow": 700,
552
+ "ratio": 0.75
553
+ }
554
+ },
515
555
  icons: neutralIconRegistry,
516
556
  };
517
557
 
@@ -2,30 +2,15 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/neutralTheme.ts
4
4
  * Command: astryx theme build src/neutralTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.5.4
6
- * Core: @astryxdesign/core@0.5.4
5
+ * CLI: @astryxdesign/cli@0.6.0
6
+ * Core: @astryxdesign/core@0.6.0
7
7
  */
8
8
 
9
9
  // Generated by astryx theme build
10
10
  export {};
11
11
 
12
- declare module '@astryxdesign/core/Heading' {
13
- interface HeadingTypeMap {
14
- 'display-1': true;
15
- 'display-2': true;
16
- 'display-3': true;
17
- }
18
- }
19
-
20
12
  declare module '@astryxdesign/core/Badge' {
21
13
  interface BadgeVariantMap {
22
14
  'gray': true;
23
15
  }
24
16
  }
25
-
26
- declare module '@astryxdesign/core/Avatar' {
27
- interface AvatarStatusDotVariantMap {
28
- 'success': true;
29
- 'error': true;
30
- }
31
- }
@@ -1,6 +1,7 @@
1
1
  export declare const neutralPaletteRefs: {
2
2
  readonly purple: {
3
3
  readonly light: {
4
+ readonly 25: "#5c0e6c";
4
5
  readonly 30: "#6b187c";
5
6
  readonly 70: "#d885eb";
6
7
  readonly 75: "#e496f6";
@@ -15,6 +16,7 @@ export declare const neutralPaletteRefs: {
15
16
  };
16
17
  readonly green: {
17
18
  readonly light: {
19
+ readonly 25: "#00490b";
18
20
  readonly 30: "#0b5615";
19
21
  readonly 40: "#237028";
20
22
  readonly 45: "#2f7d33";
@@ -32,10 +34,13 @@ export declare const neutralPaletteRefs: {
32
34
  readonly light: {
33
35
  readonly 0: "#000000";
34
36
  readonly 5: "#111111";
37
+ readonly 10: "#1b1b1b";
35
38
  readonly 15: "#262626";
39
+ readonly 30: "#474747";
36
40
  readonly 35: "#525252";
37
41
  readonly 45: "#6a6a6a";
38
42
  readonly 50: "#777777";
43
+ readonly 60: "#919191";
39
44
  readonly 65: "#9e9e9e";
40
45
  readonly 85: "#d4d4d4";
41
46
  readonly 90: "#e2e2e2";
@@ -58,6 +63,7 @@ export declare const neutralPaletteRefs: {
58
63
  };
59
64
  readonly orange: {
60
65
  readonly light: {
66
+ readonly 25: "#622700";
61
67
  readonly 30: "#733100";
62
68
  readonly 75: "#ff9e55";
63
69
  readonly 85: "#ffc7a1";
@@ -70,6 +76,7 @@ export declare const neutralPaletteRefs: {
70
76
  };
71
77
  readonly blue: {
72
78
  readonly light: {
79
+ readonly 25: "#003978";
73
80
  readonly 30: "#00458c";
74
81
  readonly 50: "#0074e2";
75
82
  readonly 80: "#a1caff";
@@ -84,6 +91,7 @@ export declare const neutralPaletteRefs: {
84
91
  };
85
92
  readonly red: {
86
93
  readonly light: {
94
+ readonly 25: "#76000c";
87
95
  readonly 30: "#8a0011";
88
96
  readonly 35: "#9e0015";
89
97
  readonly 55: "#de4745";
@@ -102,6 +110,7 @@ export declare const neutralPaletteRefs: {
102
110
  };
103
111
  readonly yellow: {
104
112
  readonly light: {
113
+ readonly 25: "#4b3900";
105
114
  readonly 30: "#584400";
106
115
  readonly 40: "#745b00";
107
116
  readonly 65: "#c29900";
@@ -117,6 +126,7 @@ export declare const neutralPaletteRefs: {
117
126
  };
118
127
  readonly teal: {
119
128
  readonly light: {
129
+ readonly 25: "#00463d";
120
130
  readonly 30: "#005348";
121
131
  readonly 80: "#90d7c8";
122
132
  readonly 85: "#a9e2d6";
@@ -136,11 +146,13 @@ export declare const neutralPaletteRefs: {
136
146
  readonly 85: "#9ae2f4";
137
147
  };
138
148
  readonly light: {
149
+ readonly 25: "#004351";
139
150
  readonly 30: "#00505f";
140
151
  };
141
152
  };
142
153
  readonly pink: {
143
154
  readonly light: {
155
+ readonly 25: "#70003f";
144
156
  readonly 30: "#83004b";
145
157
  readonly 70: "#fc78b1";
146
158
  readonly 85: "#ffc0d7";
@@ -1 +1 @@
1
- {"version":3,"file":"neutralPaletteRefs.generated.d.ts","sourceRoot":"","sources":["../src/neutralPaletteRefs.generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAEX,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"neutralPaletteRefs.generated.d.ts","sourceRoot":"","sources":["../src/neutralPaletteRefs.generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAEX,eAAe,kBAAkB,CAAC"}