@astryxdesign/theme-gothic 0.7.12-canary.f36bd72 → 0.7.12

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/gothic.js CHANGED
@@ -466,7 +466,9 @@ export const gothicTheme = {
466
466
  "color-scheme": "dark",
467
467
  "--color-text-primary": "var(--color-on-dark)",
468
468
  "--color-icon-primary": "var(--color-on-dark)",
469
- "--color-accent": "var(--color-on-dark)"
469
+ "--color-accent": "var(--color-on-dark)",
470
+ "--color-text-accent": "var(--color-accent)",
471
+ "--color-icon-accent": "var(--color-accent)"
470
472
  }
471
473
  },
472
474
  __onLight: {
@@ -474,7 +476,9 @@ export const gothicTheme = {
474
476
  "color-scheme": "light",
475
477
  "--color-text-primary": "var(--color-on-light)",
476
478
  "--color-icon-primary": "var(--color-on-light)",
477
- "--color-accent": "var(--color-on-light)"
479
+ "--color-accent": "var(--color-on-light)",
480
+ "--color-text-accent": "var(--color-accent)",
481
+ "--color-icon-accent": "var(--color-accent)"
478
482
  }
479
483
  },
480
484
  __adaptations: {
@@ -0,0 +1,260 @@
1
+ export declare const gothicTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
2
+ /**
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
+ */
9
+ export declare const gothicPalettes: {
10
+ readonly neutral: {
11
+ readonly hue: 210;
12
+ readonly chroma: 4;
13
+ readonly 0: "#000000";
14
+ readonly 5: "#0a0d0f";
15
+ readonly 10: "#101314";
16
+ readonly 15: "#181c1f";
17
+ readonly 20: "#24292D";
18
+ readonly 25: "#2c3236";
19
+ readonly 30: "#363c40";
20
+ readonly 35: "#40464b";
21
+ readonly 40: "#495056";
22
+ readonly 45: "#535a61";
23
+ readonly 50: "#5d646b";
24
+ readonly 55: "#676f76";
25
+ readonly 60: "#727a82";
26
+ readonly 65: "#7e8690";
27
+ readonly 70: "#8a929c";
28
+ readonly 75: "#96A0AB";
29
+ readonly 80: "#a8b1bb";
30
+ readonly 85: "#bbc3cb";
31
+ readonly 90: "#cdd5db";
32
+ readonly 95: "#E8F1F6";
33
+ readonly 100: "#ffffff";
34
+ };
35
+ readonly blue: {
36
+ readonly hue: 255;
37
+ readonly chroma: 20;
38
+ readonly 0: "#000000";
39
+ readonly 5: "#050930";
40
+ readonly 10: "#0c143f";
41
+ readonly 15: "#161e4d";
42
+ readonly 20: "#1f2c54";
43
+ readonly 25: "#2a3565";
44
+ readonly 30: "#2a3b6e";
45
+ readonly 35: "#3a4783";
46
+ readonly 40: "#475497";
47
+ readonly 45: "#5462ab";
48
+ readonly 50: "#6170bf";
49
+ readonly 55: "#6a85cf";
50
+ readonly 60: "#7793d6";
51
+ readonly 65: "#8aa1d8";
52
+ readonly 70: "#a3b5e0";
53
+ readonly 75: "#b6c5e7";
54
+ readonly 80: "#c4d1ec";
55
+ readonly 85: "#d2dcef";
56
+ readonly 90: "#dde2f1";
57
+ readonly 95: "#e8ecf6";
58
+ readonly 100: "#ffffff";
59
+ };
60
+ readonly cyan: {
61
+ readonly hue: 200;
62
+ readonly chroma: 25;
63
+ readonly 0: "#000000";
64
+ readonly 5: "#001724";
65
+ readonly 10: "#062436";
66
+ readonly 15: "#0d3046";
67
+ readonly 20: "#204858";
68
+ readonly 25: "#1c4a66";
69
+ readonly 30: "#2a5e75";
70
+ readonly 35: "#3a6e85";
71
+ readonly 40: "#487d94";
72
+ readonly 45: "#598ea3";
73
+ readonly 50: "#6a9eb1";
74
+ readonly 55: "#7ab0c0";
75
+ readonly 60: "#8cc3d8";
76
+ readonly 65: "#a0cce0";
77
+ readonly 70: "#b1d3e5";
78
+ readonly 75: "#bcdaeb";
79
+ readonly 80: "#c5dfee";
80
+ readonly 85: "#cbe4f0";
81
+ readonly 90: "#d6e6ee";
82
+ readonly 95: "#e3eef3";
83
+ readonly 100: "#ffffff";
84
+ };
85
+ readonly green: {
86
+ readonly hue: 140;
87
+ readonly chroma: 18;
88
+ readonly 0: "#000000";
89
+ readonly 5: "#0c1a08";
90
+ readonly 10: "#152511";
91
+ readonly 15: "#1c321a";
92
+ readonly 20: "#2c4a20";
93
+ readonly 25: "#2c4d2a";
94
+ readonly 30: "#3a5e2c";
95
+ readonly 35: "#446a39";
96
+ readonly 40: "#557c44";
97
+ readonly 45: "#658d50";
98
+ readonly 50: "#779e5d";
99
+ readonly 55: "#87b06a";
100
+ readonly 60: "#96bd76";
101
+ readonly 65: "#a3c987";
102
+ readonly 70: "#b5d397";
103
+ readonly 75: "#bdd99e";
104
+ readonly 80: "#c8e0ad";
105
+ readonly 85: "#d4e6bd";
106
+ readonly 90: "#dde6d4";
107
+ readonly 95: "#eaf3df";
108
+ readonly 100: "#ffffff";
109
+ };
110
+ readonly orange: {
111
+ readonly hue: 40;
112
+ readonly chroma: 35;
113
+ readonly 0: "#000000";
114
+ readonly 5: "#1f0d00";
115
+ readonly 10: "#2c1606";
116
+ readonly 15: "#3a200d";
117
+ readonly 20: "#6e3812";
118
+ readonly 25: "#5a371a";
119
+ readonly 30: "#8a4818";
120
+ readonly 35: "#9a5824";
121
+ readonly 40: "#a05728";
122
+ readonly 45: "#b66839";
123
+ readonly 50: "#c87a4a";
124
+ readonly 55: "#d6905a";
125
+ readonly 60: "#dca275";
126
+ readonly 65: "#e1b288";
127
+ readonly 70: "#e8b894";
128
+ readonly 75: "#ebbf9d";
129
+ readonly 80: "#eecfb5";
130
+ readonly 85: "#efddcd";
131
+ readonly 90: "#f3e5d8";
132
+ readonly 95: "#f9eee5";
133
+ readonly 100: "#ffffff";
134
+ };
135
+ readonly pink: {
136
+ readonly hue: 345;
137
+ readonly chroma: 22;
138
+ readonly 0: "#000000";
139
+ readonly 5: "#22060e";
140
+ readonly 10: "#2e0c16";
141
+ readonly 15: "#3a131e";
142
+ readonly 20: "#71223c";
143
+ readonly 25: "#572235";
144
+ readonly 30: "#8d2d4c";
145
+ readonly 35: "#9b3358";
146
+ readonly 40: "#a04563";
147
+ readonly 45: "#a04a6e";
148
+ readonly 50: "#b15876";
149
+ readonly 55: "#c26988";
150
+ readonly 60: "#cf7593";
151
+ readonly 65: "#d56891";
152
+ readonly 70: "#dc82a4";
153
+ readonly 75: "#e094b1";
154
+ readonly 80: "#e7a5be";
155
+ readonly 85: "#ebb6ca";
156
+ readonly 90: "#eed6df";
157
+ readonly 95: "#f5e3eb";
158
+ readonly 100: "#ffffff";
159
+ };
160
+ readonly purple: {
161
+ readonly hue: 290;
162
+ readonly chroma: 30;
163
+ readonly 0: "#000000";
164
+ readonly 5: "#1e0c25";
165
+ readonly 10: "#2a1334";
166
+ readonly 15: "#371b43";
167
+ readonly 20: "#481b58";
168
+ readonly 25: "#502163";
169
+ readonly 30: "#5a2370";
170
+ readonly 35: "#6e3088";
171
+ readonly 40: "#82409c";
172
+ readonly 45: "#9352ad";
173
+ readonly 50: "#a363bd";
174
+ readonly 55: "#b06ec9";
175
+ readonly 60: "#bb7cd1";
176
+ readonly 65: "#c084d6";
177
+ readonly 70: "#c692db";
178
+ readonly 75: "#cd9be0";
179
+ readonly 80: "#d2a3df";
180
+ readonly 85: "#dab3e6";
181
+ readonly 90: "#e6daee";
182
+ readonly 95: "#f0e6f4";
183
+ readonly 100: "#ffffff";
184
+ };
185
+ readonly red: {
186
+ readonly hue: 15;
187
+ readonly chroma: 12;
188
+ readonly 0: "#000000";
189
+ readonly 5: "#1c0d09";
190
+ readonly 10: "#26140f";
191
+ readonly 15: "#301b16";
192
+ readonly 20: "#3a231d";
193
+ readonly 25: "#452c25";
194
+ readonly 30: "#50352d";
195
+ readonly 35: "#5b3e36";
196
+ readonly 40: "#66483e";
197
+ readonly 45: "#725347";
198
+ readonly 50: "#7d5e51";
199
+ readonly 55: "#896a5b";
200
+ readonly 60: "#957565";
201
+ readonly 65: "#a18170";
202
+ readonly 70: "#ad8d7b";
203
+ readonly 75: "#b99a87";
204
+ readonly 80: "#c6a6a2";
205
+ readonly 85: "#d2b4af";
206
+ readonly 90: "#dec2bc";
207
+ readonly 95: "#ebd0ca";
208
+ readonly 100: "#ffffff";
209
+ };
210
+ readonly teal: {
211
+ readonly hue: 170;
212
+ readonly chroma: 20;
213
+ readonly 0: "#000000";
214
+ readonly 5: "#001b14";
215
+ readonly 10: "#062821";
216
+ readonly 15: "#0d3530";
217
+ readonly 20: "#174a40";
218
+ readonly 25: "#194e44";
219
+ readonly 30: "#1f5e52";
220
+ readonly 35: "#2c6c5f";
221
+ readonly 40: "#3a7b6c";
222
+ readonly 45: "#498a7a";
223
+ readonly 50: "#5aa091";
224
+ readonly 55: "#5db5a3";
225
+ readonly 60: "#6cbeab";
226
+ readonly 65: "#7cc5b3";
227
+ readonly 70: "#90d0c0";
228
+ readonly 75: "#9fd4c5";
229
+ readonly 80: "#b1ddcf";
230
+ readonly 85: "#c0e1d6";
231
+ readonly 90: "#d4e7e2";
232
+ readonly 95: "#e1efe9";
233
+ readonly 100: "#ffffff";
234
+ };
235
+ readonly yellow: {
236
+ readonly hue: 80;
237
+ readonly chroma: 40;
238
+ readonly 0: "#000000";
239
+ readonly 5: "#2c1d00";
240
+ readonly 10: "#3a2900";
241
+ readonly 15: "#4a3500";
242
+ readonly 20: "#6c5010";
243
+ readonly 25: "#6c5010";
244
+ readonly 30: "#876515";
245
+ readonly 35: "#9c7b1f";
246
+ readonly 40: "#b18e2f";
247
+ readonly 45: "#c39e3e";
248
+ readonly 50: "#cca74c";
249
+ readonly 55: "#d6b56a";
250
+ readonly 60: "#dec074";
251
+ readonly 65: "#e2c884";
252
+ readonly 70: "#e6d091";
253
+ readonly 75: "#e9d29a";
254
+ readonly 80: "#ebd9a7";
255
+ readonly 85: "#ebe1c4";
256
+ readonly 90: "#f0e8d6";
257
+ readonly 95: "#f7f1e3";
258
+ readonly 100: "#ffffff";
259
+ };
260
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"gothicTheme.d.ts","sourceRoot":"","sources":["../src/gothicTheme.ts"],"names":[],"mappings":"AAoFA,eAAO,MAAM,WAAW,gEA0TtB,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,gEA0UtB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsQjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { IconRegistry } from '@astryxdesign/core/Icon';
2
+ export declare const gothicIconRegistry: IconRegistry;
@@ -418,6 +418,21 @@ var gothicTheme = (0, import_theme.defineTheme)({
418
418
  }
419
419
  }
420
420
  },
421
+ // Gothic's accent text and icons are one light color. On a media surface
422
+ // they follow that surface's accent, so a dark surface inside a light one
423
+ // gets its light accent back.
424
+ onDark: {
425
+ tokens: {
426
+ "--color-text-accent": "var(--color-accent)",
427
+ "--color-icon-accent": "var(--color-accent)"
428
+ }
429
+ },
430
+ onLight: {
431
+ tokens: {
432
+ "--color-text-accent": "var(--color-accent)",
433
+ "--color-icon-accent": "var(--color-accent)"
434
+ }
435
+ },
421
436
  icons: gothicIconRegistry
422
437
  });
