@astryxdesign/theme-gothic 0.7.3 → 0.7.4-canary.1a552f2
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 +48 -30
- package/dist/gothic.d.ts +2 -2
- package/dist/gothic.js +40 -40
- package/dist/gothicColorMapping.test.d.ts +2 -0
- package/dist/gothicColorMapping.test.d.ts.map +1 -0
- package/dist/gothicPaletteRefs.generated.d.ts +101 -0
- package/dist/gothicPaletteRefs.generated.d.ts.map +1 -0
- package/dist/gothicPalettes.generated.d.ts +266 -0
- package/dist/gothicPalettes.generated.d.ts.map +1 -0
- package/dist/gothicPalettes.test.d.ts +2 -0
- package/dist/gothicPalettes.test.d.ts.map +1 -0
- package/dist/gothicTheme.d.ts +5 -5
- package/dist/gothicTheme.d.ts.map +1 -1
- package/dist/gothicTheme.test.d.ts +2 -0
- package/dist/gothicTheme.test.d.ts.map +1 -0
- package/dist/source.d.ts +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +139 -152
- package/dist/source.mjs +139 -152
- package/dist/theme.css +40 -40
- package/dist/theme.css.d.ts +2 -2
- package/package.json +6 -5
- package/palette.config.json +371 -0
- package/src/gothicColorMapping.test.ts +43 -0
- package/src/gothicPaletteRefs.generated.ts +41 -0
- package/src/gothicPalettes.generated.receipt.json +979 -0
- package/src/gothicPalettes.generated.ts +271 -0
- package/src/gothicPalettes.test.ts +63 -0
- package/src/gothicTheme.test.ts +98 -0
- package/src/gothicTheme.ts +130 -160
- package/src/source.ts +1 -1
package/dist/gothicTheme.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const gothicTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme;
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* Frozen released compatibility palettes. These values preserve the public
|
|
4
|
+
* `gothicPalettes` shape and values for existing consumers; the maintained
|
|
5
|
+
* theme renders selected stops from `gothicPalettes.generated.ts` instead.
|
|
6
|
+
* Components should consume semantic theme tokens, and charts should use the
|
|
7
|
+
* data-visualization color API.
|
|
8
8
|
*/
|
|
9
9
|
export declare const gothicPalettes: {
|
|
10
10
|
readonly neutral: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gothicTheme.d.ts","sourceRoot":"","sources":["../src/gothicTheme.ts"],"names":[],"mappings":"AAoFA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"gothicTheme.d.ts","sourceRoot":"","sources":["../src/gothicTheme.ts"],"names":[],"mappings":"AAoFA,eAAO,MAAM,WAAW,yDAqTtB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsQjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gothicTheme.test.d.ts","sourceRoot":"","sources":["../src/gothicTheme.test.ts"],"names":[],"mappings":""}
|
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,
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC"}
|
package/dist/source.js
CHANGED
|
@@ -68,46 +68,64 @@ var gothicIconRegistry = {
|
|
|
68
68
|
microphone: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Mic, { ...iconProps })
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
// src/gothicPaletteRefs.generated.ts
|
|
72
|
+
var gothicPaletteRefs = {
|
|
73
|
+
purple: {
|
|
74
|
+
dark: { 20: "#481b58", 30: "#5a2370", 60: "#947da6", 75: "#b29bc4", 80: "#c39adb" }
|
|
75
|
+
},
|
|
76
|
+
green: {
|
|
77
|
+
dark: { 5: "#071607", 20: "#244023", 30: "#3a5e2c", 55: "#869b72", 60: "#96a880", 70: "#a3c987", 75: "#b3c79a" }
|
|
78
|
+
},
|
|
79
|
+
neutral: {
|
|
80
|
+
dark: { 0: "#000000", 10: "#101314", 15: "#191d20", 20: "#24292d", 35: "#3e454b", 40: "#495056", 50: "#5e676e", 65: "#7e8791", 75: "#96a0ab", 95: "#e8f1f6", 100: "#ffffff" }
|
|
81
|
+
},
|
|
82
|
+
yellow: {
|
|
83
|
+
dark: { 15: "#573f0b", 30: "#876515", 60: "#b6a775", 65: "#e6b85e", 70: "#dec074", 75: "#d3c490" }
|
|
84
|
+
},
|
|
85
|
+
blue: {
|
|
86
|
+
dark: { 20: "#1f2c54", 30: "#2a3b6e", 60: "#8696b8", 65: "#8aa1d8", 75: "#a3b5d6" }
|
|
87
|
+
},
|
|
88
|
+
pink: {
|
|
89
|
+
dark: { 15: "#5c182f", 30: "#8d2d4c", 60: "#aa7d8e", 65: "#d97580", 75: "#c89aab" }
|
|
90
|
+
},
|
|
91
|
+
teal: {
|
|
92
|
+
dark: { 20: "#174a40", 30: "#1f5e52", 60: "#86a499", 70: "#7cc5b3", 75: "#a3c2b6" }
|
|
93
|
+
},
|
|
94
|
+
red: {
|
|
95
|
+
dark: { 5: "#220806", 20: "#4a2520", 30: "#5e3a35", 60: "#a48581", 75: "#c6a6a2" }
|
|
96
|
+
},
|
|
97
|
+
cyan: {
|
|
98
|
+
dark: { 20: "#204858", 30: "#2a5e75", 60: "#86a4b1", 75: "#a3c2cf" }
|
|
99
|
+
},
|
|
100
|
+
orange: {
|
|
101
|
+
dark: { 20: "#6e3812", 30: "#8a4818", 60: "#b6987d", 75: "#d3b89a" }
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
71
105
|
// src/gothicTheme.ts
|
|
106
|
+
var { blue, cyan, green, neutral, orange, pink, purple, red, teal, yellow } = gothicPaletteRefs;
|
|
107
|
+
var withAlpha = (color, alpha) => `${color}${alpha}`;
|
|
72
108
|
var gothicSyntax = (0, import_theme.defineSyntaxTheme)({
|
|
73
109
|
name: "astryx-gothic",
|
|
74
110
|
tokens: {
|
|
75
|
-
keyword:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
tag: "#d97580",
|
|
94
|
-
// Blood crimson
|
|
95
|
-
attribute: "#dec074",
|
|
96
|
-
// Aged gold
|
|
97
|
-
property: "#7cc5b3",
|
|
98
|
-
// Verdigris
|
|
99
|
-
punctuation: "#7a8290",
|
|
100
|
-
// Mid neutral
|
|
101
|
-
background: "#101314",
|
|
102
|
-
// Diff rows on the near-black background: any lighter wash lowers every
|
|
103
|
-
// light token's contrast, so the rows take opaque hues at the
|
|
104
|
-
// background's own luminance — a deep green and a deep red that read as
|
|
105
|
-
// colour, not brightness — and every token keeps the contrast it has on
|
|
106
|
-
// the plain background. Markers: forest moss and blood crimson.
|
|
107
|
-
added: "#081408",
|
|
108
|
-
removed: "#1e0a0a",
|
|
109
|
-
"added-marker": "#a3c987",
|
|
110
|
-
"removed-marker": "#d97580"
|
|
111
|
+
keyword: purple.dark[80],
|
|
112
|
+
string: green.dark[70],
|
|
113
|
+
comment: neutral.dark[65],
|
|
114
|
+
number: yellow.dark[70],
|
|
115
|
+
function: blue.dark[65],
|
|
116
|
+
type: purple.dark[80],
|
|
117
|
+
variable: neutral.dark[95],
|
|
118
|
+
operator: neutral.dark[75],
|
|
119
|
+
constant: yellow.dark[65],
|
|
120
|
+
tag: pink.dark[65],
|
|
121
|
+
attribute: yellow.dark[70],
|
|
122
|
+
property: teal.dark[70],
|
|
123
|
+
punctuation: neutral.dark[65],
|
|
124
|
+
background: neutral.dark[10],
|
|
125
|
+
added: green.dark[5],
|
|
126
|
+
removed: red.dark[5],
|
|
127
|
+
"added-marker": green.dark[70],
|
|
128
|
+
"removed-marker": pink.dark[65]
|
|
111
129
|
}
|
|
112
130
|
});
|
|
113
131
|
var SECONDARY_BUTTON = {
|
|
@@ -150,114 +168,83 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
150
168
|
motion: { fast: 150, medium: 350, slow: 800, ratio: 0.75 },
|
|
151
169
|
syntax: gothicSyntax,
|
|
152
170
|
tokens: {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"--color-
|
|
159
|
-
"--color-
|
|
160
|
-
"--color-
|
|
161
|
-
"--color-background-
|
|
162
|
-
"--color-
|
|
163
|
-
"--color-
|
|
164
|
-
"--color-
|
|
165
|
-
"--color-
|
|
166
|
-
"--color-
|
|
167
|
-
|
|
168
|
-
"--color-
|
|
169
|
-
"--color-
|
|
170
|
-
"--color-
|
|
171
|
-
"--color-
|
|
172
|
-
"--color-
|
|
173
|
-
"--color-
|
|
174
|
-
"--color-
|
|
175
|
-
"--color-
|
|
176
|
-
"--color-
|
|
177
|
-
"--color-
|
|
178
|
-
|
|
179
|
-
"--color-
|
|
180
|
-
"--color-
|
|
181
|
-
"--color-
|
|
182
|
-
"--color-
|
|
183
|
-
|
|
184
|
-
"--color-
|
|
185
|
-
"--color-
|
|
186
|
-
"--color-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
"--color-
|
|
190
|
-
|
|
191
|
-
"--color-
|
|
192
|
-
"--color-
|
|
193
|
-
|
|
194
|
-
"--color-
|
|
195
|
-
"--color-
|
|
196
|
-
|
|
197
|
-
"--color-
|
|
198
|
-
|
|
199
|
-
"--color-border":
|
|
200
|
-
"--color-
|
|
201
|
-
|
|
202
|
-
"--color-
|
|
203
|
-
"--color-
|
|
204
|
-
"--color-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
"--color-
|
|
213
|
-
"--color-
|
|
214
|
-
"--color-
|
|
215
|
-
"--color-
|
|
216
|
-
|
|
217
|
-
"--color-
|
|
218
|
-
"--color-
|
|
219
|
-
"--color-
|
|
220
|
-
"--color-
|
|
221
|
-
|
|
222
|
-
"--color-background-
|
|
223
|
-
"--color-border-
|
|
224
|
-
"--color-icon-
|
|
225
|
-
"--color-text-
|
|
226
|
-
|
|
227
|
-
"--color-
|
|
228
|
-
"--color-
|
|
229
|
-
"--color-
|
|
230
|
-
"--color-text-green": "#244023",
|
|
231
|
-
// Orange (warm tan)
|
|
232
|
-
"--color-background-orange": "#d3b89a",
|
|
233
|
-
"--color-border-orange": "#b6987d",
|
|
234
|
-
"--color-icon-orange": "#8a4818",
|
|
235
|
-
"--color-text-orange": "#6e3812",
|
|
236
|
-
// Pink (dusty rose)
|
|
237
|
-
"--color-background-pink": "#c89aab",
|
|
238
|
-
"--color-border-pink": "#aa7d8e",
|
|
239
|
-
"--color-icon-pink": "#8d2d4c",
|
|
240
|
-
"--color-text-pink": "#71223c",
|
|
241
|
-
// Purple (muted plum)
|
|
242
|
-
"--color-background-purple": "#b29bc4",
|
|
243
|
-
"--color-border-purple": "#947da6",
|
|
244
|
-
"--color-icon-purple": "#5a2370",
|
|
245
|
-
"--color-text-purple": "#481b58",
|
|
246
|
-
// Red (dusty rose)
|
|
247
|
-
"--color-background-red": "#c6a6a2",
|
|
248
|
-
"--color-border-red": "#a48581",
|
|
249
|
-
"--color-icon-red": "#5e3a35",
|
|
250
|
-
"--color-text-red": "#4a2520",
|
|
251
|
-
// Teal (sage verdigris)
|
|
252
|
-
"--color-background-teal": "#a3c2b6",
|
|
253
|
-
"--color-border-teal": "#86a499",
|
|
254
|
-
"--color-icon-teal": "#1f5e52",
|
|
255
|
-
"--color-text-teal": "#174a40",
|
|
256
|
-
// Yellow (aged gold)
|
|
257
|
-
"--color-background-yellow": "#d3c490",
|
|
258
|
-
"--color-border-yellow": "#b6a775",
|
|
259
|
-
"--color-icon-yellow": "#876515",
|
|
260
|
-
"--color-text-yellow": "#6c5010",
|
|
171
|
+
"--color-accent": neutral.dark[95],
|
|
172
|
+
"--color-accent-muted": withAlpha(neutral.dark[95], "20"),
|
|
173
|
+
"--color-neutral": withAlpha(neutral.dark[95], "1a"),
|
|
174
|
+
"--color-background-surface": neutral.dark[10],
|
|
175
|
+
"--color-background-body": neutral.dark[10],
|
|
176
|
+
"--color-overlay": withAlpha(neutral.dark[10], "cc"),
|
|
177
|
+
"--color-overlay-hover": withAlpha(neutral.dark[95], "0d"),
|
|
178
|
+
"--color-overlay-pressed": withAlpha(neutral.dark[95], "1a"),
|
|
179
|
+
"--color-background-muted": neutral.dark[20],
|
|
180
|
+
"--color-text-primary": neutral.dark[95],
|
|
181
|
+
"--color-text-secondary": neutral.dark[75],
|
|
182
|
+
"--color-text-disabled": neutral.dark[40],
|
|
183
|
+
"--color-text-accent": neutral.dark[95],
|
|
184
|
+
"--color-on-dark": neutral.dark[95],
|
|
185
|
+
"--color-on-light": neutral.dark[10],
|
|
186
|
+
"--color-on-accent": neutral.dark[10],
|
|
187
|
+
"--color-on-success": neutral.dark[10],
|
|
188
|
+
"--color-on-error": neutral.dark[10],
|
|
189
|
+
"--color-on-warning": neutral.dark[10],
|
|
190
|
+
"--color-icon-accent": neutral.dark[95],
|
|
191
|
+
"--color-icon-primary": neutral.dark[95],
|
|
192
|
+
"--color-icon-secondary": neutral.dark[75],
|
|
193
|
+
"--color-icon-disabled": neutral.dark[40],
|
|
194
|
+
"--color-background-card": neutral.dark[15],
|
|
195
|
+
"--color-background-popover": neutral.dark[20],
|
|
196
|
+
"--color-background-inverted": neutral.dark[95],
|
|
197
|
+
"--color-success": green.dark[75],
|
|
198
|
+
"--color-success-muted": green.dark[75],
|
|
199
|
+
"--color-error": red.dark[75],
|
|
200
|
+
"--color-error-muted": red.dark[75],
|
|
201
|
+
"--color-warning": yellow.dark[75],
|
|
202
|
+
"--color-warning-muted": yellow.dark[75],
|
|
203
|
+
"--color-border": withAlpha(neutral.dark[95], "1a"),
|
|
204
|
+
"--color-border-emphasized": neutral.dark[40],
|
|
205
|
+
"--color-skeleton": neutral.dark[40],
|
|
206
|
+
"--color-shadow": withAlpha(neutral.dark[0], "4d"),
|
|
207
|
+
"--color-tint-hover": neutral.dark[100],
|
|
208
|
+
"--color-background-blue": blue.dark[75],
|
|
209
|
+
"--color-border-blue": blue.dark[60],
|
|
210
|
+
"--color-icon-blue": blue.dark[30],
|
|
211
|
+
"--color-text-blue": blue.dark[20],
|
|
212
|
+
"--color-background-cyan": cyan.dark[75],
|
|
213
|
+
"--color-border-cyan": cyan.dark[60],
|
|
214
|
+
"--color-icon-cyan": cyan.dark[30],
|
|
215
|
+
"--color-text-cyan": cyan.dark[20],
|
|
216
|
+
"--color-background-gray": neutral.dark[35],
|
|
217
|
+
"--color-border-gray": neutral.dark[50],
|
|
218
|
+
"--color-icon-gray": neutral.dark[95],
|
|
219
|
+
"--color-text-gray": neutral.dark[95],
|
|
220
|
+
"--color-background-green": green.dark[75],
|
|
221
|
+
"--color-border-green": green.dark[60],
|
|
222
|
+
"--color-icon-green": green.dark[30],
|
|
223
|
+
"--color-text-green": green.dark[20],
|
|
224
|
+
"--color-background-orange": orange.dark[75],
|
|
225
|
+
"--color-border-orange": orange.dark[60],
|
|
226
|
+
"--color-icon-orange": orange.dark[30],
|
|
227
|
+
"--color-text-orange": orange.dark[20],
|
|
228
|
+
"--color-background-pink": pink.dark[75],
|
|
229
|
+
"--color-border-pink": pink.dark[60],
|
|
230
|
+
"--color-icon-pink": pink.dark[30],
|
|
231
|
+
"--color-text-pink": pink.dark[15],
|
|
232
|
+
"--color-background-purple": purple.dark[75],
|
|
233
|
+
"--color-border-purple": purple.dark[60],
|
|
234
|
+
"--color-icon-purple": purple.dark[30],
|
|
235
|
+
"--color-text-purple": purple.dark[20],
|
|
236
|
+
"--color-background-red": red.dark[75],
|
|
237
|
+
"--color-border-red": red.dark[60],
|
|
238
|
+
"--color-icon-red": red.dark[30],
|
|
239
|
+
"--color-text-red": red.dark[20],
|
|
240
|
+
"--color-background-teal": teal.dark[75],
|
|
241
|
+
"--color-border-teal": teal.dark[60],
|
|
242
|
+
"--color-icon-teal": teal.dark[30],
|
|
243
|
+
"--color-text-teal": teal.dark[20],
|
|
244
|
+
"--color-background-yellow": yellow.dark[75],
|
|
245
|
+
"--color-border-yellow": yellow.dark[60],
|
|
246
|
+
"--color-icon-yellow": yellow.dark[30],
|
|
247
|
+
"--color-text-yellow": yellow.dark[15],
|
|
261
248
|
// =========================================================================
|
|
262
249
|
// Radius — subtle rounding (original gothic)
|
|
263
250
|
// --radius-none and --radius-full are always fixed and must never be
|
|
@@ -273,14 +260,14 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
273
260
|
// =========================================================================
|
|
274
261
|
// Shadows — restrained, atmospheric
|
|
275
262
|
// =========================================================================
|
|
276
|
-
"--shadow-low":
|
|
277
|
-
"--shadow-med":
|
|
278
|
-
"--shadow-high":
|
|
279
|
-
"--shadow-inset-hover":
|
|
280
|
-
"--shadow-inset-selected":
|
|
281
|
-
"--shadow-inset-success":
|
|
282
|
-
"--shadow-inset-warning":
|
|
283
|
-
"--shadow-inset-error":
|
|
263
|
+
"--shadow-low": `0 2px 4px ${withAlpha(neutral.dark[0], "33")}, 0 4px 8px ${withAlpha(neutral.dark[0], "40")}`,
|
|
264
|
+
"--shadow-med": `0 2px 4px ${withAlpha(neutral.dark[0], "33")}, 0 4px 12px ${withAlpha(neutral.dark[0], "40")}`,
|
|
265
|
+
"--shadow-high": `0 4px 6px ${withAlpha(neutral.dark[0], "40")}, 0 12px 24px ${withAlpha(neutral.dark[0], "4d")}`,
|
|
266
|
+
"--shadow-inset-hover": `inset 0 0 0 1px ${withAlpha(neutral.dark[75], "30")}`,
|
|
267
|
+
"--shadow-inset-selected": `inset 0 0 0 2px ${withAlpha(neutral.dark[75], "50")}`,
|
|
268
|
+
"--shadow-inset-success": `inset 0 0 0 1px ${withAlpha(green.dark[55], "50")}`,
|
|
269
|
+
"--shadow-inset-warning": `inset 0 0 0 1px ${withAlpha(yellow.dark[75], "50")}`,
|
|
270
|
+
"--shadow-inset-error": `inset 0 0 0 1px ${withAlpha(red.dark[75], "50")}`
|
|
284
271
|
},
|
|
285
272
|
components: {
|
|
286
273
|
button: {
|