@astryxdesign/theme-gothic 0.7.1-canary.9d2b656 → 0.7.1-canary.9f2cdc0
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 +28 -0
- package/dist/gothicTheme.d.ts.map +1 -1
- package/dist/source.js +19 -9
- package/dist/source.mjs +19 -9
- package/dist/theme.css +21 -0
- package/package.json +3 -3
- package/src/gothicTheme.ts +35 -9
package/dist/gothic.js
CHANGED
|
@@ -308,6 +308,34 @@ export const gothicTheme = {
|
|
|
308
308
|
"color": "var(--color-text-red)"
|
|
309
309
|
}
|
|
310
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
|
+
},
|
|
311
339
|
"badge": {
|
|
312
340
|
"base": {
|
|
313
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
|
@@ -110,6 +110,20 @@ var gothicSyntax = (0, import_theme.defineSyntaxTheme)({
|
|
|
110
110
|
"removed-marker": "#d97580"
|
|
111
111
|
}
|
|
112
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
|
+
};
|
|
113
127
|
var gothicTheme = (0, import_theme.defineTheme)({
|
|
114
128
|
name: "gothic",
|
|
115
129
|
typography: {
|
|
@@ -270,15 +284,7 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
270
284
|
},
|
|
271
285
|
components: {
|
|
272
286
|
button: {
|
|
273
|
-
|
|
274
|
-
// --color-accent / --color-on-accent (matches the cream badge).
|
|
275
|
-
// Secondary uses the dark-slate "neutral" badge treatment.
|
|
276
|
-
"variant:secondary": {
|
|
277
|
-
backgroundColor: "var(--color-background-gray)",
|
|
278
|
-
color: "var(--color-text-gray)",
|
|
279
|
-
borderColor: "transparent",
|
|
280
|
-
borderWidth: "0"
|
|
281
|
-
},
|
|
287
|
+
"variant:secondary": SECONDARY_BUTTON,
|
|
282
288
|
"variant:ghost": {
|
|
283
289
|
":hover": {
|
|
284
290
|
backgroundColor: "var(--color-overlay-hover)"
|
|
@@ -291,6 +297,10 @@ var gothicTheme = (0, import_theme.defineTheme)({
|
|
|
291
297
|
color: "var(--color-text-red)"
|
|
292
298
|
}
|
|
293
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 },
|
|
294
304
|
badge: {
|
|
295
305
|
base: {
|
|
296
306
|
borderRadius: "var(--radius-element)",
|
package/dist/source.mjs
CHANGED
|
@@ -112,6 +112,20 @@ var gothicSyntax = defineSyntaxTheme({
|
|
|
112
112
|
"removed-marker": "#d97580"
|
|
113
113
|
}
|
|
114
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
|
+
};
|
|
115
129
|
var gothicTheme = defineTheme({
|
|
116
130
|
name: "gothic",
|
|
117
131
|
typography: {
|
|
@@ -272,15 +286,7 @@ var gothicTheme = defineTheme({
|
|
|
272
286
|
},
|
|
273
287
|
components: {
|
|
274
288
|
button: {
|
|
275
|
-
|
|
276
|
-
// --color-accent / --color-on-accent (matches the cream badge).
|
|
277
|
-
// Secondary uses the dark-slate "neutral" badge treatment.
|
|
278
|
-
"variant:secondary": {
|
|
279
|
-
backgroundColor: "var(--color-background-gray)",
|
|
280
|
-
color: "var(--color-text-gray)",
|
|
281
|
-
borderColor: "transparent",
|
|
282
|
-
borderWidth: "0"
|
|
283
|
-
},
|
|
289
|
+
"variant:secondary": SECONDARY_BUTTON,
|
|
284
290
|
"variant:ghost": {
|
|
285
291
|
":hover": {
|
|
286
292
|
backgroundColor: "var(--color-overlay-hover)"
|
|
@@ -293,6 +299,10 @@ var gothicTheme = defineTheme({
|
|
|
293
299
|
color: "var(--color-text-red)"
|
|
294
300
|
}
|
|
295
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 },
|
|
296
306
|
badge: {
|
|
297
307
|
base: {
|
|
298
308
|
borderRadius: "var(--radius-element)",
|
package/dist/theme.css
CHANGED
|
@@ -388,6 +388,27 @@
|
|
|
388
388
|
color: var(--color-text-red);
|
|
389
389
|
}
|
|
390
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
|
+
|
|
391
412
|
.astryx-badge {
|
|
392
413
|
border-radius: var(--radius-element);
|
|
393
414
|
font-weight: var(--font-weight-medium);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-gothic",
|
|
3
|
-
"version": "0.7.1-canary.
|
|
3
|
+
"version": "0.7.1-canary.9f2cdc0",
|
|
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.1-canary.
|
|
60
|
+
"@astryxdesign/core": "0.7.1-canary.9f2cdc0",
|
|
61
61
|
"react": ">=19"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@astryxdesign/cli": "0.7.1-canary.
|
|
64
|
+
"@astryxdesign/cli": "0.7.1-canary.9f2cdc0"
|
|
65
65
|
},
|
|
66
66
|
"module": "./dist/source.mjs",
|
|
67
67
|
"scripts": {
|
package/src/gothicTheme.ts
CHANGED
|
@@ -52,6 +52,36 @@ const gothicSyntax = defineSyntaxTheme({
|
|
|
52
52
|
},
|
|
53
53
|
});
|
|
54
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
|
+
|
|
55
85
|
export const gothicTheme = defineTheme({
|
|
56
86
|
name: 'gothic',
|
|
57
87
|
|
|
@@ -236,15 +266,7 @@ export const gothicTheme = defineTheme({
|
|
|
236
266
|
|
|
237
267
|
components: {
|
|
238
268
|
button: {
|
|
239
|
-
|
|
240
|
-
// --color-accent / --color-on-accent (matches the cream badge).
|
|
241
|
-
// Secondary uses the dark-slate "neutral" badge treatment.
|
|
242
|
-
'variant:secondary': {
|
|
243
|
-
backgroundColor: 'var(--color-background-gray)',
|
|
244
|
-
color: 'var(--color-text-gray)',
|
|
245
|
-
borderColor: 'transparent',
|
|
246
|
-
borderWidth: '0',
|
|
247
|
-
},
|
|
269
|
+
'variant:secondary': SECONDARY_BUTTON,
|
|
248
270
|
'variant:ghost': {
|
|
249
271
|
':hover': {
|
|
250
272
|
backgroundColor: 'var(--color-overlay-hover)',
|
|
@@ -257,6 +279,10 @@ export const gothicTheme = defineTheme({
|
|
|
257
279
|
color: 'var(--color-text-red)',
|
|
258
280
|
},
|
|
259
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},
|
|
260
286
|
|
|
261
287
|
badge: {
|
|
262
288
|
base: {
|