423
438
  var gothicPalettes = {
@@ -0,0 +1,2 @@
1
+ export { gothicPalettes, gothicTheme } from './gothicTheme.cjs';
2
+ export { gothicIconRegistry } from './icons.cjs';
package/dist/source.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { gothicPalettes, gothicTheme } from './gothicTheme';
2
- export { gothicIconRegistry } from './icons';
1
+ export { gothicPalettes, gothicTheme } from './gothicTheme.js';
2
+ export { gothicIconRegistry } from './icons.js';
3
3
  //# sourceMappingURL=source.d.ts.map
package/dist/source.mjs CHANGED
@@ -420,6 +420,21 @@ var gothicTheme = defineTheme({
420
420
  }
421
421
  }
422
422
  },
423
+ // Gothic's accent text and icons are one light color. On a media surface
424
+ // they follow that surface's accent, so a dark surface inside a light one
425
+ // gets its light accent back.
426
+ onDark: {
427
+ tokens: {
428
+ "--color-text-accent": "var(--color-accent)",
429
+ "--color-icon-accent": "var(--color-accent)"
430
+ }
431
+ },
432
+ onLight: {
433
+ tokens: {
434
+ "--color-text-accent": "var(--color-accent)",
435
+ "--color-icon-accent": "var(--color-accent)"
436
+ }
437
+ },
423
438
  icons: gothicIconRegistry
