@astryxdesign/cli 0.4.7-canary.d895769 → 0.4.7-canary.dd94f7f
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.
|
@@ -36,7 +36,11 @@ const clipStyle: CSSProperties = {
|
|
|
36
36
|
// 3 columns on desktop, dropping straight to 1 column below 720px (no 2-col
|
|
37
37
|
// middle state). minmax(0, 1fr) (not 1fr) so tracks split evenly and ignore the
|
|
38
38
|
// images' intrinsic min-width. The hero spans 2 columns on desktop, then fills
|
|
39
|
-
// the row once it's single-column
|
|
39
|
+
// the row once it's single-column — and switches from 3:1 to 3:2 with a plain
|
|
40
|
+
// aspect-ratio override. AspectRatio's ratio is a class-level declaration in
|
|
41
|
+
// @layer astryx-base, and this <style> tag is unlayered, so the override wins
|
|
42
|
+
// regardless of specificity — every stacked tile is uniform without rendering
|
|
43
|
+
// the hero twice.
|
|
40
44
|
const GALLERY_CSS = `
|
|
41
45
|
.mixed-gallery-grid {
|
|
42
46
|
display: grid;
|
|
@@ -52,6 +56,7 @@ const GALLERY_CSS = `
|
|
|
52
56
|
}
|
|
53
57
|
.mixed-gallery-hero {
|
|
54
58
|
grid-column: 1 / -1;
|
|
59
|
+
aspect-ratio: 3 / 2;
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
`;
|
|
@@ -134,9 +139,13 @@ export default function MixedGalleryTemplate() {
|
|
|
134
139
|
of three. Every tile is 3:2 except the hero, which is 3:1 so that
|
|
135
140
|
(being 2 columns wide) it matches the row height exactly. All
|
|
136
141
|
rows are therefore the same height. Responsive via @container:
|
|
137
|
-
3 columns → 1 column at ≤720px
|
|
142
|
+
3 columns → 1 column at ≤720px, where the hero drops to 3:2 so
|
|
143
|
+
the stacked tiles are uniform. */}
|
|
138
144
|
<div className="mixed-gallery-grid">
|
|
139
|
-
{/* Hero — spans 2 columns; 3:1 keeps it level with the sidebar
|
|
145
|
+
{/* Hero — spans 2 columns; 3:1 keeps it level with the sidebar.
|
|
146
|
+
Stacked, the unlayered aspect-ratio override switches it to
|
|
147
|
+
3:2 (see GALLERY_CSS) — one element, no duplicate hero
|
|
148
|
+
markup. */}
|
|
140
149
|
<GalleryCard
|
|
141
150
|
image={IMAGES[0]}
|
|
142
151
|
ratio={3 / 1}
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
* icon = T30 / T80
|
|
25
25
|
* text = T30 / T80
|
|
26
26
|
*
|
|
27
|
-
* All 9 saturated badge values pass WCAG AA (5
|
|
27
|
+
* All 9 saturated badge values pass WCAG AA against their label (>= 4.5:1);
|
|
28
|
+
* `scripts/check-badge-contrast.test.mjs` holds every theme to that.
|
|
28
29
|
*
|
|
29
30
|
* Only overrides tokens that differ from the defaults.
|
|
30
31
|
*/
|
|
@@ -432,10 +433,14 @@ export const neutralTheme = defineTheme({
|
|
|
432
433
|
color: '#171717',
|
|
433
434
|
},
|
|
434
435
|
'variant:error': {
|
|
435
|
-
// Light: T55 #e33f4a
|
|
436
|
+
// Light: T58 #c9303a. The T55 stop #e33f4a pairs with white at only
|
|
437
|
+
// 4.14:1 — the label is 12px/500, so AA wants 4.5, not the 3:1
|
|
438
|
+
// large-text allowance. One tonal step down holds the hue
|
|
439
|
+
// (OKLCH H 21.9 -> 22.8, C 0.200 -> 0.189) and reaches 5.29:1.
|
|
436
440
|
// Dark : T60 stop from dark-mode tonal palette of Tailwind red-600
|
|
437
|
-
// source #dc2626 (kept on H=27 alarm-red rather than coral)
|
|
438
|
-
|
|
441
|
+
// source #dc2626 (kept on H=27 alarm-red rather than coral).
|
|
442
|
+
// Dark text on it is 6.60:1 and unchanged.
|
|
443
|
+
backgroundColor: 'light-dark(#c9303a, #ff705d)',
|
|
439
444
|
color: 'light-dark(#ffffff, #171717)',
|
|
440
445
|
},
|
|
441
446
|
|
|
@@ -500,7 +505,7 @@ export const neutralTheme = defineTheme({
|
|
|
500
505
|
//
|
|
501
506
|
// success → badge success bg (green T45 / dark-ramp T60)
|
|
502
507
|
// warning → badge warning bg (yellow T85, same hex both modes)
|
|
503
|
-
// error → badge error bg (red
|
|
508
|
+
// error → badge error bg (red T58 / dark-ramp T60)
|
|
504
509
|
// accent → badge info bg (blue T50 / dark-ramp T60) — the
|
|
505
510
|
// StatusDot "accent" is the info/attention color, so it
|
|
506
511
|
// pairs with the info badge rather than --color-accent
|
|
@@ -515,7 +520,7 @@ export const neutralTheme = defineTheme({
|
|
|
515
520
|
statusdot: {
|
|
516
521
|
'variant:success': {backgroundColor: 'light-dark(#198100, #64af4c)'},
|
|
517
522
|
'variant:warning': {backgroundColor: '#ffce2f'},
|
|
518
|
-
'variant:error': {backgroundColor: 'light-dark(#
|
|
523
|
+
'variant:error': {backgroundColor: 'light-dark(#c9303a, #ff705d)'},
|
|
519
524
|
'variant:accent': {backgroundColor: 'light-dark(#0074e2, #6d9cfe)'},
|
|
520
525
|
},
|
|
521
526
|
|
|
@@ -611,8 +616,8 @@ export const neutralTheme = defineTheme({
|
|
|
611
616
|
'--color-warning': '#ffce2f',
|
|
612
617
|
},
|
|
613
618
|
'variant:error': {
|
|
614
|
-
// Red
|
|
615
|
-
'--color-error': '#
|
|
619
|
+
// Red T58 saturated stop (= variant:error badge bg)
|
|
620
|
+
'--color-error': '#c9303a',
|
|
616
621
|
},
|
|
617
622
|
},
|
|
618
623
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.4.7-canary.
|
|
3
|
+
"version": "0.4.7-canary.dd94f7f",
|
|
4
4
|
"displayName": "CLI",
|
|
5
5
|
"description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
"zod": "^4.4.3"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@astryxdesign/charts": "0.4.7-canary.
|
|
91
|
-
"@astryxdesign/core": "0.4.7-canary.
|
|
92
|
-
"@astryxdesign/lab": "0.4.7-canary.
|
|
93
|
-
"@astryxdesign/theme-neutral": "0.4.7-canary.
|
|
90
|
+
"@astryxdesign/charts": "0.4.7-canary.dd94f7f",
|
|
91
|
+
"@astryxdesign/core": "0.4.7-canary.dd94f7f",
|
|
92
|
+
"@astryxdesign/lab": "0.4.7-canary.dd94f7f",
|
|
93
|
+
"@astryxdesign/theme-neutral": "0.4.7-canary.dd94f7f",
|
|
94
94
|
"gpt-tokenizer": "^3.4.0"
|
|
95
95
|
},
|
|
96
96
|
"peerDependenciesMeta": {
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@astryxdesign/charts": "0.4.7-canary.
|
|
112
|
-
"@astryxdesign/core": "0.4.7-canary.
|
|
113
|
-
"@astryxdesign/lab": "0.4.7-canary.
|
|
114
|
-
"@astryxdesign/theme-neutral": "0.4.7-canary.
|
|
111
|
+
"@astryxdesign/charts": "0.4.7-canary.dd94f7f",
|
|
112
|
+
"@astryxdesign/core": "0.4.7-canary.dd94f7f",
|
|
113
|
+
"@astryxdesign/lab": "0.4.7-canary.dd94f7f",
|
|
114
|
+
"@astryxdesign/theme-neutral": "0.4.7-canary.dd94f7f",
|
|
115
115
|
"gpt-tokenizer": "^3.4.0"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|