@astryxdesign/theme-gothic 0.7.1-canary.ff40b78 → 0.7.2-canary.07f97c6
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.d.ts +2 -2
- package/dist/gothic.js +35 -2
- package/dist/gothicTheme.d.ts.map +1 -1
- package/dist/source.js +29 -10
- package/dist/source.mjs +29 -10
- package/dist/theme.css +28 -2
- package/dist/theme.css.d.ts +2 -2
- package/package.json +3 -3
- package/src/gothicTheme.ts +44 -9
package/dist/gothic.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/gothicTheme.ts
|
|
4
4
|
* Command: astryx theme build src/gothicTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.2
|
|
6
|
+
* Core: @astryxdesign/core@0.7.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import type { DefinedTheme } from '@astryxdesign/core/theme';
|
package/dist/gothic.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/gothicTheme.ts
|
|
4
4
|
* Command: astryx theme build src/gothicTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.2
|
|
6
|
+
* Core: @astryxdesign/core@0.7.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { gothicIconRegistry } from "./icons.mjs";
|
|
@@ -98,6 +98,11 @@ export const gothicTheme = {
|
|
|
98
98
|
"--color-syntax-property": "#7cc5b3",
|
|
99
99
|
"--color-syntax-punctuation": "#7a8290",
|
|
100
100
|
"--color-syntax-background": "#101314",
|
|
101
|
+
"--color-syntax-added": "#081408",
|
|
102
|
+
"--color-syntax-removed": "#1e0a0a",
|
|
103
|
+
"--color-syntax-diff-header": "transparent",
|
|
104
|
+
"--color-syntax-added-marker": "#a3c987",
|
|
105
|
+
"--color-syntax-removed-marker": "#d97580",
|
|
101
106
|
"--color-accent": "#E8F1F6",
|
|
102
107
|
"--color-accent-muted": "#E8F1F620",
|
|
103
108
|
"--color-neutral": "#E8F1F61A",
|
|
@@ -303,6 +308,34 @@ export const gothicTheme = {
|
|
|
303
308
|
"color": "var(--color-text-red)"
|
|
304
309
|
}
|
|
305
310
|
},
|
|
311
|
+
"selector": {
|
|
312
|
+
"variant:secondary": {
|
|
313
|
+
":not(.astryx-input-group *)": {
|
|
314
|
+
"backgroundColor": "var(--color-background-gray)",
|
|
315
|
+
"color": "var(--color-text-gray)",
|
|
316
|
+
"borderColor": "transparent",
|
|
317
|
+
"borderWidth": "0"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"multi-selector": {
|
|
322
|
+
"variant:secondary": {
|
|
323
|
+
":not(.astryx-input-group *)": {
|
|
324
|
+
"backgroundColor": "var(--color-background-gray)",
|
|
325
|
+
"color": "var(--color-text-gray)",
|
|
326
|
+
"borderColor": "transparent",
|
|
327
|
+
"borderWidth": "0"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"complex-selector": {
|
|
332
|
+
"variant:secondary": {
|
|
333
|
+
"backgroundColor": "var(--color-background-gray)",
|
|
334
|
+
"color": "var(--color-text-gray)",
|
|
335
|
+
"borderColor": "transparent",
|
|
336
|
+
"borderWidth": "0"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
306
339
|
"badge": {
|
|
307
340
|
"base": {
|
|
308
341
|
"borderRadius": "var(--radius-element)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gothicTheme.d.ts","sourceRoot":"","sources":["../src/gothicTheme.ts"],"names":[],"mappings":"
|
|
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"}
|
package/dist/source.js
CHANGED
|
@@ -98,9 +98,32 @@ var gothicSyntax = (0, import_theme.defineSyntaxTheme)({
|
|
|
98
98
|
// Verdigris
|
|
99
99
|
punctuation: "#7a8290",
|
|
100
100
|
// Mid neutral
|
|
101
|
-
background: "#101314"
|
|
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"
|
|
102
111
|
}
|
|
103
112
|
});
|
|
113
|
+
var SECONDARY_BUTTON = {
|
|
114
|
+
backgroundColor: "var(--color-background-gray)",
|
|
115
|
+
color: "var(--color-text-gray)",
|
|
116
|
+
borderColor: "transparent",
|
|
117
|
+
borderWidth: "0"
|
|
118
|
+
};
|
|
119
|
+
var SECONDARY_SELECTOR = {
|
|
120
|
+
":not(.astryx-input-group *)": {
|
|
121
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
122
|
+
color: SECONDARY_BUTTON.color,
|
|
123
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
124
|
+
borderWidth: SECONDARY_BUTTON.borderWidth
|
|
125
|
+
}
|
|
126
|
+
};
|
|
104
127
|
var gothicTheme = (0, import_theme.defineTheme)({
|
|
105
128
|
name: "gothic",
|
|
106
129
|
typography: {
|
|
@@ -261,15 +284,7 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
261
284
|
},
|
|
262
285
|
components: {
|
|
263
286
|
button: {
|
|
264
|
-
|
|
265
|
-
// --color-accent / --color-on-accent (matches the cream badge).
|
|
266
|
-
// Secondary uses the dark-slate "neutral" badge treatment.
|
|
267
|
-
"variant:secondary": {
|
|
268
|
-
backgroundColor: "var(--color-background-gray)",
|
|
269
|
-
color: "var(--color-text-gray)",
|
|
270
|
-
borderColor: "transparent",
|
|
271
|
-
borderWidth: "0"
|
|
272
|
-
},
|
|
287
|
+
"variant:secondary": SECONDARY_BUTTON,
|
|
273
288
|
"variant:ghost": {
|
|
274
289
|
":hover": {
|
|
275
290
|
backgroundColor: "var(--color-overlay-hover)"
|
|
@@ -282,6 +297,10 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
282
297
|
color: "var(--color-text-red)"
|
|
283
298
|
}
|
|
284
299
|
},
|
|
300
|
+
// Secondary selector triggers match the secondary Button (AST-079 FR2).
|
|
301
|
+
selector: { "variant:secondary": SECONDARY_SELECTOR },
|
|
302
|
+
"multi-selector": { "variant:secondary": SECONDARY_SELECTOR },
|
|
303
|
+
"complex-selector": { "variant:secondary": SECONDARY_BUTTON },
|
|
285
304
|
badge: {
|
|
286
305
|
base: {
|
|
287
306
|
borderRadius: "var(--radius-element)",
|
package/dist/source.mjs
CHANGED
|
@@ -100,9 +100,32 @@ var gothicSyntax = defineSyntaxTheme({
|
|
|
100
100
|
// Verdigris
|
|
101
101
|
punctuation: "#7a8290",
|
|
102
102
|
// Mid neutral
|
|
103
|
-
background: "#101314"
|
|
103
|
+
background: "#101314",
|
|
104
|
+
// Diff rows on the near-black background: any lighter wash lowers every
|
|
105
|
+
// light token's contrast, so the rows take opaque hues at the
|
|
106
|
+
// background's own luminance — a deep green and a deep red that read as
|
|
107
|
+
// colour, not brightness — and every token keeps the contrast it has on
|
|
108
|
+
// the plain background. Markers: forest moss and blood crimson.
|
|
109
|
+
added: "#081408",
|
|
110
|
+
removed: "#1e0a0a",
|
|
111
|
+
"added-marker": "#a3c987",
|
|
112
|
+
"removed-marker": "#d97580"
|
|
104
113
|
}
|
|
105
114
|
});
|
|
115
|
+
var SECONDARY_BUTTON = {
|
|
116
|
+
backgroundColor: "var(--color-background-gray)",
|
|
117
|
+
color: "var(--color-text-gray)",
|
|
118
|
+
borderColor: "transparent",
|
|
119
|
+
borderWidth: "0"
|
|
120
|
+
};
|
|
121
|
+
var SECONDARY_SELECTOR = {
|
|
122
|
+
":not(.astryx-input-group *)": {
|
|
123
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
124
|
+
color: SECONDARY_BUTTON.color,
|
|
125
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
126
|
+
borderWidth: SECONDARY_BUTTON.borderWidth
|
|
127
|
+
}
|
|
128
|
+
};
|
|
106
129
|
var gothicTheme = defineTheme({
|
|
107
130
|
name: "gothic",
|
|
108
131
|
typography: {
|
|
@@ -263,15 +286,7 @@ var gothicTheme = defineTheme({
|
|
|
263
286
|
},
|
|
264
287
|
components: {
|
|
265
288
|
button: {
|
|
266
|
-
|
|
267
|
-
// --color-accent / --color-on-accent (matches the cream badge).
|
|
268
|
-
// Secondary uses the dark-slate "neutral" badge treatment.
|
|
269
|
-
"variant:secondary": {
|
|
270
|
-
backgroundColor: "var(--color-background-gray)",
|
|
271
|
-
color: "var(--color-text-gray)",
|
|
272
|
-
borderColor: "transparent",
|
|
273
|
-
borderWidth: "0"
|
|
274
|
-
},
|
|
289
|
+
"variant:secondary": SECONDARY_BUTTON,
|
|
275
290
|
"variant:ghost": {
|
|
276
291
|
":hover": {
|
|
277
292
|
backgroundColor: "var(--color-overlay-hover)"
|
|
@@ -284,6 +299,10 @@ var gothicTheme = defineTheme({
|
|
|
284
299
|
color: "var(--color-text-red)"
|
|
285
300
|
}
|
|
286
301
|
},
|
|
302
|
+
// Secondary selector triggers match the secondary Button (AST-079 FR2).
|
|
303
|
+
selector: { "variant:secondary": SECONDARY_SELECTOR },
|
|
304
|
+
"multi-selector": { "variant:secondary": SECONDARY_SELECTOR },
|
|
305
|
+
"complex-selector": { "variant:secondary": SECONDARY_BUTTON },
|
|
287
306
|
badge: {
|
|
288
307
|
base: {
|
|
289
308
|
borderRadius: "var(--radius-element)",
|
package/dist/theme.css
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/gothicTheme.ts
|
|
4
4
|
* Command: astryx theme build src/gothicTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.2
|
|
6
|
+
* Core: @astryxdesign/core@0.7.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
@layer reset, astryx-base, astryx-theme;
|
|
@@ -162,6 +162,11 @@
|
|
|
162
162
|
--color-syntax-property: #7cc5b3;
|
|
163
163
|
--color-syntax-punctuation: #7a8290;
|
|
164
164
|
--color-syntax-background: #101314;
|
|
165
|
+
--color-syntax-added: #081408;
|
|
166
|
+
--color-syntax-removed: #1e0a0a;
|
|
167
|
+
--color-syntax-diff-header: transparent;
|
|
168
|
+
--color-syntax-added-marker: #a3c987;
|
|
169
|
+
--color-syntax-removed-marker: #d97580;
|
|
165
170
|
--color-accent: #E8F1F6;
|
|
166
171
|
--color-accent-muted: #E8F1F620;
|
|
167
172
|
--color-neutral: #E8F1F61A;
|
|
@@ -383,6 +388,27 @@
|
|
|
383
388
|
color: var(--color-text-red);
|
|
384
389
|
}
|
|
385
390
|
|
|
391
|
+
.astryx-selector[data-variant="secondary"]:not(.astryx-input-group *) {
|
|
392
|
+
background-color: var(--color-background-gray);
|
|
393
|
+
color: var(--color-text-gray);
|
|
394
|
+
border-color: transparent;
|
|
395
|
+
border-width: 0;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.astryx-multi-selector[data-variant="secondary"]:not(.astryx-input-group *) {
|
|
399
|
+
background-color: var(--color-background-gray);
|
|
400
|
+
color: var(--color-text-gray);
|
|
401
|
+
border-color: transparent;
|
|
402
|
+
border-width: 0;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.astryx-complex-selector[data-variant="secondary"] {
|
|
406
|
+
background-color: var(--color-background-gray);
|
|
407
|
+
color: var(--color-text-gray);
|
|
408
|
+
border-color: transparent;
|
|
409
|
+
border-width: 0;
|
|
410
|
+
}
|
|
411
|
+
|
|
386
412
|
.astryx-badge {
|
|
387
413
|
border-radius: var(--radius-element);
|
|
388
414
|
font-weight: var(--font-weight-medium);
|
package/dist/theme.css.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/gothicTheme.ts
|
|
4
4
|
* Command: astryx theme build src/gothicTheme.ts --out dist/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.2
|
|
6
|
+
* Core: @astryxdesign/core@0.7.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-gothic",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2-canary.07f97c6",
|
|
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.",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"lucide-react": "^1.18.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@astryxdesign/core": "0.7.
|
|
60
|
+
"@astryxdesign/core": "0.7.2-canary.07f97c6",
|
|
61
61
|
"react": ">=19"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@astryxdesign/cli": "0.7.
|
|
64
|
+
"@astryxdesign/cli": "0.7.2-canary.07f97c6"
|
|
65
65
|
},
|
|
66
66
|
"module": "./dist/source.mjs",
|
|
67
67
|
"scripts": {
|
package/src/gothicTheme.ts
CHANGED
|
@@ -40,9 +40,48 @@ const gothicSyntax = defineSyntaxTheme({
|
|
|
40
40
|
property: '#7cc5b3', // Verdigris
|
|
41
41
|
punctuation: '#7a8290', // Mid neutral
|
|
42
42
|
background: '#101314',
|
|
43
|
+
// Diff rows on the near-black background: any lighter wash lowers every
|
|
44
|
+
// light token's contrast, so the rows take opaque hues at the
|
|
45
|
+
// background's own luminance — a deep green and a deep red that read as
|
|
46
|
+
// colour, not brightness — and every token keeps the contrast it has on
|
|
47
|
+
// the plain background. Markers: forest moss and blood crimson.
|
|
48
|
+
added: '#081408',
|
|
49
|
+
removed: '#1e0a0a',
|
|
50
|
+
'added-marker': '#a3c987',
|
|
51
|
+
'removed-marker': '#d97580',
|
|
43
52
|
},
|
|
44
53
|
});
|
|
45
54
|
|
|
55
|
+
/**
|
|
56
|
+
* The secondary Button treatment. Selector, MultiSelector, and ComplexSelector
|
|
57
|
+
* reuse it for their `secondary` trigger so every secondary control in this
|
|
58
|
+
* theme matches (AST-079 FR2).
|
|
59
|
+
*
|
|
60
|
+
* Primary inherits default — light pill with dark text via
|
|
61
|
+
* --color-accent / --color-on-accent (matches the cream badge).
|
|
62
|
+
* Secondary uses the dark-slate "neutral" badge treatment.
|
|
63
|
+
*/
|
|
64
|
+
const SECONDARY_BUTTON = {
|
|
65
|
+
backgroundColor: 'var(--color-background-gray)',
|
|
66
|
+
color: 'var(--color-text-gray)',
|
|
67
|
+
borderColor: 'transparent',
|
|
68
|
+
borderWidth: '0',
|
|
69
|
+
} as const;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The secondary Button treatment on Selector and MultiSelector triggers
|
|
73
|
+
* (AST-079 FR2). Inside an InputGroup a trigger keeps the neutral fill and the
|
|
74
|
+
* group's edges instead (FR6).
|
|
75
|
+
*/
|
|
76
|
+
const SECONDARY_SELECTOR = {
|
|
77
|
+
':not(.astryx-input-group *)': {
|
|
78
|
+
backgroundColor: SECONDARY_BUTTON.backgroundColor,
|
|
79
|
+
color: SECONDARY_BUTTON.color,
|
|
80
|
+
borderColor: SECONDARY_BUTTON.borderColor,
|
|
81
|
+
borderWidth: SECONDARY_BUTTON.borderWidth,
|
|
82
|
+
},
|
|
83
|
+
} as const;
|
|
84
|
+
|
|
46
85
|
export const gothicTheme = defineTheme({
|
|
47
86
|
name: 'gothic',
|
|
48
87
|
|
|
@@ -227,15 +266,7 @@ export const gothicTheme = defineTheme({
|
|
|
227
266
|
|
|
228
267
|
components: {
|
|
229
268
|
button: {
|
|
230
|
-
|
|
231
|
-
// --color-accent / --color-on-accent (matches the cream badge).
|
|
232
|
-
// Secondary uses the dark-slate "neutral" badge treatment.
|
|
233
|
-
'variant:secondary': {
|
|
234
|
-
backgroundColor: 'var(--color-background-gray)',
|
|
235
|
-
color: 'var(--color-text-gray)',
|
|
236
|
-
borderColor: 'transparent',
|
|
237
|
-
borderWidth: '0',
|
|
238
|
-
},
|
|
269
|
+
'variant:secondary': SECONDARY_BUTTON,
|
|
239
270
|
'variant:ghost': {
|
|
240
271
|
':hover': {
|
|
241
272
|
backgroundColor: 'var(--color-overlay-hover)',
|
|
@@ -248,6 +279,10 @@ export const gothicTheme = defineTheme({
|
|
|
248
279
|
color: 'var(--color-text-red)',
|
|
249
280
|
},
|
|
250
281
|
},
|
|
282
|
+
// Secondary selector triggers match the secondary Button (AST-079 FR2).
|
|
283
|
+
selector: {'variant:secondary': SECONDARY_SELECTOR},
|
|
284
|
+
'multi-selector': {'variant:secondary': SECONDARY_SELECTOR},
|
|
285
|
+
'complex-selector': {'variant:secondary': SECONDARY_BUTTON},
|
|
251
286
|
|
|
252
287
|
badge: {
|
|
253
288
|
base: {
|