424
439
  });
425
440
  var gothicPalettes = {
package/dist/theme.css CHANGED
@@ -634,6 +634,8 @@
634
634
  --color-text-primary: var(--color-on-dark);
635
635
  --color-icon-primary: var(--color-on-dark);
636
636
  --color-accent: var(--color-on-dark);
637
+ --color-text-accent: var(--color-accent);
638
+ --color-icon-accent: var(--color-accent);
637
639
  }
638
640
 
639
641
  [data-astryx-media="light"] {
@@ -641,6 +643,8 @@
641
643
  --color-text-primary: var(--color-on-light);
642
644
  --color-icon-primary: var(--color-on-light);
643
645
  --color-accent: var(--color-on-light);
646
+ --color-text-accent: var(--color-accent);
647
+ --color-icon-accent: var(--color-accent);
644
648
  }
645
649
  }
646
650
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-gothic",
3
- "version": "0.7.12-canary.f36bd72",
3
+ "version": "0.7.12",
4
4
  "displayName": "Gothic Theme",
5
5
  "private": false,
6
6
  "description": "Deep blue-grays and a signature display serif. Dramatic and editorial, for surfaces that want to be remembered.",
@@ -25,13 +25,19 @@
25
25
  "sideEffects": [
26
26
  "**/*.css"
27
27
  ],
