@astryxdesign/theme-neutral 0.5.2 → 0.5.3
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 +37 -9
- package/dist/neutral.d.ts +2 -2
- package/dist/neutral.js +174 -101
- package/dist/neutral.variants.d.ts +17 -2
- package/dist/neutralPaletteRefs.generated.d.ts +156 -0
- package/dist/neutralPaletteRefs.generated.d.ts.map +1 -0
- package/dist/neutralPalettes.d.ts +3 -0
- package/dist/neutralPalettes.d.ts.map +1 -0
- package/dist/neutralPalettes.generated.d.ts +494 -0
- package/dist/neutralPalettes.generated.d.ts.map +1 -0
- package/dist/neutralPalettes.test.d.ts +2 -0
- package/dist/neutralPalettes.test.d.ts.map +1 -0
- package/dist/neutralTheme.d.ts.map +1 -1
- package/dist/neutralTheme.test.d.ts +2 -0
- package/dist/neutralTheme.test.d.ts.map +1 -0
- package/dist/source.js +252 -386
- package/dist/source.mjs +256 -387
- package/dist/theme.css +163 -100
- package/package.json +5 -4
- package/palette.config.json +122 -0
- package/src/neutralPaletteRefs.generated.ts +50 -0
- package/src/neutralPalettes.generated.receipt.json +624 -0
- package/src/neutralPalettes.generated.ts +498 -0
- package/src/neutralPalettes.test.ts +67 -0
- package/src/neutralPalettes.ts +7 -0
- package/src/neutralTheme.test.ts +373 -0
- package/src/neutralTheme.ts +240 -424
package/README.md
CHANGED
|
@@ -23,14 +23,42 @@ function App() {
|
|
|
23
23
|
|
|
24
24
|
### Import paths
|
|
25
25
|
|
|
26
|
-
| Path
|
|
27
|
-
|
|
|
28
|
-
| `@astryxdesign/theme-neutral` | Source build (StyleX compilation via `@astryxdesign/build`)
|
|
29
|
-
| `@astryxdesign/theme-neutral/built` | Pre-built dist (Tailwind, plain CSS, or no build step)
|
|
30
|
-
| `@astryxdesign/theme-neutral/theme.css` | Pre-built CSS file (import in your stylesheet)
|
|
26
|
+
| Path | Use case |
|
|
27
|
+
| --------------------------------------- | ----------------------------------------------------------- |
|
|
28
|
+
| `@astryxdesign/theme-neutral` | Source build (StyleX compilation via `@astryxdesign/build`) |
|
|
29
|
+
| `@astryxdesign/theme-neutral/built` | Pre-built dist (Tailwind, plain CSS, or no build step) |
|
|
30
|
+
| `@astryxdesign/theme-neutral/theme.css` | Pre-built CSS file (import in your stylesheet) |
|
|
31
31
|
|
|
32
32
|
If you're using `@astryxdesign/build` for StyleX source compilation, import from the bare path. Otherwise, use `/built`.
|
|
33
33
|
|
|
34
|
+
## Approved palette
|
|
35
|
+
|
|
36
|
+
The repository keeps Neutral's generation request in `palette.config.json`, the
|
|
37
|
+
exact `astryx-oklch-v1` output in `src/neutralPalettes.generated.ts`, and its
|
|
38
|
+
generation receipt beside that file. `src/neutralPalettes.ts` provides the stable
|
|
39
|
+
theme-local import. Neutral currently uses 21 numbered stops in each light and
|
|
40
|
+
dark ramp, but that layout is a Neutral decision rather than a requirement for
|
|
41
|
+
other themes.
|
|
42
|
+
|
|
43
|
+
Neutral opts into a muted dark edge for chromatic families. Stops 5 through 25
|
|
44
|
+
use 50% of their realized chroma, then recover smoothly to the standard dark
|
|
45
|
+
recipe at stop 60. Yellow uses a gentler 65% edge multiplier. Light ramps,
|
|
46
|
+
neutral ramps, and stops 60 through 100 remain unchanged.
|
|
47
|
+
|
|
48
|
+
Neutral is the reference implementation for palette-aware theme templates.
|
|
49
|
+
Templates may follow its ownership, review, and alignment workflow without
|
|
50
|
+
copying its colors or stop layout.
|
|
51
|
+
|
|
52
|
+
Use semantic theme tokens in components. Neutral's theme source maps those roles
|
|
53
|
+
to named palette stops, while the prebuilt theme and CSS contain their resolved
|
|
54
|
+
values. Changing the generated palette must include the regenerated receipt,
|
|
55
|
+
token diff, tests, and visual review.
|
|
56
|
+
|
|
57
|
+
The committed request and receipt preserve the generation inputs and provenance.
|
|
58
|
+
CLI regeneration is not yet a supported release workflow; until that tooling
|
|
59
|
+
ships, treat the generated module and receipt as reviewed artifacts rather than
|
|
60
|
+
editing them by hand.
|
|
61
|
+
|
|
34
62
|
### CSS import
|
|
35
63
|
|
|
36
64
|
Add the theme CSS to your stylesheet:
|
|
@@ -45,8 +73,8 @@ This theme uses system fonts; no external font loading is required.
|
|
|
45
73
|
|
|
46
74
|
## Related Packages
|
|
47
75
|
|
|
48
|
-
| Package | Description
|
|
49
|
-
| ------------------------------------------------------------------------------------ |
|
|
50
|
-
| [`@astryxdesign/core`](https://github.com/facebook/astryx/tree/main/packages/core) | Core components and theme system
|
|
51
|
-
| [`@astryxdesign/build`](https://github.com/facebook/astryx/tree/main/packages/build) | Build plugins for StyleX source builds
|
|
76
|
+
| Package | Description |
|
|
77
|
+
| ------------------------------------------------------------------------------------ | ----------------------------------------- |
|
|
78
|
+
| [`@astryxdesign/core`](https://github.com/facebook/astryx/tree/main/packages/core) | Core components and theme system |
|
|
79
|
+
| [`@astryxdesign/build`](https://github.com/facebook/astryx/tree/main/packages/build) | Build plugins for StyleX source builds |
|
|
52
80
|
| [`@astryxdesign/cli`](https://github.com/facebook/astryx/tree/main/packages/cli) | CLI tooling including `astryx docs theme` |
|
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.
|
|
6
|
-
* Core: @astryxdesign/core@0.5.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.5.3
|
|
6
|
+
* Core: @astryxdesign/core@0.5.3
|
|
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.
|
|
6
|
-
* Core: @astryxdesign/core@0.5.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.5.3
|
|
6
|
+
* Core: @astryxdesign/core@0.5.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { neutralIconRegistry } from "./icons.mjs";
|
|
@@ -84,96 +84,96 @@ export const neutralTheme = {
|
|
|
84
84
|
"--font-family-body": "Figtree, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif",
|
|
85
85
|
"--font-family-heading": "Figtree, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif",
|
|
86
86
|
"--font-family-code": "ui-monospace, \"SF Mono\", Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace",
|
|
87
|
-
"--color-syntax-keyword": "light-dark(#
|
|
88
|
-
"--color-syntax-string": "light-dark(#
|
|
89
|
-
"--color-syntax-comment": "light-dark(#
|
|
90
|
-
"--color-syntax-number": "light-dark(#
|
|
91
|
-
"--color-syntax-function": "light-dark(#00458c, #
|
|
92
|
-
"--color-syntax-type": "light-dark(#
|
|
93
|
-
"--color-syntax-variable": "light-dark(#
|
|
94
|
-
"--color-syntax-operator": "light-dark(#
|
|
95
|
-
"--color-syntax-constant": "light-dark(#
|
|
96
|
-
"--color-syntax-tag": "light-dark(#
|
|
97
|
-
"--color-syntax-attribute": "light-dark(#584400, #
|
|
98
|
-
"--color-syntax-property": "light-dark(#005348, #
|
|
99
|
-
"--color-syntax-punctuation": "light-dark(#
|
|
100
|
-
"--color-syntax-background": "light-dark(#
|
|
87
|
+
"--color-syntax-keyword": "light-dark(#6b187c, #efa8ff)",
|
|
88
|
+
"--color-syntax-string": "light-dark(#0b5615, #a4d6a3)",
|
|
89
|
+
"--color-syntax-comment": "light-dark(#6a6a6a, #9e9e9e)",
|
|
90
|
+
"--color-syntax-number": "light-dark(#733100, #ffb37e)",
|
|
91
|
+
"--color-syntax-function": "light-dark(#00458c, #a1caff)",
|
|
92
|
+
"--color-syntax-type": "light-dark(#6b187c, #efa8ff)",
|
|
93
|
+
"--color-syntax-variable": "light-dark(#111111, #e2e2e2)",
|
|
94
|
+
"--color-syntax-operator": "light-dark(#6a6a6a, #9e9e9e)",
|
|
95
|
+
"--color-syntax-constant": "light-dark(#733100, #ffb37e)",
|
|
96
|
+
"--color-syntax-tag": "light-dark(#8a0011, #ffaea7)",
|
|
97
|
+
"--color-syntax-attribute": "light-dark(#584400, #eec448)",
|
|
98
|
+
"--color-syntax-property": "light-dark(#005348, #90d7c8)",
|
|
99
|
+
"--color-syntax-punctuation": "light-dark(#6a6a6a, #9e9e9e)",
|
|
100
|
+
"--color-syntax-background": "light-dark(#ffffff, #111111)",
|
|
101
101
|
"--color-background-surface": "light-dark(#ffffff, #262626)",
|
|
102
102
|
"--color-background-body": "light-dark(#f1f1f1, #1b1b1b)",
|
|
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, #
|
|
106
|
+
"--color-accent": "light-dark(#262626, #f1f1f1)",
|
|
107
107
|
"--color-accent-muted": "light-dark(#f1f1f1, #262626)",
|
|
108
|
-
"--color-neutral": "light-dark(#0000000F, #
|
|
108
|
+
"--color-neutral": "light-dark(#0000000F, #ffffff1A)",
|
|
109
109
|
"--color-overlay": "light-dark(#00000080, #000000CC)",
|
|
110
|
-
"--color-overlay-hover": "light-dark(#0000000D, #
|
|
111
|
-
"--color-overlay-pressed": "light-dark(#0000001A, #
|
|
112
|
-
"--color-text-primary": "light-dark(#
|
|
113
|
-
"--color-text-secondary": "light-dark(#525252, #
|
|
114
|
-
"--color-text-disabled": "light-dark(#
|
|
115
|
-
"--color-text-accent": "light-dark(#262626, #
|
|
110
|
+
"--color-overlay-hover": "light-dark(#0000000D, #ffffff0D)",
|
|
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)",
|
|
116
116
|
"--color-on-dark": "#ffffff",
|
|
117
|
-
"--color-on-light": "#
|
|
118
|
-
"--color-on-accent": "light-dark(#ffffff, #
|
|
119
|
-
"--color-on-success": "light-dark(#ffffff, #
|
|
120
|
-
"--color-on-error": "light-dark(#ffffff, #
|
|
121
|
-
"--color-on-warning": "#
|
|
122
|
-
"--color-icon-accent": "light-dark(#262626, #
|
|
123
|
-
"--color-icon-primary": "light-dark(#
|
|
124
|
-
"--color-icon-secondary": "light-dark(#
|
|
125
|
-
"--color-icon-disabled": "light-dark(#
|
|
126
|
-
"--color-success": "light-dark(#
|
|
127
|
-
"--color-error": "light-dark(#
|
|
128
|
-
"--color-warning": "light-dark(#745b00, #
|
|
129
|
-
"--color-success-muted": "light-dark(#
|
|
130
|
-
"--color-error-muted": "light-dark(#
|
|
131
|
-
"--color-warning-muted": "light-dark(#
|
|
132
|
-
"--color-border": "light-dark(#00000014, #
|
|
117
|
+
"--color-on-light": "#111111",
|
|
118
|
+
"--color-on-accent": "light-dark(#ffffff, #111111)",
|
|
119
|
+
"--color-on-success": "light-dark(#ffffff, #111111)",
|
|
120
|
+
"--color-on-error": "light-dark(#ffffff, #111111)",
|
|
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)",
|
|
129
|
+
"--color-success-muted": "light-dark(#bce0bb, #90ca903D)",
|
|
130
|
+
"--color-error-muted": "light-dark(#ffc4be, #ff98903D)",
|
|
131
|
+
"--color-warning-muted": "light-dark(#fae19e, #e2b6233D)",
|
|
132
|
+
"--color-border": "light-dark(#00000014, #ffffff1A)",
|
|
133
133
|
"--color-border-emphasized": "light-dark(#d4d4d4, #525252)",
|
|
134
|
-
"--color-skeleton": "light-dark(#
|
|
134
|
+
"--color-skeleton": "light-dark(#f1f1f1, #525252)",
|
|
135
135
|
"--color-shadow": "light-dark(#0000001A, #0000004D)",
|
|
136
136
|
"--color-tint-hover": "light-dark(black, white)",
|
|
137
|
-
"--color-background-red": "light-dark(#
|
|
138
|
-
"--color-border-red": "light-dark(#
|
|
139
|
-
"--color-icon-red": "light-dark(#
|
|
140
|
-
"--color-text-red": "light-dark(#
|
|
141
|
-
"--color-background-orange": "light-dark(#
|
|
142
|
-
"--color-border-orange": "light-dark(#
|
|
143
|
-
"--color-icon-orange": "light-dark(#
|
|
144
|
-
"--color-text-orange": "light-dark(#
|
|
145
|
-
"--color-background-yellow": "light-dark(#
|
|
146
|
-
"--color-border-yellow": "light-dark(#
|
|
147
|
-
"--color-icon-yellow": "light-dark(#584400, #
|
|
148
|
-
"--color-text-yellow": "light-dark(#584400, #
|
|
149
|
-
"--color-background-green": "light-dark(#
|
|
150
|
-
"--color-border-green": "light-dark(#
|
|
151
|
-
"--color-icon-green": "light-dark(#
|
|
152
|
-
"--color-text-green": "light-dark(#
|
|
153
|
-
"--color-background-teal": "light-dark(#
|
|
154
|
-
"--color-border-teal": "light-dark(#
|
|
155
|
-
"--color-icon-teal": "light-dark(#005348, #
|
|
156
|
-
"--color-text-teal": "light-dark(#005348, #
|
|
157
|
-
"--color-background-cyan": "light-dark(#
|
|
158
|
-
"--color-border-cyan": "light-dark(#
|
|
159
|
-
"--color-icon-cyan": "light-dark(#00505f, #
|
|
160
|
-
"--color-text-cyan": "light-dark(#00505f, #
|
|
161
|
-
"--color-background-blue": "light-dark(#
|
|
162
|
-
"--color-border-blue": "light-dark(#
|
|
163
|
-
"--color-icon-blue": "light-dark(#00458c, #
|
|
164
|
-
"--color-text-blue": "light-dark(#00458c, #
|
|
165
|
-
"--color-background-purple": "light-dark(#
|
|
166
|
-
"--color-border-purple": "light-dark(#
|
|
167
|
-
"--color-icon-purple": "light-dark(#
|
|
168
|
-
"--color-text-purple": "light-dark(#
|
|
169
|
-
"--color-background-pink": "light-dark(#
|
|
170
|
-
"--color-border-pink": "light-dark(#
|
|
171
|
-
"--color-icon-pink": "light-dark(#83004b, #
|
|
172
|
-
"--color-text-pink": "light-dark(#83004b, #
|
|
173
|
-
"--color-background-gray": "light-dark(#
|
|
137
|
+
"--color-background-red": "light-dark(#ffc4be, #5b2b28)",
|
|
138
|
+
"--color-border-red": "light-dark(#ffaea7, #fa6762)",
|
|
139
|
+
"--color-icon-red": "light-dark(#8a0011, #ff9890)",
|
|
140
|
+
"--color-text-red": "light-dark(#8a0011, #ffaea7)",
|
|
141
|
+
"--color-background-orange": "light-dark(#ffc7a1, #503424)",
|
|
142
|
+
"--color-border-orange": "light-dark(#ffc7a1, #df843f)",
|
|
143
|
+
"--color-icon-orange": "light-dark(#733100, #ff9e55)",
|
|
144
|
+
"--color-text-orange": "light-dark(#733100, #ffb37e)",
|
|
145
|
+
"--color-background-yellow": "light-dark(#fae19e, #453a1c)",
|
|
146
|
+
"--color-border-yellow": "light-dark(#e3c36c, #c29900)",
|
|
147
|
+
"--color-icon-yellow": "light-dark(#584400, #e2b623)",
|
|
148
|
+
"--color-text-yellow": "light-dark(#584400, #eec448)",
|
|
149
|
+
"--color-background-green": "light-dark(#bce0bb, #2b422b)",
|
|
150
|
+
"--color-border-green": "light-dark(#aad4a9, #6ab26b)",
|
|
151
|
+
"--color-icon-green": "light-dark(#0b5615, #90ca90)",
|
|
152
|
+
"--color-text-green": "light-dark(#0b5615, #90ca90)",
|
|
153
|
+
"--color-background-teal": "light-dark(#a9e2d6, #28413c)",
|
|
154
|
+
"--color-border-teal": "light-dark(#90d7c8, #4fb1a0)",
|
|
155
|
+
"--color-icon-teal": "light-dark(#005348, #81c9bb)",
|
|
156
|
+
"--color-text-teal": "light-dark(#005348, #90d7c8)",
|
|
157
|
+
"--color-background-cyan": "light-dark(#9ae2f4, #274046)",
|
|
158
|
+
"--color-border-cyan": "light-dark(#85d5e9, #49adc4)",
|
|
159
|
+
"--color-icon-cyan": "light-dark(#00505f, #71c7dd)",
|
|
160
|
+
"--color-text-cyan": "light-dark(#00505f, #85d5e9)",
|
|
161
|
+
"--color-background-blue": "light-dark(#b9d7ff, #253c5a)",
|
|
162
|
+
"--color-border-blue": "light-dark(#a1caff, #5aa0f8)",
|
|
163
|
+
"--color-icon-blue": "light-dark(#00458c, #88bcff)",
|
|
164
|
+
"--color-text-blue": "light-dark(#00458c, #a1caff)",
|
|
165
|
+
"--color-background-purple": "light-dark(#f7d5ff, #4a2f51)",
|
|
166
|
+
"--color-border-purple": "light-dark(#f3bfff, #d885eb)",
|
|
167
|
+
"--color-icon-purple": "light-dark(#6b187c, #e496f6)",
|
|
168
|
+
"--color-text-purple": "light-dark(#6b187c, #eaacf8)",
|
|
169
|
+
"--color-background-pink": "light-dark(#ffc0d7, #572b3d)",
|
|
170
|
+
"--color-border-pink": "light-dark(#ffc0d7, #fc78b1)",
|
|
171
|
+
"--color-icon-pink": "light-dark(#83004b, #fd92bd)",
|
|
172
|
+
"--color-text-pink": "light-dark(#83004b, #ffa9ca)",
|
|
173
|
+
"--color-background-gray": "light-dark(#e2e2e2, #303030)",
|
|
174
174
|
"--color-border-gray": "light-dark(#d4d4d4, #262626)",
|
|
175
|
-
"--color-icon-gray": "light-dark(#525252, #
|
|
176
|
-
"--color-text-gray": "light-dark(#262626, #
|
|
175
|
+
"--color-icon-gray": "light-dark(#525252, #9e9e9e)",
|
|
176
|
+
"--color-text-gray": "light-dark(#262626, #d4d4d4)",
|
|
177
177
|
"--radius-none": "0px",
|
|
178
178
|
"--radius-inner": "0.375rem",
|
|
179
179
|
"--radius-element": "0.625rem",
|
|
@@ -185,10 +185,35 @@ export const neutralTheme = {
|
|
|
185
185
|
"--shadow-high": "0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%))",
|
|
186
186
|
"--shadow-inset-hover": "inset 0px 0px 0px 2px #0074e24D",
|
|
187
187
|
"--shadow-inset-selected": "inset 0px 0px 0px 2px #0074e280",
|
|
188
|
-
"--shadow-inset-success": "inset 0px 0px 0px 2px #
|
|
189
|
-
"--shadow-inset-warning": "inset 0px 0px 0px 2px #
|
|
190
|
-
"--shadow-inset-error": "inset 0px 0px 0px 2px #
|
|
188
|
+
"--shadow-inset-success": "inset 0px 0px 0px 2px #2f7d334D",
|
|
189
|
+
"--shadow-inset-warning": "inset 0px 0px 0px 2px #f8d36a4D",
|
|
190
|
+
"--shadow-inset-error": "inset 0px 0px 0px 2px #de47454D"
|
|
191
191
|
},
|
|
192
|
+
localTokens: {
|
|
193
|
+
"--astryx-theme-neutral-color-status-fill-accent": "light-dark(#0074e2, #6d9cfe)",
|
|
194
|
+
"--astryx-theme-neutral-color-status-fill-success": "light-dark(#198100, #64af4c)",
|
|
195
|
+
"--astryx-theme-neutral-color-status-fill-warning": "#ffce2f",
|
|
196
|
+
"--astryx-theme-neutral-color-status-fill-error": "light-dark(#c9303a, #ff705d)",
|
|
197
|
+
"--astryx-theme-neutral-color-status-muted-accent": "light-dark(#b9d7ff, #88bcff3D)",
|
|
198
|
+
"--astryx-theme-neutral-color-on-tint-neutral": "light-dark(#fafafa4D, #0a0a0a4D)",
|
|
199
|
+
"--astryx-theme-neutral-color-on-tint-overlay-hover": "light-dark(#fafafa1A, #0a0a0a1A)",
|
|
200
|
+
"--astryx-theme-neutral-color-on-tint-overlay-pressed": "light-dark(#fafafa33, #0a0a0a33)",
|
|
201
|
+
"--astryx-theme-neutral-color-destructive-overlay-hover": "light-dark(#ff7f770D, #ee736c0D)",
|
|
202
|
+
"--astryx-theme-neutral-color-destructive-overlay-pressed": "light-dark(#ff7f771A, #ee736c1A)"
|
|
203
|
+
},
|
|
204
|
+
__localTokenOwners: {
|
|
205
|
+
"--astryx-theme-neutral-color-status-fill-accent": "neutral",
|
|
206
|
+
"--astryx-theme-neutral-color-status-fill-success": "neutral",
|
|
207
|
+
"--astryx-theme-neutral-color-status-fill-warning": "neutral",
|
|
208
|
+
"--astryx-theme-neutral-color-status-fill-error": "neutral",
|
|
209
|
+
"--astryx-theme-neutral-color-status-muted-accent": "neutral",
|
|
210
|
+
"--astryx-theme-neutral-color-on-tint-neutral": "neutral",
|
|
211
|
+
"--astryx-theme-neutral-color-on-tint-overlay-hover": "neutral",
|
|
212
|
+
"--astryx-theme-neutral-color-on-tint-overlay-pressed": "neutral",
|
|
213
|
+
"--astryx-theme-neutral-color-destructive-overlay-hover": "neutral",
|
|
214
|
+
"--astryx-theme-neutral-color-destructive-overlay-pressed": "neutral"
|
|
215
|
+
},
|
|
216
|
+
__localTokenLineage: ["neutral"],
|
|
192
217
|
components: {
|
|
193
218
|
"heading": {
|
|
194
219
|
"level:1": {
|
|
@@ -288,29 +313,31 @@ export const neutralTheme = {
|
|
|
288
313
|
"button": {
|
|
289
314
|
"variant:destructive": {
|
|
290
315
|
"backgroundColor": "var(--color-error-muted)",
|
|
291
|
-
"color": "var(--color-error)"
|
|
316
|
+
"color": "var(--color-error)",
|
|
317
|
+
"--color-overlay-hover": "var(--astryx-theme-neutral-color-destructive-overlay-hover)",
|
|
318
|
+
"--color-overlay-pressed": "var(--astryx-theme-neutral-color-destructive-overlay-pressed)"
|
|
292
319
|
}
|
|
293
320
|
},
|
|
294
321
|
"badge": {
|
|
295
322
|
"variant:info": {
|
|
296
|
-
"backgroundColor": "
|
|
297
|
-
"color": "
|
|
323
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-accent)",
|
|
324
|
+
"color": "var(--color-on-accent)"
|
|
298
325
|
},
|
|
299
326
|
"variant:neutral": {
|
|
300
327
|
"backgroundColor": "var(--color-background-gray)",
|
|
301
328
|
"color": "var(--color-text-gray)"
|
|
302
329
|
},
|
|
303
330
|
"variant:success": {
|
|
304
|
-
"backgroundColor": "
|
|
305
|
-
"color": "
|
|
331
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-success)",
|
|
332
|
+
"color": "var(--color-on-success)"
|
|
306
333
|
},
|
|
307
334
|
"variant:warning": {
|
|
308
|
-
"backgroundColor": "
|
|
309
|
-
"color": "
|
|
335
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-warning)",
|
|
336
|
+
"color": "var(--color-on-warning)"
|
|
310
337
|
},
|
|
311
338
|
"variant:error": {
|
|
312
|
-
"backgroundColor": "
|
|
313
|
-
"color": "
|
|
339
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-error)",
|
|
340
|
+
"color": "var(--color-on-error)"
|
|
314
341
|
},
|
|
315
342
|
"variant:red": {
|
|
316
343
|
"backgroundColor": "var(--color-background-red)",
|
|
@@ -355,21 +382,53 @@ export const neutralTheme = {
|
|
|
355
382
|
},
|
|
356
383
|
"statusdot": {
|
|
357
384
|
"variant:success": {
|
|
358
|
-
"backgroundColor": "
|
|
385
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-success)"
|
|
359
386
|
},
|
|
360
387
|
"variant:warning": {
|
|
361
|
-
"backgroundColor": "
|
|
388
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-warning)"
|
|
362
389
|
},
|
|
363
390
|
"variant:error": {
|
|
364
|
-
"backgroundColor": "
|
|
391
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-error)"
|
|
365
392
|
},
|
|
366
393
|
"variant:accent": {
|
|
367
|
-
"backgroundColor": "
|
|
394
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-accent)"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"avatar-status-dot": {
|
|
398
|
+
"variant:success": {
|
|
399
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-success)"
|
|
400
|
+
},
|
|
401
|
+
"variant:error": {
|
|
402
|
+
"backgroundColor": "var(--astryx-theme-neutral-color-status-fill-error)"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"segmented-control": {
|
|
406
|
+
"base": {
|
|
407
|
+
"padding": "var(--spacing-1)"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"segmented-control-item": {
|
|
411
|
+
"size:sm": {
|
|
412
|
+
"height": "calc(var(--size-element-sm) - 8px)"
|
|
413
|
+
},
|
|
414
|
+
"size:md": {
|
|
415
|
+
"height": "calc(var(--size-element-md) - 8px)"
|
|
416
|
+
},
|
|
417
|
+
"size:lg": {
|
|
418
|
+
"height": "calc(var(--size-element-lg) - 8px)"
|
|
419
|
+
},
|
|
420
|
+
"selected": {
|
|
421
|
+
"boxShadow": "none"
|
|
368
422
|
}
|
|
369
423
|
},
|
|
370
424
|
"banner": {
|
|
425
|
+
"base": {
|
|
426
|
+
"--color-neutral": "var(--astryx-theme-neutral-color-on-tint-neutral)",
|
|
427
|
+
"--color-overlay-hover": "var(--astryx-theme-neutral-color-on-tint-overlay-hover)",
|
|
428
|
+
"--color-overlay-pressed": "var(--astryx-theme-neutral-color-on-tint-overlay-pressed)"
|
|
429
|
+
},
|
|
371
430
|
"status:info": {
|
|
372
|
-
"--color-accent-muted": "var(--color-
|
|
431
|
+
"--color-accent-muted": "var(--astryx-theme-neutral-color-status-muted-accent)",
|
|
373
432
|
"--color-text-primary": "var(--color-text-blue)",
|
|
374
433
|
"--color-text-secondary": "var(--color-text-blue)",
|
|
375
434
|
"--color-accent": "var(--color-text-blue)"
|
|
@@ -390,6 +449,20 @@ export const neutralTheme = {
|
|
|
390
449
|
"--color-error": "var(--color-text-red)"
|
|
391
450
|
}
|
|
392
451
|
},
|
|
452
|
+
"step-indicator": {
|
|
453
|
+
"status:accent": {
|
|
454
|
+
"--color-accent": "var(--astryx-theme-neutral-color-status-fill-accent)"
|
|
455
|
+
},
|
|
456
|
+
"status:success": {
|
|
457
|
+
"--color-success": "var(--astryx-theme-neutral-color-status-fill-success)"
|
|
458
|
+
},
|
|
459
|
+
"status:warning": {
|
|
460
|
+
"--color-warning": "var(--astryx-theme-neutral-color-status-fill-warning)"
|
|
461
|
+
},
|
|
462
|
+
"status:error": {
|
|
463
|
+
"--color-error": "var(--astryx-theme-neutral-color-status-fill-error)"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
393
466
|
"switch": {
|
|
394
467
|
"base": {
|
|
395
468
|
"--color-background-gray": "var(--color-border-emphasized)"
|
|
@@ -400,16 +473,16 @@ export const neutralTheme = {
|
|
|
400
473
|
"--color-background-muted": "var(--color-border-emphasized)"
|
|
401
474
|
},
|
|
402
475
|
"variant:accent": {
|
|
403
|
-
"--color-accent": "
|
|
476
|
+
"--color-accent": "var(--astryx-theme-neutral-color-status-fill-accent)"
|
|
404
477
|
},
|
|
405
478
|
"variant:success": {
|
|
406
|
-
"--color-success": "
|
|
479
|
+
"--color-success": "var(--astryx-theme-neutral-color-status-fill-success)"
|
|
407
480
|
},
|
|
408
481
|
"variant:warning": {
|
|
409
|
-
"--color-warning": "
|
|
482
|
+
"--color-warning": "var(--astryx-theme-neutral-color-status-fill-warning)"
|
|
410
483
|
},
|
|
411
484
|
"variant:error": {
|
|
412
|
-
"--color-error": "
|
|
485
|
+
"--color-error": "var(--astryx-theme-neutral-color-status-fill-error)"
|
|
413
486
|
}
|
|
414
487
|
},
|
|
415
488
|
"card": {
|
|
@@ -2,15 +2,30 @@
|
|
|
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.
|
|
6
|
-
* Core: @astryxdesign/core@0.5.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.5.3
|
|
6
|
+
* Core: @astryxdesign/core@0.5.3
|
|
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
|
+
|
|
12
20
|
declare module '@astryxdesign/core/Badge' {
|
|
13
21
|
interface BadgeVariantMap {
|
|
14
22
|
'gray': true;
|
|
15
23
|
}
|
|
16
24
|
}
|
|
25
|
+
|
|
26
|
+
declare module '@astryxdesign/core/Avatar' {
|
|
27
|
+
interface AvatarStatusDotVariantMap {
|
|
28
|
+
'success': true;
|
|
29
|
+
'error': true;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export declare const neutralPaletteRefs: {
|
|
2
|
+
readonly purple: {
|
|
3
|
+
readonly light: {
|
|
4
|
+
readonly 30: "#6b187c";
|
|
5
|
+
readonly 70: "#d885eb";
|
|
6
|
+
readonly 75: "#e496f6";
|
|
7
|
+
readonly 80: "#efa8ff";
|
|
8
|
+
readonly 85: "#f3bfff";
|
|
9
|
+
readonly 90: "#f7d5ff";
|
|
10
|
+
};
|
|
11
|
+
readonly dark: {
|
|
12
|
+
readonly 25: "#4a2f51";
|
|
13
|
+
readonly 80: "#eaacf8";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly green: {
|
|
17
|
+
readonly light: {
|
|
18
|
+
readonly 30: "#0b5615";
|
|
19
|
+
readonly 40: "#237028";
|
|
20
|
+
readonly 45: "#2f7d33";
|
|
21
|
+
readonly 65: "#6ab26b";
|
|
22
|
+
readonly 75: "#90ca90";
|
|
23
|
+
readonly 80: "#a4d6a3";
|
|
24
|
+
};
|
|
25
|
+
readonly dark: {
|
|
26
|
+
readonly 25: "#2b422b";
|
|
27
|
+
readonly 80: "#aad4a9";
|
|
28
|
+
readonly 85: "#bce0bb";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly neutral: {
|
|
32
|
+
readonly light: {
|
|
33
|
+
readonly 0: "#000000";
|
|
34
|
+
readonly 5: "#111111";
|
|
35
|
+
readonly 15: "#262626";
|
|
36
|
+
readonly 35: "#525252";
|
|
37
|
+
readonly 45: "#6a6a6a";
|
|
38
|
+
readonly 50: "#777777";
|
|
39
|
+
readonly 65: "#9e9e9e";
|
|
40
|
+
readonly 85: "#d4d4d4";
|
|
41
|
+
readonly 90: "#e2e2e2";
|
|
42
|
+
readonly 95: "#f1f1f1";
|
|
43
|
+
readonly 100: "#ffffff";
|
|
44
|
+
};
|
|
45
|
+
readonly dark: {
|
|
46
|
+
readonly 0: "#000000";
|
|
47
|
+
readonly 5: "#111111";
|
|
48
|
+
readonly 10: "#1b1b1b";
|
|
49
|
+
readonly 15: "#262626";
|
|
50
|
+
readonly 20: "#303030";
|
|
51
|
+
readonly 35: "#525252";
|
|
52
|
+
readonly 65: "#9e9e9e";
|
|
53
|
+
readonly 85: "#d4d4d4";
|
|
54
|
+
readonly 90: "#e2e2e2";
|
|
55
|
+
readonly 95: "#f1f1f1";
|
|
56
|
+
readonly 100: "#ffffff";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly orange: {
|
|
60
|
+
readonly light: {
|
|
61
|
+
readonly 30: "#733100";
|
|
62
|
+
readonly 75: "#ff9e55";
|
|
63
|
+
readonly 85: "#ffc7a1";
|
|
64
|
+
};
|
|
65
|
+
readonly dark: {
|
|
66
|
+
readonly 25: "#503424";
|
|
67
|
+
readonly 65: "#df843f";
|
|
68
|
+
readonly 80: "#ffb37e";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly blue: {
|
|
72
|
+
readonly light: {
|
|
73
|
+
readonly 30: "#00458c";
|
|
74
|
+
readonly 50: "#0074e2";
|
|
75
|
+
readonly 80: "#a1caff";
|
|
76
|
+
readonly 85: "#b9d7ff";
|
|
77
|
+
};
|
|
78
|
+
readonly dark: {
|
|
79
|
+
readonly 25: "#253c5a";
|
|
80
|
+
readonly 65: "#5aa0f8";
|
|
81
|
+
readonly 75: "#88bcff";
|
|
82
|
+
readonly 80: "#a1caff";
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly red: {
|
|
86
|
+
readonly light: {
|
|
87
|
+
readonly 30: "#8a0011";
|
|
88
|
+
readonly 35: "#9e0015";
|
|
89
|
+
readonly 55: "#de4745";
|
|
90
|
+
readonly 65: "#fa6762";
|
|
91
|
+
readonly 70: "#ff7f77";
|
|
92
|
+
readonly 80: "#ffaea7";
|
|
93
|
+
readonly 85: "#ffc4be";
|
|
94
|
+
};
|
|
95
|
+
readonly dark: {
|
|
96
|
+
readonly 25: "#5b2b28";
|
|
97
|
+
readonly 65: "#ee736c";
|
|
98
|
+
readonly 75: "#ff9890";
|
|
99
|
+
readonly 80: "#ffaea7";
|
|
100
|
+
readonly 85: "#ffc4be";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly yellow: {
|
|
104
|
+
readonly light: {
|
|
105
|
+
readonly 30: "#584400";
|
|
106
|
+
readonly 40: "#745b00";
|
|
107
|
+
readonly 65: "#c29900";
|
|
108
|
+
readonly 75: "#e2b623";
|
|
109
|
+
readonly 80: "#eec448";
|
|
110
|
+
readonly 85: "#f8d36a";
|
|
111
|
+
};
|
|
112
|
+
readonly dark: {
|
|
113
|
+
readonly 25: "#453a1c";
|
|
114
|
+
readonly 80: "#e3c36c";
|
|
115
|
+
readonly 90: "#fae19e";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly teal: {
|
|
119
|
+
readonly light: {
|
|
120
|
+
readonly 30: "#005348";
|
|
121
|
+
readonly 80: "#90d7c8";
|
|
122
|
+
readonly 85: "#a9e2d6";
|
|
123
|
+
};
|
|
124
|
+
readonly dark: {
|
|
125
|
+
readonly 25: "#28413c";
|
|
126
|
+
readonly 65: "#4fb1a0";
|
|
127
|
+
readonly 75: "#81c9bb";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly cyan: {
|
|
131
|
+
readonly dark: {
|
|
132
|
+
readonly 25: "#274046";
|
|
133
|
+
readonly 65: "#49adc4";
|
|
134
|
+
readonly 75: "#71c7dd";
|
|
135
|
+
readonly 80: "#85d5e9";
|
|
136
|
+
readonly 85: "#9ae2f4";
|
|
137
|
+
};
|
|
138
|
+
readonly light: {
|
|
139
|
+
readonly 30: "#00505f";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
readonly pink: {
|
|
143
|
+
readonly light: {
|
|
144
|
+
readonly 30: "#83004b";
|
|
145
|
+
readonly 70: "#fc78b1";
|
|
146
|
+
readonly 85: "#ffc0d7";
|
|
147
|
+
};
|
|
148
|
+
readonly dark: {
|
|
149
|
+
readonly 25: "#572b3d";
|
|
150
|
+
readonly 75: "#fd92bd";
|
|
151
|
+
readonly 80: "#ffa9ca";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export default neutralPaletteRefs;
|
|
156
|
+
//# sourceMappingURL=neutralPaletteRefs.generated.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neutralPalettes.d.ts","sourceRoot":"","sources":["../src/neutralPalettes.ts"],"names":[],"mappings":"AAEA,yEAAyE;AACzE,OAAO,EACL,OAAO,IAAI,eAAe,EAC1B,OAAO,IAAI,OAAO,GACnB,MAAM,6BAA6B,CAAC"}
|