@astryxdesign/theme-gothic 0.7.17-canary.gffd1fc0 → 0.7.17
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 +6 -10
- package/dist/gothic.d.ts +1 -0
- package/dist/gothic.js +320 -1
- package/dist/gothicPaletteRefs.generated.d.ts +16 -15
- package/dist/gothicPaletteRefs.generated.d.ts.map +1 -1
- package/dist/gothicTheme.d.cts +6 -0
- package/dist/gothicTheme.d.ts +6 -0
- package/dist/gothicTheme.d.ts.map +1 -1
- package/dist/source.cjs +104 -7
- package/dist/source.d.cts +1 -1
- package/dist/source.d.ts +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.mjs +103 -7
- package/dist/theme.css +296 -0
- package/fonts/fustat-arabic-400-normal.woff2 +0 -0
- package/fonts/fustat-arabic-500-normal.woff2 +0 -0
- package/fonts/fustat-arabic-600-normal.woff2 +0 -0
- package/fonts/fustat-arabic-700-normal.woff2 +0 -0
- package/fonts/fustat-latin-400-normal.woff2 +0 -0
- package/fonts/fustat-latin-500-normal.woff2 +0 -0
- package/fonts/fustat-latin-600-normal.woff2 +0 -0
- package/fonts/fustat-latin-700-normal.woff2 +0 -0
- package/fonts/fustat-latin-ext-400-normal.woff2 +0 -0
- package/fonts/fustat-latin-ext-500-normal.woff2 +0 -0
- package/fonts/fustat-latin-ext-600-normal.woff2 +0 -0
- package/fonts/fustat-latin-ext-700-normal.woff2 +0 -0
- package/fonts/fustat.LICENSE.txt +93 -0
- package/fonts/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-cyrillic-ext-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-greek-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-500-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-vietnamese-700-normal.woff2 +0 -0
- package/fonts/jetbrains-mono.LICENSE.txt +93 -0
- package/fonts/manufacturing-consent-latin-400-normal.woff2 +0 -0
- package/fonts/manufacturing-consent-latin-ext-400-normal.woff2 +0 -0
- package/fonts/manufacturing-consent.LICENSE.txt +93 -0
- package/fonts/unifrakturmaguntia-latin-400-normal.woff2 +0 -0
- package/fonts/unifrakturmaguntia.LICENSE.txt +93 -0
- package/fonts.css +480 -1
- package/package.json +4 -3
- package/src/gothicPaletteRefs.generated.ts +3 -3
- package/src/gothicTheme.ts +126 -4
- package/src/source.ts +1 -1
- package/LICENSE +0 -21
package/dist/source.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/source.ts
|
|
21
21
|
var source_exports = {};
|
|
22
22
|
__export(source_exports, {
|
|
23
|
+
colorModes: () => colorModes,
|
|
23
24
|
gothicIconRegistry: () => gothicIconRegistry,
|
|
24
25
|
gothicPalettes: () => gothicPalettes,
|
|
25
26
|
gothicTheme: () => gothicTheme
|
|
@@ -70,15 +71,15 @@ var gothicIconRegistry = {
|
|
|
70
71
|
|
|
71
72
|
// src/gothicPaletteRefs.generated.ts
|
|
72
73
|
var gothicPaletteRefs = {
|
|
74
|
+
neutral: {
|
|
75
|
+
dark: { 0: "#000000", 10: "#101314", 15: "#191d20", 20: "#24292d", 35: "#3e454b", 40: "#495056", 50: "#5e676e", 65: "#7e8791", 75: "#96a0ab", 80: "#a7b1bb", 95: "#e8f1f6", 100: "#ffffff" }
|
|
76
|
+
},
|
|
73
77
|
purple: {
|
|
74
78
|
dark: { 20: "#481b58", 30: "#5a2370", 60: "#947da6", 75: "#b29bc4", 80: "#c39adb" }
|
|
75
79
|
},
|
|
76
80
|
green: {
|
|
77
81
|
dark: { 5: "#071607", 20: "#244023", 30: "#3a5e2c", 55: "#869b72", 60: "#96a880", 70: "#a3c987", 75: "#b3c79a" }
|
|
78
82
|
},
|
|
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
83
|
yellow: {
|
|
83
84
|
dark: { 15: "#573f0b", 30: "#876515", 60: "#b6a775", 65: "#e6b85e", 70: "#dec074", 75: "#d3c490" }
|
|
84
85
|
},
|
|
@@ -105,6 +106,80 @@ var gothicPaletteRefs = {
|
|
|
105
106
|
// src/gothicTheme.ts
|
|
106
107
|
var { blue, cyan, green, neutral, orange, pink, purple, red, teal, yellow } = gothicPaletteRefs;
|
|
107
108
|
var withAlpha = (color, alpha) => `${color}${alpha}`;
|
|
109
|
+
var SURFACE_TEXT = {
|
|
110
|
+
"--color-text-primary": neutral.dark[95],
|
|
111
|
+
"--color-text-secondary": neutral.dark[75],
|
|
112
|
+
"--color-text-accent": neutral.dark[95]
|
|
113
|
+
};
|
|
114
|
+
var STRIPED_ROW = ":nth-child(even of :not([data-expansion-panel]))";
|
|
115
|
+
var OWN_FILL_RULES = [
|
|
116
|
+
["card", "variant:default"],
|
|
117
|
+
["card", "variant:muted"],
|
|
118
|
+
["clickable-card", "variant:default"],
|
|
119
|
+
["clickable-card", "variant:muted"],
|
|
120
|
+
["selectable-card", "variant:default"],
|
|
121
|
+
["selectable-card", "variant:muted"],
|
|
122
|
+
["section", "variant:section"],
|
|
123
|
+
["section", "variant:muted"],
|
|
124
|
+
["app-shell", "variant:surface"],
|
|
125
|
+
["app-shell", "variant:section"],
|
|
126
|
+
["app-shell-header", "variant:surface"],
|
|
127
|
+
["app-shell-sidenav", "variant:surface"],
|
|
128
|
+
["layout-panel", "base"],
|
|
129
|
+
["layout-content", "base"],
|
|
130
|
+
["code", "base"],
|
|
131
|
+
["avatar", "base"],
|
|
132
|
+
["avatar-group-overflow", "base"],
|
|
133
|
+
["segmented-control-item", "selected"],
|
|
134
|
+
["step-indicator", "progress:not-started"],
|
|
135
|
+
["table-row", "striped", STRIPED_ROW],
|
|
136
|
+
["banner-content", "base"],
|
|
137
|
+
["input-group-text", "base"],
|
|
138
|
+
["text-input", "base"],
|
|
139
|
+
["text-area", "base"],
|
|
140
|
+
["number-input", "base"],
|
|
141
|
+
["date-input", "base"],
|
|
142
|
+
["date-range-input", "base"],
|
|
143
|
+
["date-time-input-date-segment", "base"],
|
|
144
|
+
["date-time-input-time-segment", "base"],
|
|
145
|
+
["time-input", "base"],
|
|
146
|
+
["file-input", "base"],
|
|
147
|
+
["typeahead", "base"],
|
|
148
|
+
["tokenizer", "base"],
|
|
149
|
+
["selector", "variant:input"],
|
|
150
|
+
["multi-selector", "variant:input"],
|
|
151
|
+
["selector-popup", "base"],
|
|
152
|
+
["multi-selector-popup", "base"],
|
|
153
|
+
["dropdown-menu", "base"],
|
|
154
|
+
["dropdown-menu-radio", "base"],
|
|
155
|
+
["context-menu", "base"],
|
|
156
|
+
["popover", "base"],
|
|
157
|
+
["hover-card", "base"],
|
|
158
|
+
["dialog", "base"],
|
|
159
|
+
["drawer", "base"],
|
|
160
|
+
["bottom-sheet", "base"],
|
|
161
|
+
["chat-composer-drawer", "base"]
|
|
162
|
+
];
|
|
163
|
+
function withOwnFillText(components) {
|
|
164
|
+
const out = { ...components };
|
|
165
|
+
for (const [part, key, selector] of OWN_FILL_RULES) {
|
|
166
|
+
const rule = out[part]?.[key] ?? {};
|
|
167
|
+
out[part] = {
|
|
168
|
+
...out[part],
|
|
169
|
+
[key]: selector ? {
|
|
170
|
+
...rule,
|
|
171
|
+
// A table sets its text color on its root, so a painted row
|
|
172
|
+
// sets it again as well as the tokens.
|
|
173
|
+
[selector]: {
|
|
174
|
+
...SURFACE_TEXT,
|
|
175
|
+
color: "var(--color-text-primary)",
|
|
176
|
+
...rule[selector] ?? {}
|
|
177
|
+
}
|
|
178
|
+
} : { ...SURFACE_TEXT, ...rule }
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
return out;
|
|
182
|
+
}
|
|
108
183
|
var gothicSyntax = (0, import_theme.defineSyntaxTheme)({
|
|
109
184
|
name: "astryx-gothic",
|
|
110
185
|
tokens: {
|
|
@@ -142,6 +217,7 @@ var SECONDARY_SELECTOR = {
|
|
|
142
217
|
borderWidth: SECONDARY_BUTTON.borderWidth
|
|
143
218
|
}
|
|
144
219
|
};
|
|
220
|
+
var colorModes = ["dark"];
|
|
145
221
|
var gothicTheme = (0, import_theme.defineTheme)({
|
|
146
222
|
name: "gothic",
|
|
147
223
|
typography: {
|
|
@@ -272,6 +348,8 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
272
348
|
"--radius-element": "0.5rem",
|
|
273
349
|
"--radius-container": "0.75rem",
|
|
274
350
|
"--radius-page": "1.5rem",
|
|
351
|
+
// Chat surfaces stay rounder than cards.
|
|
352
|
+
"--radius-chat": "28px",
|
|
275
353
|
"--radius-full": "9999px",
|
|
276
354
|
// =========================================================================
|
|
277
355
|
// Shadows — restrained, atmospheric
|
|
@@ -285,7 +363,7 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
285
363
|
"--shadow-inset-warning": `inset 0 0 0 1px ${withAlpha(yellow.dark[75], "50")}`,
|
|
286
364
|
"--shadow-inset-error": `inset 0 0 0 1px ${withAlpha(red.dark[75], "50")}`
|
|
287
365
|
},
|
|
288
|
-
components: {
|
|
366
|
+
components: withOwnFillText({
|
|
289
367
|
button: {
|
|
290
368
|
"variant:secondary": SECONDARY_BUTTON,
|
|
291
369
|
"variant:ghost": {
|
|
@@ -301,8 +379,12 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
301
379
|
}
|
|
302
380
|
},
|
|
303
381
|
// Secondary selector triggers match the secondary Button (AST-079 FR2).
|
|
304
|
-
selector: {
|
|
305
|
-
|
|
382
|
+
selector: {
|
|
383
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
384
|
+
},
|
|
385
|
+
"multi-selector": {
|
|
386
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
387
|
+
},
|
|
306
388
|
"complex-selector": { "variant:secondary": SECONDARY_BUTTON },
|
|
307
389
|
badge: {
|
|
308
390
|
base: {
|
|
@@ -356,45 +438,59 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
356
438
|
padding: "var(--spacing-3)",
|
|
357
439
|
borderRadius: "var(--radius-container)"
|
|
358
440
|
},
|
|
441
|
+
// On the accent tint of a selected row or a numbered citation over the
|
|
442
|
+
// card's fill, secondary text needs the next stop.
|
|
443
|
+
"variant:default": { "--color-text-secondary": neutral.dark[80] },
|
|
444
|
+
"variant:muted": { "--color-text-secondary": neutral.dark[80] },
|
|
359
445
|
// Categorical variants — flip --color-text-primary so child
|
|
360
446
|
// XDSText labels stay readable against the dusty pastel bg.
|
|
361
447
|
"variant:blue": {
|
|
448
|
+
"--color-text-accent": "var(--color-text-blue)",
|
|
362
449
|
"--color-text-primary": "var(--color-text-blue)",
|
|
363
450
|
"--color-text-secondary": "var(--color-text-blue)"
|
|
364
451
|
},
|
|
365
452
|
"variant:cyan": {
|
|
453
|
+
"--color-text-accent": "var(--color-text-cyan)",
|
|
366
454
|
"--color-text-primary": "var(--color-text-cyan)",
|
|
367
455
|
"--color-text-secondary": "var(--color-text-cyan)"
|
|
368
456
|
},
|
|
369
457
|
"variant:gray": {
|
|
458
|
+
"--color-text-accent": "var(--color-text-gray)",
|
|
370
459
|
"--color-text-primary": "var(--color-text-gray)",
|
|
371
460
|
"--color-text-secondary": "var(--color-text-gray)"
|
|
372
461
|
},
|
|
373
462
|
"variant:green": {
|
|
463
|
+
"--color-text-accent": "var(--color-text-green)",
|
|
374
464
|
"--color-text-primary": "var(--color-text-green)",
|
|
375
465
|
"--color-text-secondary": "var(--color-text-green)"
|
|
376
466
|
},
|
|
377
467
|
"variant:orange": {
|
|
468
|
+
"--color-text-accent": "var(--color-text-orange)",
|
|
378
469
|
"--color-text-primary": "var(--color-text-orange)",
|
|
379
470
|
"--color-text-secondary": "var(--color-text-orange)"
|
|
380
471
|
},
|
|
381
472
|
"variant:pink": {
|
|
473
|
+
"--color-text-accent": "var(--color-text-pink)",
|
|
382
474
|
"--color-text-primary": "var(--color-text-pink)",
|
|
383
475
|
"--color-text-secondary": "var(--color-text-pink)"
|
|
384
476
|
},
|
|
385
477
|
"variant:purple": {
|
|
478
|
+
"--color-text-accent": "var(--color-text-purple)",
|
|
386
479
|
"--color-text-primary": "var(--color-text-purple)",
|
|
387
480
|
"--color-text-secondary": "var(--color-text-purple)"
|
|
388
481
|
},
|
|
389
482
|
"variant:red": {
|
|
483
|
+
"--color-text-accent": "var(--color-text-red)",
|
|
390
484
|
"--color-text-primary": "var(--color-text-red)",
|
|
391
485
|
"--color-text-secondary": "var(--color-text-red)"
|
|
392
486
|
},
|
|
393
487
|
"variant:teal": {
|
|
488
|
+
"--color-text-accent": "var(--color-text-teal)",
|
|
394
489
|
"--color-text-primary": "var(--color-text-teal)",
|
|
395
490
|
"--color-text-secondary": "var(--color-text-teal)"
|
|
396
491
|
},
|
|
397
492
|
"variant:yellow": {
|
|
493
|
+
"--color-text-accent": "var(--color-text-yellow)",
|
|
398
494
|
"--color-text-primary": "var(--color-text-yellow)",
|
|
399
495
|
"--color-text-secondary": "var(--color-text-yellow)"
|
|
400
496
|
}
|
|
@@ -422,7 +518,7 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
422
518
|
fontFamily: '"Manufacturing Consent", "UnifrakturMaguntia", "Old English Text MT", serif'
|
|
423
519
|
}
|
|
424
520
|
}
|
|
425
|
-
},
|
|
521
|
+
}),
|
|
426
522
|
// Gothic's accent text and icons are one light color. On a media surface
|
|
427
523
|
// they follow that surface's accent, so a dark surface inside a light one
|
|
428
524
|
// gets its light accent back.
|
|
@@ -705,6 +801,7 @@ var gothicPalettes = {
|
|
|
705
801
|
};
|
|
706
802
|
// Annotate the CommonJS export names for ESM import in node:
|
|
707
803
|
0 && (module.exports = {
|
|
804
|
+
colorModes,
|
|
708
805
|
gothicIconRegistry,
|
|
709
806
|
gothicPalettes,
|
|
710
807
|
gothicTheme
|
package/dist/source.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { gothicPalettes, gothicTheme } from './gothicTheme.cjs';
|
|
1
|
+
export { colorModes, gothicPalettes, gothicTheme } from './gothicTheme.cjs';
|
|
2
2
|
export { gothicIconRegistry } from './icons.cjs';
|
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,cAAc,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC"}
|
package/dist/source.mjs
CHANGED
|
@@ -72,15 +72,15 @@ var gothicIconRegistry = {
|
|
|
72
72
|
|
|
73
73
|
// src/gothicPaletteRefs.generated.ts
|
|
74
74
|
var gothicPaletteRefs = {
|
|
75
|
+
neutral: {
|
|
76
|
+
dark: { 0: "#000000", 10: "#101314", 15: "#191d20", 20: "#24292d", 35: "#3e454b", 40: "#495056", 50: "#5e676e", 65: "#7e8791", 75: "#96a0ab", 80: "#a7b1bb", 95: "#e8f1f6", 100: "#ffffff" }
|
|
77
|
+
},
|
|
75
78
|
purple: {
|
|
76
79
|
dark: { 20: "#481b58", 30: "#5a2370", 60: "#947da6", 75: "#b29bc4", 80: "#c39adb" }
|
|
77
80
|
},
|
|
78
81
|
green: {
|
|
79
82
|
dark: { 5: "#071607", 20: "#244023", 30: "#3a5e2c", 55: "#869b72", 60: "#96a880", 70: "#a3c987", 75: "#b3c79a" }
|
|
80
83
|
},
|
|
81
|
-
neutral: {
|
|
82
|
-
dark: { 0: "#000000", 10: "#101314", 15: "#191d20", 20: "#24292d", 35: "#3e454b", 40: "#495056", 50: "#5e676e", 65: "#7e8791", 75: "#96a0ab", 95: "#e8f1f6", 100: "#ffffff" }
|
|
83
|
-
},
|
|
84
84
|
yellow: {
|
|
85
85
|
dark: { 15: "#573f0b", 30: "#876515", 60: "#b6a775", 65: "#e6b85e", 70: "#dec074", 75: "#d3c490" }
|
|
86
86
|
},
|
|
@@ -107,6 +107,80 @@ var gothicPaletteRefs = {
|
|
|
107
107
|
// src/gothicTheme.ts
|
|
108
108
|
var { blue, cyan, green, neutral, orange, pink, purple, red, teal, yellow } = gothicPaletteRefs;
|
|
109
109
|
var withAlpha = (color, alpha) => `${color}${alpha}`;
|
|
110
|
+
var SURFACE_TEXT = {
|
|
111
|
+
"--color-text-primary": neutral.dark[95],
|
|
112
|
+
"--color-text-secondary": neutral.dark[75],
|
|
113
|
+
"--color-text-accent": neutral.dark[95]
|
|
114
|
+
};
|
|
115
|
+
var STRIPED_ROW = ":nth-child(even of :not([data-expansion-panel]))";
|
|
116
|
+
var OWN_FILL_RULES = [
|
|
117
|
+
["card", "variant:default"],
|
|
118
|
+
["card", "variant:muted"],
|
|
119
|
+
["clickable-card", "variant:default"],
|
|
120
|
+
["clickable-card", "variant:muted"],
|
|
121
|
+
["selectable-card", "variant:default"],
|
|
122
|
+
["selectable-card", "variant:muted"],
|
|
123
|
+
["section", "variant:section"],
|
|
124
|
+
["section", "variant:muted"],
|
|
125
|
+
["app-shell", "variant:surface"],
|
|
126
|
+
["app-shell", "variant:section"],
|
|
127
|
+
["app-shell-header", "variant:surface"],
|
|
128
|
+
["app-shell-sidenav", "variant:surface"],
|
|
129
|
+
["layout-panel", "base"],
|
|
130
|
+
["layout-content", "base"],
|
|
131
|
+
["code", "base"],
|
|
132
|
+
["avatar", "base"],
|
|
133
|
+
["avatar-group-overflow", "base"],
|
|
134
|
+
["segmented-control-item", "selected"],
|
|
135
|
+
["step-indicator", "progress:not-started"],
|
|
136
|
+
["table-row", "striped", STRIPED_ROW],
|
|
137
|
+
["banner-content", "base"],
|
|
138
|
+
["input-group-text", "base"],
|
|
139
|
+
["text-input", "base"],
|
|
140
|
+
["text-area", "base"],
|
|
141
|
+
["number-input", "base"],
|
|
142
|
+
["date-input", "base"],
|
|
143
|
+
["date-range-input", "base"],
|
|
144
|
+
["date-time-input-date-segment", "base"],
|
|
145
|
+
["date-time-input-time-segment", "base"],
|
|
146
|
+
["time-input", "base"],
|
|
147
|
+
["file-input", "base"],
|
|
148
|
+
["typeahead", "base"],
|
|
149
|
+
["tokenizer", "base"],
|
|
150
|
+
["selector", "variant:input"],
|
|
151
|
+
["multi-selector", "variant:input"],
|
|
152
|
+
["selector-popup", "base"],
|
|
153
|
+
["multi-selector-popup", "base"],
|
|
154
|
+
["dropdown-menu", "base"],
|
|
155
|
+
["dropdown-menu-radio", "base"],
|
|
156
|
+
["context-menu", "base"],
|
|
157
|
+
["popover", "base"],
|
|
158
|
+
["hover-card", "base"],
|
|
159
|
+
["dialog", "base"],
|
|
160
|
+
["drawer", "base"],
|
|
161
|
+
["bottom-sheet", "base"],
|
|
162
|
+
["chat-composer-drawer", "base"]
|
|
163
|
+
];
|
|
164
|
+
function withOwnFillText(components) {
|
|
165
|
+
const out = { ...components };
|
|
166
|
+
for (const [part, key, selector] of OWN_FILL_RULES) {
|
|
167
|
+
const rule = out[part]?.[key] ?? {};
|
|
168
|
+
out[part] = {
|
|
169
|
+
...out[part],
|
|
170
|
+
[key]: selector ? {
|
|
171
|
+
...rule,
|
|
172
|
+
// A table sets its text color on its root, so a painted row
|
|
173
|
+
// sets it again as well as the tokens.
|
|
174
|
+
[selector]: {
|
|
175
|
+
...SURFACE_TEXT,
|
|
176
|
+
color: "var(--color-text-primary)",
|
|
177
|
+
...rule[selector] ?? {}
|
|
178
|
+
}
|
|
179
|
+
} : { ...SURFACE_TEXT, ...rule }
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
return out;
|
|
183
|
+
}
|
|
110
184
|
var gothicSyntax = defineSyntaxTheme({
|
|
111
185
|
name: "astryx-gothic",
|
|
112
186
|
tokens: {
|
|
@@ -144,6 +218,7 @@ var SECONDARY_SELECTOR = {
|
|
|
144
218
|
borderWidth: SECONDARY_BUTTON.borderWidth
|
|
145
219
|
}
|
|
146
220
|
};
|
|
221
|
+
var colorModes = ["dark"];
|
|
147
222
|
var gothicTheme = defineTheme({
|
|
148
223
|
name: "gothic",
|
|
149
224
|
typography: {
|
|
@@ -274,6 +349,8 @@ var gothicTheme = defineTheme({
|
|
|
274
349
|
"--radius-element": "0.5rem",
|
|
275
350
|
"--radius-container": "0.75rem",
|
|
276
351
|
"--radius-page": "1.5rem",
|
|
352
|
+
// Chat surfaces stay rounder than cards.
|
|
353
|
+
"--radius-chat": "28px",
|
|
277
354
|
"--radius-full": "9999px",
|
|
278
355
|
// =========================================================================
|
|
279
356
|
// Shadows — restrained, atmospheric
|
|
@@ -287,7 +364,7 @@ var gothicTheme = defineTheme({
|
|
|
287
364
|
"--shadow-inset-warning": `inset 0 0 0 1px ${withAlpha(yellow.dark[75], "50")}`,
|
|
288
365
|
"--shadow-inset-error": `inset 0 0 0 1px ${withAlpha(red.dark[75], "50")}`
|
|
289
366
|
},
|
|
290
|
-
components: {
|
|
367
|
+
components: withOwnFillText({
|
|
291
368
|
button: {
|
|
292
369
|
"variant:secondary": SECONDARY_BUTTON,
|
|
293
370
|
"variant:ghost": {
|
|
@@ -303,8 +380,12 @@ var gothicTheme = defineTheme({
|
|
|
303
380
|
}
|
|
304
381
|
},
|
|
305
382
|
// Secondary selector triggers match the secondary Button (AST-079 FR2).
|
|
306
|
-
selector: {
|
|
307
|
-
|
|
383
|
+
selector: {
|
|
384
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
385
|
+
},
|
|
386
|
+
"multi-selector": {
|
|
387
|
+
"variant:secondary": SECONDARY_SELECTOR
|
|
388
|
+
},
|
|
308
389
|
"complex-selector": { "variant:secondary": SECONDARY_BUTTON },
|
|
309
390
|
badge: {
|
|
310
391
|
base: {
|
|
@@ -358,45 +439,59 @@ var gothicTheme = defineTheme({
|
|
|
358
439
|
padding: "var(--spacing-3)",
|
|
359
440
|
borderRadius: "var(--radius-container)"
|
|
360
441
|
},
|
|
442
|
+
// On the accent tint of a selected row or a numbered citation over the
|
|
443
|
+
// card's fill, secondary text needs the next stop.
|
|
444
|
+
"variant:default": { "--color-text-secondary": neutral.dark[80] },
|
|
445
|
+
"variant:muted": { "--color-text-secondary": neutral.dark[80] },
|
|
361
446
|
// Categorical variants — flip --color-text-primary so child
|
|
362
447
|
// XDSText labels stay readable against the dusty pastel bg.
|
|
363
448
|
"variant:blue": {
|
|
449
|
+
"--color-text-accent": "var(--color-text-blue)",
|
|
364
450
|
"--color-text-primary": "var(--color-text-blue)",
|
|
365
451
|
"--color-text-secondary": "var(--color-text-blue)"
|
|
366
452
|
},
|
|
367
453
|
"variant:cyan": {
|
|
454
|
+
"--color-text-accent": "var(--color-text-cyan)",
|
|
368
455
|
"--color-text-primary": "var(--color-text-cyan)",
|
|
369
456
|
"--color-text-secondary": "var(--color-text-cyan)"
|
|
370
457
|
},
|
|
371
458
|
"variant:gray": {
|
|
459
|
+
"--color-text-accent": "var(--color-text-gray)",
|
|
372
460
|
"--color-text-primary": "var(--color-text-gray)",
|
|
373
461
|
"--color-text-secondary": "var(--color-text-gray)"
|
|
374
462
|
},
|
|
375
463
|
"variant:green": {
|
|
464
|
+
"--color-text-accent": "var(--color-text-green)",
|
|
376
465
|
"--color-text-primary": "var(--color-text-green)",
|
|
377
466
|
"--color-text-secondary": "var(--color-text-green)"
|
|
378
467
|
},
|
|
379
468
|
"variant:orange": {
|
|
469
|
+
"--color-text-accent": "var(--color-text-orange)",
|
|
380
470
|
"--color-text-primary": "var(--color-text-orange)",
|
|
381
471
|
"--color-text-secondary": "var(--color-text-orange)"
|
|
382
472
|
},
|
|
383
473
|
"variant:pink": {
|
|
474
|
+
"--color-text-accent": "var(--color-text-pink)",
|
|
384
475
|
"--color-text-primary": "var(--color-text-pink)",
|
|
385
476
|
"--color-text-secondary": "var(--color-text-pink)"
|
|
386
477
|
},
|
|
387
478
|
"variant:purple": {
|
|
479
|
+
"--color-text-accent": "var(--color-text-purple)",
|
|
388
480
|
"--color-text-primary": "var(--color-text-purple)",
|
|
389
481
|
"--color-text-secondary": "var(--color-text-purple)"
|
|
390
482
|
},
|
|
391
483
|
"variant:red": {
|
|
484
|
+
"--color-text-accent": "var(--color-text-red)",
|
|
392
485
|
"--color-text-primary": "var(--color-text-red)",
|
|
393
486
|
"--color-text-secondary": "var(--color-text-red)"
|
|
394
487
|
},
|
|
395
488
|
"variant:teal": {
|
|
489
|
+
"--color-text-accent": "var(--color-text-teal)",
|
|
396
490
|
"--color-text-primary": "var(--color-text-teal)",
|
|
397
491
|
"--color-text-secondary": "var(--color-text-teal)"
|
|
398
492
|
},
|
|
399
493
|
"variant:yellow": {
|
|
494
|
+
"--color-text-accent": "var(--color-text-yellow)",
|
|
400
495
|
"--color-text-primary": "var(--color-text-yellow)",
|
|
401
496
|
"--color-text-secondary": "var(--color-text-yellow)"
|
|
402
497
|
}
|
|
@@ -424,7 +519,7 @@ var gothicTheme = defineTheme({
|
|
|
424
519
|
fontFamily: '"Manufacturing Consent", "UnifrakturMaguntia", "Old English Text MT", serif'
|
|
425
520
|
}
|
|
426
521
|
}
|
|
427
|
-
},
|
|
522
|
+
}),
|
|
428
523
|
// Gothic's accent text and icons are one light color. On a media surface
|
|
429
524
|
// they follow that surface's accent, so a dark surface inside a light one
|
|
430
525
|
// gets its light accent back.
|
|
@@ -706,6 +801,7 @@ var gothicPalettes = {
|
|
|
706
801
|
}
|
|
707
802
|
};
|
|
708
803
|
export {
|
|
804
|
+
colorModes,
|
|
709
805
|
gothicIconRegistry,
|
|
710
806
|
gothicPalettes,
|
|
711
807
|
gothicTheme
|