@behavioral-agentic-design-system/core 0.24.0 → 0.26.0

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.
Files changed (131) hide show
  1. package/package.json +5 -2
  2. package/scripts/build-tokens.cjs +79 -5
  3. package/src/app/preview/components/page.tsx +4474 -208
  4. package/src/app/shell.tsx +18 -6
  5. package/src/components/customize/brand-mark-section.tsx +1 -1
  6. package/src/components/customize-tab.tsx +2 -2
  7. package/src/components/home-tab.tsx +2 -2
  8. package/src/components/ui/action-bar.tsx +142 -0
  9. package/src/components/ui/affix.tsx +109 -0
  10. package/src/components/ui/alert.tsx +37 -3
  11. package/src/components/ui/anchor.tsx +136 -0
  12. package/src/components/ui/angle-slider.tsx +265 -0
  13. package/src/components/ui/autocomplete.tsx +223 -0
  14. package/src/components/ui/avatar.tsx +8 -2
  15. package/src/components/ui/blockquote.tsx +112 -0
  16. package/src/components/ui/bottom-navigation.tsx +144 -0
  17. package/src/components/ui/burger.tsx +117 -0
  18. package/src/components/ui/button.tsx +101 -3
  19. package/src/components/ui/calendar.tsx +1 -1
  20. package/src/components/ui/card.tsx +43 -5
  21. package/src/components/ui/carousel.tsx +10 -5
  22. package/src/components/ui/cascader.tsx +253 -0
  23. package/src/components/ui/checkbox-card.tsx +176 -0
  24. package/src/components/ui/checkbox-group.tsx +231 -0
  25. package/src/components/ui/checkbox.tsx +14 -3
  26. package/src/components/ui/chip.tsx +143 -0
  27. package/src/components/ui/circular-progress.tsx +2 -2
  28. package/src/components/ui/color-swatch.tsx +73 -0
  29. package/src/components/ui/copy-button.tsx +21 -4
  30. package/src/components/ui/date-picker.tsx +6 -3
  31. package/src/components/ui/date-range-picker.tsx +6 -3
  32. package/src/components/ui/float-label.tsx +114 -0
  33. package/src/components/ui/floating-panel.tsx +129 -0
  34. package/src/components/ui/format-number.tsx +122 -0
  35. package/src/components/ui/highlight.tsx +85 -0
  36. package/src/components/ui/image.tsx +195 -0
  37. package/src/components/ui/index.ts +50 -0
  38. package/src/components/ui/indicator.tsx +2 -2
  39. package/src/components/ui/input.tsx +48 -4
  40. package/src/components/ui/kbd.tsx +1 -1
  41. package/src/components/ui/link.tsx +158 -0
  42. package/src/components/ui/listbox.tsx +426 -0
  43. package/src/components/ui/loading-overlay.tsx +80 -0
  44. package/src/components/ui/marquee.tsx +193 -0
  45. package/src/components/ui/masonry.tsx +164 -0
  46. package/src/components/ui/meter.tsx +186 -0
  47. package/src/components/ui/motion-toggle.tsx +170 -0
  48. package/src/components/ui/notification.tsx +175 -0
  49. package/src/components/ui/overlay.tsx +63 -0
  50. package/src/components/ui/progress.tsx +95 -4
  51. package/src/components/ui/rating-group.tsx +1 -0
  52. package/src/components/ui/separator.tsx +57 -1
  53. package/src/components/ui/sidebar.tsx +1 -1
  54. package/src/components/ui/signature-pad.tsx +381 -0
  55. package/src/components/ui/skeleton.tsx +59 -2
  56. package/src/components/ui/skip-link.tsx +117 -0
  57. package/src/components/ui/slider.tsx +86 -1
  58. package/src/components/ui/spoiler.tsx +131 -0
  59. package/src/components/ui/tabs.tsx +1 -1
  60. package/src/components/ui/text.tsx +135 -0
  61. package/src/components/ui/textarea.tsx +66 -2
  62. package/src/components/ui/timeline.tsx +71 -14
  63. package/src/components/ui/timer.tsx +183 -0
  64. package/src/components/ui/tour.tsx +332 -0
  65. package/src/components/ui/transfer-list.tsx +308 -0
  66. package/src/components/ui/visually-hidden.tsx +42 -0
  67. package/src/components/ui/watermark.tsx +0 -0
  68. package/src/data/docs-index.ts +9 -2
  69. package/src/stories/ActionBar.stories.tsx +201 -0
  70. package/src/stories/Affix.stories.tsx +165 -0
  71. package/src/stories/Alert.stories.tsx +58 -0
  72. package/src/stories/Anchor.stories.tsx +236 -0
  73. package/src/stories/AngleSlider.stories.tsx +128 -0
  74. package/src/stories/Autocomplete.stories.tsx +216 -0
  75. package/src/stories/Avatar.stories.tsx +73 -1
  76. package/src/stories/Blockquote.stories.tsx +148 -0
  77. package/src/stories/BottomNavigation.stories.tsx +195 -0
  78. package/src/stories/Burger.stories.tsx +79 -0
  79. package/src/stories/Button.stories.tsx +103 -2
  80. package/src/stories/Calendar.stories.tsx +4 -0
  81. package/src/stories/Card.stories.tsx +30 -0
  82. package/src/stories/Carousel.stories.tsx +2 -1
  83. package/src/stories/Cascader.stories.tsx +285 -0
  84. package/src/stories/Checkbox.stories.tsx +13 -0
  85. package/src/stories/CheckboxCard.stories.tsx +210 -0
  86. package/src/stories/CheckboxGroup.stories.tsx +186 -0
  87. package/src/stories/Chip.stories.tsx +173 -0
  88. package/src/stories/CircularProgress.stories.tsx +3 -0
  89. package/src/stories/ColorSwatch.stories.tsx +81 -0
  90. package/src/stories/CopyButton.stories.tsx +3 -3
  91. package/src/stories/DatePicker.stories.tsx +3 -0
  92. package/src/stories/DateRangePicker.stories.tsx +3 -0
  93. package/src/stories/Editable.stories.tsx +14 -0
  94. package/src/stories/FloatLabel.stories.tsx +148 -0
  95. package/src/stories/FloatingPanel.stories.tsx +176 -0
  96. package/src/stories/FormatNumber.stories.tsx +308 -0
  97. package/src/stories/Highlight.stories.tsx +140 -0
  98. package/src/stories/Image.stories.tsx +141 -0
  99. package/src/stories/Indicator.stories.tsx +3 -0
  100. package/src/stories/Input.stories.tsx +33 -0
  101. package/src/stories/Kbd.stories.tsx +3 -0
  102. package/src/stories/Link.stories.tsx +198 -0
  103. package/src/stories/Listbox.stories.tsx +240 -0
  104. package/src/stories/LoadingOverlay.stories.tsx +148 -0
  105. package/src/stories/Marquee.stories.tsx +170 -0
  106. package/src/stories/Masonry.stories.tsx +227 -0
  107. package/src/stories/Meter.stories.tsx +143 -0
  108. package/src/stories/MotionToggle.stories.tsx +85 -0
  109. package/src/stories/Notification.stories.tsx +264 -0
  110. package/src/stories/Overlay.stories.tsx +169 -0
  111. package/src/stories/PasswordInput.stories.tsx +4 -0
  112. package/src/stories/Progress.stories.tsx +70 -27
  113. package/src/stories/RatingGroup.stories.tsx +5 -0
  114. package/src/stories/Separator.stories.tsx +41 -5
  115. package/src/stories/Sidebar.stories.tsx +2 -1
  116. package/src/stories/SignaturePad.stories.tsx +112 -0
  117. package/src/stories/Skeleton.stories.tsx +23 -4
  118. package/src/stories/SkipLink.stories.tsx +137 -0
  119. package/src/stories/Slider.stories.tsx +28 -0
  120. package/src/stories/Spoiler.stories.tsx +122 -0
  121. package/src/stories/Tabs.stories.tsx +2 -1
  122. package/src/stories/Text.stories.tsx +191 -0
  123. package/src/stories/Textarea.stories.tsx +58 -6
  124. package/src/stories/Timeline.stories.tsx +82 -0
  125. package/src/stories/Timer.stories.tsx +160 -0
  126. package/src/stories/Tour.stories.tsx +191 -0
  127. package/src/stories/TransferList.stories.tsx +169 -0
  128. package/src/stories/VisuallyHidden.stories.tsx +105 -0
  129. package/src/stories/Watermark.stories.tsx +212 -0
  130. package/src/styles.css +80 -6
  131. package/src/tokens.json +2 -2