28
- "main": "./dist/source.js",
28
+ "type": "module",
29
+ "main": "./dist/source.cjs",
29
30
  "types": "./dist/source.d.ts",
30
31
  "exports": {
31
32
  ".": {
32
- "types": "./dist/source.d.ts",
33
- "import": "./dist/source.mjs",
34
- "require": "./dist/source.js"
33
+ "import": {
34
+ "types": "./dist/source.d.ts",
35
+ "default": "./dist/source.mjs"
36
+ },
37
+ "require": {
38
+ "types": "./dist/source.d.cts",
39
+ "default": "./dist/source.cjs"
40
+ }
35
41
  },
36
42
  "./built": {
37
43
  "types": "./dist/gothic.d.ts",
@@ -52,6 +58,7 @@
52
58
  "src",
53
59
  "fonts.css",
54
60
  "fonts.css.d.ts",
61
+ "theme.css.d.ts",
55
62
  "palette.config.json",
56
63
  "!**/*.test.*",
57
64
  "!**/*.spec.js",
@@ -71,15 +78,15 @@
71
78
  "lucide-react": "^1.18.0"
72
79
  },
73
80
  "peerDependencies": {
74
- "@astryxdesign/core": "0.7.12-canary.f36bd72",
81
+ "@astryxdesign/core": "0.7.12",
75
82
  "react": ">=19"
76
83
  },
77
84
  "devDependencies": {
78
- "@astryxdesign/cli": "0.7.12-canary.f36bd72"
85
+ "@astryxdesign/cli": "0.7.12"
79
86
  },
80
87
  "module": "./dist/source.mjs",
81
88
  "scripts": {
82
89
  "api:report": "node ../../../scripts/api-report/cli.mjs --package .",
83
- "build": "node ../../../scripts/clean-dist.mjs && node ../../../scripts/generate-gothic-palette-refs.mjs --check && astryx theme build src/gothicTheme.ts -o dist/theme.css --icons-specifier ./icons.mjs && tsup && tsc --project tsconfig.build.json && node ../../../scripts/check-fully-specified.mjs"
90
+ "build": "node ../../../scripts/clean-dist.mjs && node ../../../scripts/generate-gothic-palette-refs.mjs --check && astryx theme build src/gothicTheme.ts -o dist/theme.css --icons-specifier ./icons.mjs && tsup && tsc --project tsconfig.build.json && node ../../../scripts/add-declaration-extensions.mjs && node ../../../scripts/emit-commonjs-declarations.mjs dist/source.d.ts && node ../../../scripts/check-fully-specified.mjs"
84
91
  }
85
92
  }
@@ -395,6 +395,22 @@ export const gothicTheme = defineTheme({
395
395
  },
396
396
  },
397
397
 
398
+ // Gothic's accent text and icons are one light color. On a media surface
399
+ // they follow that surface's accent, so a dark surface inside a light one
400
+ // gets its light accent back.
401
+ onDark: {
402
+ tokens: {
403
+ '--color-text-accent': 'var(--color-accent)',
404
+ '--color-icon-accent': 'var(--color-accent)',
405
+ },
406
+ },
407
+ onLight: {
408
+ tokens: {
409
+ '--color-text-accent': 'var(--color-accent)',
410
+ '--color-icon-accent': 'var(--color-accent)',
411
+ },
412
+ },
413
+
398
414
  icons: gothicIconRegistry,
399
415
  });
400
416
 
package/theme.css.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ export {};