@astryxdesign/theme-gothic 0.7.3 → 0.7.4-canary.39f7153

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.
@@ -1,10 +1,10 @@
1
1
  export declare const gothicTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme;
2
2
  /**
3
- * Raw tonal palettes — every color at every tone step (0–100 in 5s).
4
- * Use these for custom components or data visualization.
5
- *
6
- * Categorical hues (blue, green, etc.) follow gothic gem-tone hues.
7
- * Neutral mirrors the original gothic blue-gray palette (H≈210).
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,yDAmVtB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsQjB,CAAC"}
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=gothicTheme.test.d.ts.map
@@ -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
@@ -1,3 +1,3 @@
1
- export { gothicTheme, gothicPalettes } from './gothicTheme';
1
+ export { gothicPalettes, gothicTheme } from './gothicTheme';
2
2
  export { gothicIconRegistry } from './icons';
3
3
  //# sourceMappingURL=source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC"}
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: "#c39adb",
76
- // Cathedral plum
77
- string: "#a3c987",
78
- // Forest moss
79
- comment: "#6b7079",
80
- // Faded ink
81
- number: "#dec074",
82
- // Aged gold
83
- function: "#8aa1d8",
84
- // Midnight indigo
85
- type: "#c39adb",
86
- // Cathedral plum
87
- variable: "#E8F1F6",
88
- // Parchment
89
- operator: "#96A0AB",
90
- // Mid neutral
91
- constant: "#e6b85e",
92
- // Candlelight amber
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
- // Colors — gothic dark palette (single values, dark-only)
155
- // Core: #E8F1F6, #96A0AB, #495056, #24292D, #101314
156
- // =========================================================================
157
- // Core semantic
158
- "--color-accent": "#E8F1F6",
159
- "--color-accent-muted": "#E8F1F620",
160
- "--color-neutral": "#E8F1F61A",
161
- "--color-background-surface": "#101314",
162
- "--color-background-body": "#101314",
163
- "--color-overlay": "#101314CC",
164
- "--color-overlay-hover": "#E8F1F60D",
165
- "--color-overlay-pressed": "#E8F1F61A",
166
- "--color-background-muted": "#24292D",
167
- // Text
168
- "--color-text-primary": "#E8F1F6",
169
- "--color-text-secondary": "#96A0AB",
170
- "--color-text-disabled": "#495056",
171
- "--color-text-accent": "#E8F1F6",
172
- "--color-on-dark": "#E8F1F6",
173
- "--color-on-light": "#101314",
174
- "--color-on-accent": "#101314",
175
- "--color-on-success": "#101314",
176
- "--color-on-error": "#101314",
177
- "--color-on-warning": "#101314",
178
- // Icon
179
- "--color-icon-accent": "#E8F1F6",
180
- "--color-icon-primary": "#E8F1F6",
181
- "--color-icon-secondary": "#96A0AB",
182
- "--color-icon-disabled": "#495056",
183
- // Surface variants
184
- "--color-background-card": "#1a1d20",
185
- "--color-background-popover": "#24292D",
186
- "--color-background-inverted": "#E8F1F6",
187
- // Status / Sentiment — dusty pastels matching the categorical
188
- // pattern. Used for status surfaces, destructive button bg, etc.
189
- "--color-success": "#b3c79a",
190
- // sage moss
191
- "--color-success-muted": "#b3c79a",
192
- "--color-error": "#c6a6a2",
193
- // dusty rose
194
- "--color-error-muted": "#c6a6a2",
195
- "--color-warning": "#d3c490",
196
- // aged gold
197
- "--color-warning-muted": "#d3c490",
198
- // Border
199
- "--color-border": "#E8F1F61A",
200
- "--color-border-emphasized": "#495056",
201
- // Effects
202
- "--color-skeleton": "#495056",
203
- "--color-shadow": "#0000004D",
204
- "--color-tint-hover": "white",
205
- // =========================================================================
206
- // Categorical — dusty pastel-on-dark pattern
207
- // Hand-tuned dusty pastels (T75 with reduced chroma) — confident
208
- // but never bright. Neutral is a dark slate with white text — the
209
- // "no-color" variant earns its hierarchy by matching the page mood.
210
- // =========================================================================
211
- // Blue (periwinkle midnight)
212
- "--color-background-blue": "#a3b5d6",
213
- "--color-border-blue": "#8696b8",
214
- "--color-icon-blue": "#2a3b6e",
215
- "--color-text-blue": "#1f2c54",
216
- // Cyan (cathedral mist)
217
- "--color-background-cyan": "#a3c2cf",
218
- "--color-border-cyan": "#86a4b1",
219
- "--color-icon-cyan": "#2a5e75",
220
- "--color-text-cyan": "#204858",
221
- // Gray (dark slate — special: dark bg + light text)
222
- "--color-background-gray": "#3d4248",
223
- "--color-border-gray": "#5d646b",
224
- "--color-icon-gray": "#E8F1F6",
225
- "--color-text-gray": "#E8F1F6",
226
- // Green (sage moss)
227
- "--color-background-green": "#b3c79a",
228
- "--color-border-green": "#96a880",
229
- "--color-icon-green": "#3a5e2c",
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": "0 2px 4px #00000033, 0 4px 8px #00000040",
277
- "--shadow-med": "0 2px 4px #00000033, 0 4px 12px #00000040",
278
- "--shadow-high": "0 4px 6px #00000040, 0 12px 24px #0000004D",
279
- "--shadow-inset-hover": "inset 0px 0px 0px 1px #96A0AB30",
280
- "--shadow-inset-selected": "inset 0px 0px 0px 2px #96A0AB50",
281
- "--shadow-inset-success": "inset 0px 0px 0px 1px #87b06a50",
282
- "--shadow-inset-warning": "inset 0px 0px 0px 1px #d6b56a50",
283
- "--shadow-inset-error": "inset 0px 0px 0px 1px #d4485150"
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: {