@@ -0,0 +1,105 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import * as React from "react";
3
+ import { BellIcon, DownloadIcon, XIcon } from "lucide-react";
4
+ import { VisuallyHidden } from "@behavioral-agentic-design-system/core/components/ui/visually-hidden";
5
+ import { Button } from "@behavioral-agentic-design-system/core/components/ui/button";
6
+ import {
7
+ Card,
8
+ CardContent,
9
+ } from "@behavioral-agentic-design-system/core/components/ui/card";
10
+ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge";
11
+
12
+ const meta: Meta<typeof VisuallyHidden> = {
13
+ title: "Components/VisuallyHidden",
14
+ component: VisuallyHidden,
15
+ parameters: { layout: "centered" },
16
+ tags: ["autodocs"],
17
+ argTypes: {
18
+ asChild: { control: "boolean" },
19
+ },
20
+ };
21
+
22
+ export default meta;
23
+ type Story = StoryObj<typeof VisuallyHidden>;
24
+
25
+ // The primitive is invisible by design — every story pairs it with visible
26
+ // context so the canvas shows WHERE the hidden text sits. Inspect the DOM
27
+ // (or run a screen reader) to confirm the hidden content is present.
28
+
29
+ export const Default: Story = {
30
+ render: () => (
31
+ <div className="max-w-sm space-y-2">
32
+ <p className="text-sm text-foreground">
33
+ Token changes saved.
34
+ <VisuallyHidden>
35
+ Run pnpm build:tokens to regenerate CSS.
36
+ </VisuallyHidden>
37
+ </p>
38
+ <p className="text-xs text-muted-foreground">
39
+ The follow-up instruction is wrapped in VisuallyHidden — screen
40
+ readers announce it after the visible sentence; sighted users see
41
+ only the confirmation. Inspect the DOM to find the hidden span
42
+ (data-slot=&quot;visually-hidden&quot;).
43
+ </p>
44
+ </div>
45
+ ),
46
+ };
47
+
48
+ export const WithAsChild: Story = {
49
+ render: () => (
50
+ <div className="max-w-sm space-y-2">
51
+ <p className="text-sm text-foreground">
52
+ Reviewed by Jordan Reeves
53
+ <VisuallyHidden asChild>
54
+ <span> (jordan@reeves.design)</span>
55
+ </VisuallyHidden>
56
+ </p>
57
+ <p className="text-xs text-muted-foreground">
58
+ asChild merges the sr-only behavior onto the consumer&rsquo;s own
59
+ span instead of rendering a wrapper — the child keeps its element
60
+ type and props.
61
+ </p>
62
+ </div>
63
+ ),
64
+ };
65
+
66
+ export const RealisticUse: Story = {
67
+ render: () => (
68
+ <Card className="w-80">
69
+ <CardContent className="space-y-4 p-4">
70
+ <div className="flex items-start justify-between gap-3">
71
+ <div className="min-w-0 space-y-1">
72
+ <p className="truncate text-sm font-semibold">
73
+ tokens-v2-proposal
74
+ </p>
75
+ <p className="text-xs text-muted-foreground">
76
+ Shared by Jordan Reeves
77
+ </p>
78
+ </div>
79
+ <Badge variant="secondary">Draft</Badge>
80
+ </div>
81
+ <div className="flex items-center gap-2">
82
+ <Button variant="outline" size="icon-xl">
83
+ <DownloadIcon strokeWidth={1.5} />
84
+ <VisuallyHidden>Download tokens-v2-proposal</VisuallyHidden>
85
+ </Button>
86
+ <Button variant="outline" size="icon-xl">
87
+ <BellIcon strokeWidth={1.5} />
88
+ <VisuallyHidden>
89
+ Notify me when tokens-v2-proposal changes
90
+ </VisuallyHidden>
91
+ </Button>
92
+ <Button variant="ghost" size="icon-xl">
93
+ <XIcon strokeWidth={1.5} />
94
+ <VisuallyHidden>Dismiss</VisuallyHidden>
95
+ </Button>
96
+ </div>
97
+ <p className="text-xs text-muted-foreground">
98
+ Each icon-only button gets its accessible name from a
99
+ VisuallyHidden label — announced by screen readers, invisible on
100
+ screen.
101
+ </p>
102
+ </CardContent>
103
+ </Card>
104
+ ),
105
+ };
@@ -0,0 +1,212 @@
1
+ import * as React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+ import { Watermark } from "@behavioral-agentic-design-system/core/components/ui/watermark"
4
+ import {
5
+ Card,
6
+ CardContent,
7
+ CardDescription,
8
+ CardHeader,
9
+ CardTitle,
10
+ } from "@behavioral-agentic-design-system/core/components/ui/card"
11
+ import { Badge } from "@behavioral-agentic-design-system/core/components/ui/badge"
12
+ import {
13
+ DataList,
14
+ DataListItem,
15
+ DataListLabel,
16
+ DataListValue,
17
+ } from "@behavioral-agentic-design-system/core/components/ui/data-list"
18
+
19
+ const meta: Meta<typeof Watermark> = {
20
+ title: "Components/Watermark",
21
+ component: Watermark,
22
+ parameters: { layout: "centered" },
23
+ tags: ["autodocs"],
24
+ argTypes: {
25
+ content: { control: "text" },
26
+ rotate: { control: { type: "range", min: -90, max: 90, step: 5 } },
27
+ opacity: { control: { type: "range", min: 0, max: 1, step: 0.05 } },
28
+ },
29
+ }
30
+
31
+ export default meta
32
+ type Story = StoryObj<typeof meta>
33
+
34
+ // Content pulled from content/personas/bads.json (primary persona pool).
35
+
36
+ // Simple diagonal-mark SVG as a data URI — same-origin, so the canvas
37
+ // export never taints. Named color (gray) on purpose: the tile is drawn
38
+ // once and the overlay's opacity keeps it quiet in both themes.
39
+ const MARK_SVG =
40
+ "data:image/svg+xml," +
41
+ encodeURIComponent(
42
+ `<svg xmlns='http://www.w3.org/2000/svg' width='96' height='40' viewBox='0 0 96 40'><text x='0' y='28' font-family='sans-serif' font-size='24' font-weight='600' fill='gray'>BADS</text></svg>`,
43
+ )
44
+
45
+ export const Default: Story = {
46
+ render: () => (
47
+ <Watermark content="Internal review — do not distribute">
48
+ <Card className="w-[28rem]">
49
+ <CardHeader>
50
+ <CardTitle>Tokens v2 proposal</CardTitle>
51
+ <CardDescription>
52
+ Shared by Anika Patel · design.bads.com/share/tokens-v2-proposal
53
+ </CardDescription>
54
+ </CardHeader>
55
+ <CardContent className="space-y-3 text-sm leading-relaxed text-foreground">
56
+ <p>
57
+ The semantic layer gets three new aliases so chart surfaces stop
58
+ borrowing from the sidebar palette. Every pair was audited at 7:1
59
+ before this draft went out.
60
+ </p>
61
+ <p className="text-muted-foreground">
62
+ 36 components, all passing AAA contrast. Last token change was 3
63
+ days ago.
64
+ </p>
65
+ </CardContent>
66
+ </Card>
67
+ </Watermark>
68
+ ),
69
+ }
70
+
71
+ export const Size_Sm: Story = {
72
+ render: () => (
73
+ <Watermark
74
+ content="seoyun_park · 2026-05-26"
75
+ font={{ fontSize: 12 }}
76
+ gap={[64, 64]}
77
+ opacity={0.12}
78
+ >
79
+ <Card className="w-[28rem]">
80
+ <CardHeader>
81
+ <CardTitle>Exported audit snapshot</CardTitle>
82
+ <CardDescription>
83
+ Dense provenance mark — small type, tight gap, low opacity.
84
+ </CardDescription>
85
+ </CardHeader>
86
+ <CardContent className="text-sm leading-relaxed text-muted-foreground">
87
+ Screenshot exports carry the exporting account and date as a
88
+ repeating mark so shared images stay attributable.
89
+ </CardContent>
90
+ </Card>
91
+ </Watermark>
92
+ ),
93
+ }
94
+
95
+ export const Size_Lg: Story = {
96
+ render: () => (
97
+ <Watermark
98
+ content="DRAFT"
99
+ font={{ fontSize: 48, fontWeight: "semibold" }}
100
+ gap={[140, 120]}
101
+ opacity={0.08}
102
+ >
103
+ <Card className="w-[28rem]">
104
+ <CardHeader>
105
+ <CardTitle>Set up your design system in five minutes</CardTitle>
106
+ <CardDescription>
107
+ Loud status mark — large type, wide gap, extra-low opacity so the
108
+ body copy stays readable.
109
+ </CardDescription>
110
+ </CardHeader>
111
+ <CardContent className="space-y-3 text-sm leading-relaxed text-foreground">
112
+ <p>
113
+ Fork it, rename it, customize the brand colors, and start
114
+ building. Token changes saved — run pnpm build:tokens to
115
+ regenerate CSS.
116
+ </p>
117
+ <p>
118
+ This walkthrough is unpublished; the DRAFT mark comes off when
119
+ docs review signs it.
120
+ </p>
121
+ </CardContent>
122
+ </Card>
123
+ </Watermark>
124
+ ),
125
+ }
126
+
127
+ export const WithImage: Story = {
128
+ render: () => (
129
+ <Watermark image={MARK_SVG} gap={[110, 90]} opacity={0.1}>
130
+ <Card className="w-[28rem]">
131
+ <CardHeader>
132
+ <CardTitle>Brand-marked preview</CardTitle>
133
+ <CardDescription>
134
+ Image mode: an SVG wordmark tiles instead of text. Data-URI
135
+ images never taint the canvas; cross-origin URLs load with
136
+ crossOrigin=&quot;anonymous&quot; and fail silent.
137
+ </CardDescription>
138
+ </CardHeader>
139
+ <CardContent className="text-sm leading-relaxed text-muted-foreground">
140
+ Use image mode for logo provenance on exported charts and shared
141
+ board previews.
142
+ </CardContent>
143
+ </Card>
144
+ </Watermark>
145
+ ),
146
+ }
147
+
148
+ export const MultiLine: Story = {
149
+ render: () => (
150
+ <Watermark
151
+ content={["Confidential", "anika.patel@stripe.com"]}
152
+ gap={[90, 80]}
153
+ >
154
+ <Card className="w-[28rem]">
155
+ <CardHeader>
156
+ <CardTitle>Per-viewer mark</CardTitle>
157
+ <CardDescription>
158
+ Array content renders stacked lines — the classic
159
+ classification-plus-identity pair.
160
+ </CardDescription>
161
+ </CardHeader>
162
+ <CardContent className="text-sm leading-relaxed text-muted-foreground">
163
+ Remember: the overlay is a visual cue, not a security control. The
164
+ DOM node is deletable and the content stays copyable by design.
165
+ </CardContent>
166
+ </Card>
167
+ </Watermark>
168
+ ),
169
+ }
170
+
171
+ export const RealisticUse: Story = {
172
+ render: () => (
173
+ <Watermark content="CONFIDENTIAL — internal pricing" rotate={-30}>
174
+ <Card className="w-[30rem]">
175
+ <CardHeader className="flex-row items-start justify-between space-y-0">
176
+ <div className="space-y-1">
177
+ <CardTitle>Invoice #2047</CardTitle>
178
+ <CardDescription>Issued 2026-05-26 · due 2026-06-25</CardDescription>
179
+ </div>
180
+ <Badge variant="secondary">Unpaid</Badge>
181
+ </CardHeader>
182
+ <CardContent className="space-y-4">
183
+ <DataList>
184
+ <DataListItem>
185
+ <DataListLabel>Billed to</DataListLabel>
186
+ <DataListValue>Jordan Reeves — jordan@reeves.design</DataListValue>
187
+ </DataListItem>
188
+ <DataListItem>
189
+ <DataListLabel>Line item</DataListLabel>
190
+ <DataListValue>Pro tier, annual (per seat)</DataListValue>
191
+ </DataListItem>
192
+ <DataListItem>
193
+ <DataListLabel>Amount</DataListLabel>
194
+ <DataListValue>$249.00</DataListValue>
195
+ </DataListItem>
196
+ <DataListItem>
197
+ <DataListLabel>Remit to</DataListLabel>
198
+ <DataListValue>
199
+ 1401 South Congress Ave, Suite 200, Austin, TX 78704
200
+ </DataListValue>
201
+ </DataListItem>
202
+ </DataList>
203
+ <p className="text-xs leading-relaxed text-muted-foreground">
204
+ Pricing terms on this invoice are pre-announcement. The watermark
205
+ overlay is aria-hidden and pointer-events-none, so screen readers
206
+ and text selection behave exactly as they would without it.
207
+ </p>
208
+ </CardContent>
209
+ </Card>
210
+ </Watermark>
211
+ ),
212
+ }
package/src/styles.css CHANGED
@@ -53,7 +53,7 @@
53
53
  /* Brand sans from tokens.json leads. Atkinson Hyperlegible (loaded via the
54
54
  Google Fonts @import above) is the canonical fallback so unbranded
55
55
  consumers still get a high-legibility face out of the box. */
56
- --font-sans: 'Inter', 'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui, 'Atkinson Hyperlegible', ui-sans-serif, sans-serif, system-ui;
56
+ --font-sans: 'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui, 'Atkinson Hyperlegible', ui-sans-serif, sans-serif, system-ui;
57
57
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
58
58
  --font-serif: ui-serif, Georgia, serif;
59
59
  --font-variation-settings: normal;
@@ -340,6 +340,11 @@
340
340
  size / weight axes without touching component source. "normal" is a
341
341
  no-op for static fonts. */
342
342
  font-variation-settings: var(--font-variation-settings, normal);
343
+ /* Enable opsz axis on variable fonts (Inter ships opsz 14–32). Without
344
+ this, browser behavior is implementation-defined and silently inconsistent
345
+ across engines; forks that swap in a different variable font may not
346
+ inherit the setting. */
347
+ font-optical-sizing: auto;
343
348
  }
344
349
  /* Match: monospace elements pick up --font-mono without each component
345
350
  having to remember a `font-mono` class. */
@@ -402,11 +407,31 @@
402
407
  /* WCAG AAA 2.3.3 Animation from Interactions: respect the user's
403
408
  reduced-motion preference globally. Components with essential
404
409
  motion (loading spinners, progress bars) opt back in via
405
- `motion-safe:` Tailwind utilities or scoped @media queries. */
410
+ `motion-safe:` Tailwind utilities or scoped @media queries.
411
+
412
+ Three-state model, driven by the optional `data-motion` attribute the
413
+ MotionToggle primitive sets on <html> (opt-in — no attribute is the
414
+ default and behaves exactly as an OS-only reduce query):
415
+ • `data-motion="reduce"` → force motion OFF regardless of OS.
416
+ • `data-motion="full"` → force motion ON even if the OS prefers
417
+ reduce (some users set OS reduce globally
418
+ but trust a given site with motion).
419
+ • absent (`system`) → the OS media query governs, as before.
420
+ The OS query below is gated on `:not([data-motion="full"])` so "full"
421
+ can override it; the attribute rule above wins on specificity for
422
+ "reduce". */
423
+ html[data-motion="reduce"] *,
424
+ html[data-motion="reduce"] *::before,
425
+ html[data-motion="reduce"] *::after {
426
+ animation-duration: 0.01ms !important;
427
+ animation-iteration-count: 1 !important;
428
+ transition-duration: 0.01ms !important;
429
+ scroll-behavior: auto !important;
430
+ }
406
431
  @media (prefers-reduced-motion: reduce) {
407
- *,
408
- *::before,
409
- *::after {
432
+ html:not([data-motion="full"]) *,
433
+ html:not([data-motion="full"]) *::before,
434
+ html:not([data-motion="full"]) *::after {
410
435
  animation-duration: 0.01ms !important;
411
436
  animation-iteration-count: 1 !important;
412
437
  transition-duration: 0.01ms !important;
@@ -572,12 +597,61 @@ html, body {
572
597
  animation: accordion-up var(--duration-base) var(--ease-out);
573
598
  }
574
599
 
600
+ /* Marquee continuous-scroll keyframe — applied via data-slot selectors
601
+ (spec §4 pattern (b): plain CSS in the design-system layer, no Tailwind
602
+ utility generation in the path). The track holds 2×K identical groups,
603
+ so translateX(-50%) is always exactly one loop — seamless at any width.
604
+
605
+ - "linear" timing is a seamless-loop REQUIREMENT, not a style choice:
606
+ any easing curve pulses at the loop seam.
607
+ - --marquee-duration is the consumer tunable (the component computes it
608
+ from the `speed` prop in px/s and writes it inline; a consumer style
609
+ override wins). --marquee-gap tunes item density.
610
+ - Pausing (SC 2.2.2 Pause, Stop, Hide): hover, focus-within, and the
611
+ component's visible control (data-state="paused") all pause playback.
612
+ - Reduced motion: the base layer already forces animation-duration to
613
+ 0.01ms with iteration-count 1, which halts the strip; the explicit
614
+ play-state rule below is belt-and-suspenders and self-documenting. */
615
+ @keyframes marquee-scroll {
616
+ from { transform: translateX(0); }
617
+ to { transform: translateX(-50%); }
618
+ }
619
+ [data-slot="marquee-track"] {
620
+ animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
621
+ }
622
+ [data-slot="marquee-track"][data-direction="right"] {
623
+ animation-direction: reverse;
624
+ }
625
+ [data-slot="marquee-group"] {
626
+ display: flex;
627
+ align-items: center;
628
+ gap: var(--marquee-gap, 3rem);
629
+ padding-inline-end: var(--marquee-gap, 3rem);
630
+ }
631
+ [data-slot="marquee"][data-state="paused"] [data-slot="marquee-track"],
632
+ [data-slot="marquee"]:hover [data-slot="marquee-track"],
633
+ [data-slot="marquee"]:focus-within [data-slot="marquee-track"] {
634
+ animation-play-state: paused;
635
+ }
636
+ [data-slot="marquee-viewport"][data-fade] {
637
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
638
+ mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
639
+ }
640
+ @media (prefers-reduced-motion: reduce) {
641
+ [data-slot="marquee-track"] { animation-play-state: paused; }
642
+ }
643
+
575
644
  ::view-transition-new(root) {
576
645
  animation: theme-reveal 0.4s ease-in-out forwards;
577
646
  }
578
647
 
648
+ /* Honor the app-level MotionToggle for the iris wipe too (same three-state
649
+ model as the global kill-all). "reduce" snaps the theme swap instantly;
650
+ "full" keeps the wipe even under an OS reduce preference; absent = OS
651
+ query governs. `animation: none` on the pseudo just does an instant swap. */
652
+ html[data-motion="reduce"]::view-transition-new(root) { animation: none; }
579
653
  @media (prefers-reduced-motion: reduce) {
580
- ::view-transition-new(root) { animation: none; }
654
+ html:not([data-motion="full"])::view-transition-new(root) { animation: none; }
581
655
  }
582
656
 
583
657
  @layer utilities {
package/src/tokens.json CHANGED
@@ -158,9 +158,9 @@
158
158
  },
159
159
  "fontFamily": {
160
160
  "sans": {
161
- "$value": "'Inter', 'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui",
161
+ "$value": "'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui",
162
162
  "$type": "fontFamily",
163
- "$description": "Primary sans (body, UI). Inter Variable is the BADS default — a single variable woff2 covers weights 100–900, enabling responsive type axes and per-fork weight tuning via --font-variation-settings. Hyperlegible Sans (the Braille Institute's low-vision face) stays second in the stack as the accessibility-preserving fallback and is still self-hosted. ACCESSIBILITY NOTE: forks with a low-vision-heavy audience should reorder to lead with 'Hyperlegible Sans'. Override per client."
163
+ "$description": "Primary sans (body, UI). Hyperlegible Sans (the Braille Institute's low-vision face) is the BADS default — an accessibility-first letterform with disambiguated glyphs, self-hosted via fonts.css (6 static weights). Inter Variable stays second in the stack as a fallback for forks that want a single variable woff2 covering weights 100–900 with responsive type axes; reorder to lead with 'Inter' per client if that's the priority. Override per client."
164
164
  },
165
165
  "serif": {
166
166
  "$value": "ui-serif, Georgia, serif",