@nationaldesignstudio/react 0.2.0 → 0.5.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 (97) hide show
  1. package/dist/component-registry.md +1310 -127
  2. package/dist/components/atoms/background/background.d.ts +13 -27
  3. package/dist/components/atoms/button/button.d.ts +64 -72
  4. package/dist/components/atoms/button/button.figma.d.ts +1 -0
  5. package/dist/components/atoms/button/icon-button.d.ts +62 -110
  6. package/dist/components/atoms/input/input-group.d.ts +278 -0
  7. package/dist/components/atoms/input/input.d.ts +121 -0
  8. package/dist/components/atoms/popover/popover.d.ts +195 -0
  9. package/dist/components/atoms/select/select.d.ts +131 -0
  10. package/dist/components/atoms/tooltip/tooltip.d.ts +161 -0
  11. package/dist/components/organisms/card/card.d.ts +3 -3
  12. package/dist/components/sections/hero/hero.d.ts +2 -2
  13. package/dist/components/sections/prose/prose.d.ts +3 -3
  14. package/dist/components/sections/river/river.d.ts +1 -1
  15. package/dist/components/sections/tout/tout.d.ts +4 -4
  16. package/dist/components/shared/floating-arrow.d.ts +34 -0
  17. package/dist/index.d.ts +12 -0
  18. package/dist/index.js +13935 -7622
  19. package/dist/index.js.map +1 -1
  20. package/dist/lib/form-control.d.ts +106 -0
  21. package/dist/tokens.css +4725 -19065
  22. package/package.json +2 -1
  23. package/src/components/atoms/accordion/accordion.stories.tsx +1 -1
  24. package/src/components/atoms/accordion/accordion.tsx +2 -2
  25. package/src/components/atoms/background/background.tsx +71 -109
  26. package/src/components/atoms/button/button.figma.tsx +37 -0
  27. package/src/components/atoms/button/button.stories.tsx +253 -115
  28. package/src/components/atoms/button/button.test.tsx +289 -5
  29. package/src/components/atoms/button/button.tsx +40 -101
  30. package/src/components/atoms/button/button.visual.test.tsx +28 -32
  31. package/src/components/atoms/button/icon-button.stories.tsx +44 -101
  32. package/src/components/atoms/button/icon-button.test.tsx +26 -94
  33. package/src/components/atoms/button/icon-button.tsx +81 -224
  34. package/src/components/atoms/input/index.ts +17 -0
  35. package/src/components/atoms/input/input-group.stories.tsx +646 -0
  36. package/src/components/atoms/input/input-group.test.tsx +362 -0
  37. package/src/components/atoms/input/input-group.tsx +409 -0
  38. package/src/components/atoms/input/input.stories.tsx +228 -0
  39. package/src/components/atoms/input/input.test.tsx +167 -0
  40. package/src/components/atoms/input/input.tsx +104 -0
  41. package/src/components/atoms/pager-control/pager-control.stories.tsx +6 -8
  42. package/src/components/atoms/pager-control/pager-control.tsx +12 -12
  43. package/src/components/atoms/popover/index.ts +30 -0
  44. package/src/components/atoms/popover/popover.stories.tsx +531 -0
  45. package/src/components/atoms/popover/popover.test.tsx +486 -0
  46. package/src/components/atoms/popover/popover.tsx +488 -0
  47. package/src/components/atoms/select/index.ts +18 -0
  48. package/src/components/atoms/select/select.stories.tsx +455 -0
  49. package/src/components/atoms/select/select.tsx +324 -0
  50. package/src/components/atoms/tooltip/index.ts +24 -0
  51. package/src/components/atoms/tooltip/tooltip.stories.tsx +348 -0
  52. package/src/components/atoms/tooltip/tooltip.test.tsx +363 -0
  53. package/src/components/atoms/tooltip/tooltip.tsx +347 -0
  54. package/src/components/dev-tools/dev-toolbar/dev-toolbar.stories.tsx +8 -17
  55. package/src/components/dev-tools/dev-toolbar/dev-toolbar.tsx +3 -3
  56. package/src/components/foundation/typography/typography.stories.tsx +401 -0
  57. package/src/components/organisms/card/card.stories.tsx +19 -19
  58. package/src/components/organisms/card/card.test.tsx +1 -1
  59. package/src/components/organisms/card/card.tsx +3 -3
  60. package/src/components/organisms/card/card.visual.test.tsx +11 -11
  61. package/src/components/organisms/navbar/navbar.tsx +2 -2
  62. package/src/components/organisms/navbar/navbar.visual.test.tsx +2 -2
  63. package/src/components/organisms/us-gov-banner/us-gov-banner.tsx +2 -2
  64. package/src/components/sections/banner/banner.stories.tsx +1 -5
  65. package/src/components/sections/banner/banner.test.tsx +2 -2
  66. package/src/components/sections/banner/banner.tsx +6 -6
  67. package/src/components/sections/card-grid/card-grid.tsx +5 -5
  68. package/src/components/sections/faq-section/faq-section.tsx +2 -2
  69. package/src/components/sections/hero/hero.stories.tsx +7 -7
  70. package/src/components/sections/hero/hero.test.tsx +5 -5
  71. package/src/components/sections/hero/hero.tsx +10 -11
  72. package/src/components/sections/prose/prose.test.tsx +2 -2
  73. package/src/components/sections/prose/prose.tsx +6 -7
  74. package/src/components/sections/river/river.stories.tsx +8 -8
  75. package/src/components/sections/river/river.test.tsx +4 -4
  76. package/src/components/sections/river/river.tsx +8 -16
  77. package/src/components/sections/tout/tout.stories.tsx +7 -31
  78. package/src/components/sections/tout/tout.test.tsx +1 -1
  79. package/src/components/sections/tout/tout.tsx +11 -11
  80. package/src/components/sections/two-column-section/two-column-section.tsx +7 -9
  81. package/src/components/shared/floating-arrow.tsx +78 -0
  82. package/src/components/shared/index.ts +5 -0
  83. package/src/index.ts +98 -0
  84. package/src/lib/form-control.ts +71 -0
  85. package/src/stories/grid-system.stories.tsx +309 -0
  86. package/src/stories/{Introduction.mdx → introduction.mdx} +29 -15
  87. package/src/stories/{ThemeProvider.stories.tsx → theme-provider.stories.tsx} +8 -22
  88. package/src/stories/{TokenShowcase.stories.tsx → token-showcase.stories.tsx} +1 -20
  89. package/src/stories/token-showcase.tsx +777 -0
  90. package/src/styles.css +3 -0
  91. package/src/tests/token-resolution.test.tsx +298 -0
  92. package/src/theme/hooks.ts +1 -1
  93. package/src/theme/index.ts +1 -1
  94. package/src/theme/theme-provider.test.tsx +270 -0
  95. package/src/theme/{ThemeProvider.tsx → theme-provider.tsx} +18 -2
  96. package/src/stories/GridSystem.stories.tsx +0 -84
  97. package/src/stories/TokenShowcase.tsx +0 -1429
@@ -0,0 +1,309 @@
1
+ import type { Meta, StoryObj } from "@storybook/react-vite";
2
+
3
+ /**
4
+ * Spatial Grid System
5
+ *
6
+ * Responsive grid tokens that adapt across breakpoints:
7
+ * - Large (lg): 1440px+ - 24 columns, 72px margin, 24px gutter
8
+ * - Medium (md): 768px+ - 12 columns, 56px margin, 20px gutter
9
+ * - Small (sm): 320px+ - 4 columns, 24px margin, 12px gutter
10
+ */
11
+
12
+ // Enhanced grid column with solid color styling
13
+ const GridColumn = ({ index }: { index: number }) => {
14
+ const colors = [
15
+ "bg-blue-100",
16
+ "bg-indigo-100",
17
+ "bg-purple-100",
18
+ "bg-pink-100",
19
+ "bg-red-100",
20
+ "bg-orange-100",
21
+ "bg-amber-100",
22
+ "bg-yellow-100",
23
+ "bg-lime-100",
24
+ "bg-green-100",
25
+ "bg-emerald-100",
26
+ "bg-teal-100",
27
+ "bg-cyan-100",
28
+ "bg-sky-100",
29
+ "bg-blue-100",
30
+ "bg-indigo-100",
31
+ "bg-purple-100",
32
+ "bg-pink-100",
33
+ "bg-red-100",
34
+ "bg-orange-100",
35
+ "bg-amber-100",
36
+ "bg-yellow-100",
37
+ "bg-lime-100",
38
+ "bg-green-100",
39
+ ];
40
+ return (
41
+ <div
42
+ className={`h-16 rounded-2 border-2 border-white/50 flex items-center justify-center shadow-sm transition-all hover:scale-105 ${colors[index % colors.length]}`}
43
+ >
44
+ <span className="text-xs font-bold font-mono text-gray-700">
45
+ {index + 1}
46
+ </span>
47
+ </div>
48
+ );
49
+ };
50
+
51
+ // Grid visualization with better styling
52
+ const GridVisualization = () => (
53
+ <div className="w-full bg-gray-50 py-16">
54
+ <div className="w-full max-w-[90rem] mx-auto px-[var(--spatial-grid-small-margin)] md:px-[var(--spatial-grid-medium-margin)] lg:px-[var(--spatial-grid-large-margin)]">
55
+ <div className="mb-8">
56
+ <h2 className="typography-h3 text-gray-900 mb-2">
57
+ Responsive Grid System
58
+ </h2>
59
+ <p className="typography-body text-gray-600">
60
+ The grid adapts across breakpoints: 4 columns (mobile), 12 columns
61
+ (tablet), 24 columns (desktop)
62
+ </p>
63
+ </div>
64
+ <div className="grid grid-cols-4 md:grid-cols-12 lg:grid-cols-24 gap-[var(--spatial-grid-small-gutter)] md:gap-[var(--spatial-grid-medium-gutter)] lg:gap-[var(--spatial-grid-large-gutter)]">
65
+ {Array.from({ length: 24 }).map((_, i) => (
66
+ // biome-ignore lint/suspicious/noArrayIndexKey: Static grid columns never reorder
67
+ <GridColumn key={i} index={i} />
68
+ ))}
69
+ </div>
70
+ </div>
71
+ </div>
72
+ );
73
+
74
+ // Enhanced spans visualization with content examples
75
+ const ColumnSpans = () => (
76
+ <div className="w-full bg-white py-16">
77
+ <div className="w-full max-w-[90rem] mx-auto px-[var(--spatial-grid-small-margin)] md:px-[var(--spatial-grid-medium-margin)] lg:px-[var(--spatial-grid-large-margin)]">
78
+ <div className="mb-12">
79
+ <h2 className="typography-h3 text-gray-900 mb-2">
80
+ Column Spans & Positioning
81
+ </h2>
82
+ <p className="typography-body text-gray-600">
83
+ Use col-span and col-start/col-end to create flexible layouts
84
+ </p>
85
+ </div>
86
+
87
+ {/* Full width */}
88
+ <div className="mb-8 grid grid-cols-1 md:grid-cols-12 lg:grid-cols-24 gap-[var(--spatial-grid-small-gutter)] md:gap-[var(--spatial-grid-medium-gutter)] lg:gap-[var(--spatial-grid-large-gutter)]">
89
+ <div className="col-span-full rounded-8 bg-blue-600 p-8 text-white shadow-lg">
90
+ <div className="flex items-center justify-between">
91
+ <div>
92
+ <code className="text-sm font-mono bg-white/20 px-3 py-1 rounded">
93
+ col-span-full
94
+ </code>
95
+ <p className="mt-4 typography-body-large">
96
+ Full-width hero section or banner
97
+ </p>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+
103
+ {/* Centered wide content */}
104
+ <div className="mb-8 grid grid-cols-1 md:grid-cols-12 lg:grid-cols-24 gap-[var(--spatial-grid-small-gutter)] md:gap-[var(--spatial-grid-medium-gutter)] lg:gap-[var(--spatial-grid-large-gutter)]">
105
+ <div className="col-span-full lg:col-start-4 lg:col-end-22 rounded-8 bg-purple-600 p-8 text-white shadow-lg">
106
+ <div>
107
+ <code className="text-sm font-mono bg-white/20 px-3 py-1 rounded mb-4 inline-block">
108
+ col-start-4 col-end-22 (18 cols)
109
+ </code>
110
+ <p className="typography-body-large">
111
+ Centered wide content area - perfect for dashboards or data tables
112
+ </p>
113
+ </div>
114
+ </div>
115
+ </div>
116
+
117
+ {/* Two column layout */}
118
+ <div className="mb-8 grid grid-cols-1 md:grid-cols-12 lg:grid-cols-24 gap-[var(--spatial-grid-small-gutter)] md:gap-[var(--spatial-grid-medium-gutter)] lg:gap-[var(--spatial-grid-large-gutter)]">
119
+ <div className="col-span-full lg:col-start-3 lg:col-end-13 rounded-8 bg-green-600 p-8 text-white shadow-lg">
120
+ <code className="text-sm font-mono bg-white/20 px-3 py-1 rounded mb-4 inline-block">
121
+ col-start-3 col-end-13 (10 cols)
122
+ </code>
123
+ <p className="typography-body">Left column content</p>
124
+ </div>
125
+ <div className="col-span-full lg:col-start-13 lg:col-end-23 rounded-8 bg-orange-600 p-8 text-white shadow-lg">
126
+ <code className="text-sm font-mono bg-white/20 px-3 py-1 rounded mb-4 inline-block">
127
+ col-start-13 col-end-23 (10 cols)
128
+ </code>
129
+ <p className="typography-body">Right column content</p>
130
+ </div>
131
+ </div>
132
+
133
+ {/* Narrow centered content */}
134
+ <div className="grid grid-cols-1 md:grid-cols-12 lg:grid-cols-24 gap-[var(--spatial-grid-small-gutter)] md:gap-[var(--spatial-grid-medium-gutter)] lg:gap-[var(--spatial-grid-large-gutter)]">
135
+ <div className="col-span-full lg:col-start-7 lg:col-end-19 rounded-8 bg-indigo-600 p-8 text-white shadow-lg">
136
+ <code className="text-sm font-mono bg-white/20 px-3 py-1 rounded mb-4 inline-block">
137
+ col-start-7 col-end-19 (12 cols)
138
+ </code>
139
+ <p className="typography-body">
140
+ Narrow centered content - ideal for reading or forms
141
+ </p>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ );
147
+
148
+ // Content layout utilities demonstration
149
+ const ContentLayoutsDemo = () => (
150
+ <div className="w-full bg-white py-16">
151
+ <div className="w-full max-w-[90rem] mx-auto px-[var(--spatial-grid-small-margin)] md:px-[var(--spatial-grid-medium-margin)] lg:px-[var(--spatial-grid-large-margin)]">
152
+ <div className="mb-12">
153
+ <h2 className="typography-h3 text-gray-900 mb-2">
154
+ Content Layout Utilities
155
+ </h2>
156
+ <p className="typography-body text-gray-600">
157
+ Pre-built utilities for common content widths: narrow, medium, and
158
+ wide
159
+ </p>
160
+ </div>
161
+
162
+ {/* Grid container */}
163
+ <div className="grid grid-cols-1 md:grid-cols-12 lg:grid-cols-24 gap-y-32 md:gap-y-48 lg:gap-y-64 gap-[var(--spatial-grid-small-gutter)] md:gap-[var(--spatial-grid-medium-gutter)] lg:gap-[var(--spatial-grid-large-gutter)]">
164
+ {/* Narrow content */}
165
+ <div className="grid-content-narrow">
166
+ <div className="rounded-8 bg-white border-2 border-gray-200 p-12 shadow-md">
167
+ <div className="mb-4">
168
+ <code className="text-sm font-mono text-blue-600 bg-blue-50 px-3 py-1 rounded">
169
+ grid-content-narrow
170
+ </code>
171
+ </div>
172
+ <h3 className="typography-h4 text-gray-900 mb-4">Narrow Content</h3>
173
+ <p className="typography-body text-gray-700">
174
+ Perfect for reading content, mission statements, or focused text
175
+ blocks. This layout centers content with optimal reading width.
176
+ </p>
177
+ </div>
178
+ </div>
179
+
180
+ {/* Medium content */}
181
+ <div className="grid-content-medium">
182
+ <div className="rounded-8 bg-white border-2 border-gray-200 p-12 shadow-md">
183
+ <div className="mb-4">
184
+ <code className="text-sm font-mono text-green-600 bg-green-50 px-3 py-1 rounded">
185
+ grid-content-medium
186
+ </code>
187
+ </div>
188
+ <h3 className="typography-h4 text-gray-900 mb-4">Medium Content</h3>
189
+ <p className="typography-body text-gray-700">
190
+ Great for forms, general content, or sections that need a bit more
191
+ width than narrow but still maintain readability.
192
+ </p>
193
+ </div>
194
+ </div>
195
+
196
+ {/* Wide content */}
197
+ <div className="grid-content-wide">
198
+ <div className="rounded-8 bg-white border-2 border-gray-200 p-12 shadow-md">
199
+ <div className="mb-4">
200
+ <code className="text-sm font-mono text-purple-600 bg-purple-50 px-3 py-1 rounded">
201
+ grid-content-wide
202
+ </code>
203
+ </div>
204
+ <h3 className="typography-h4 text-gray-900 mb-4">Wide Content</h3>
205
+ <p className="typography-body text-gray-700">
206
+ Ideal for dashboards, data tables, or content that needs maximum
207
+ width while still respecting grid margins.
208
+ </p>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ </div>
213
+ </div>
214
+ );
215
+
216
+ // Real-world example
217
+ const RealWorldExampleDemo = () => (
218
+ <div className="w-full bg-white py-16">
219
+ <div className="w-full max-w-[90rem] mx-auto px-[var(--spatial-grid-small-margin)] md:px-[var(--spatial-grid-medium-margin)] lg:px-[var(--spatial-grid-large-margin)]">
220
+ <div className="mb-12">
221
+ <h2 className="typography-h3 text-gray-900 mb-2">Real-World Example</h2>
222
+ <p className="typography-body text-gray-600">
223
+ How the grid system is used in practice
224
+ </p>
225
+ </div>
226
+
227
+ <div className="grid grid-cols-1 md:grid-cols-12 lg:grid-cols-24 gap-y-32 md:gap-y-48 lg:gap-y-64 gap-[var(--spatial-grid-small-gutter)] md:gap-[var(--spatial-grid-medium-gutter)] lg:gap-[var(--spatial-grid-large-gutter)]">
228
+ {/* Hero section */}
229
+ <div className="col-span-full rounded-12 bg-blue-600 p-16 text-white shadow-xl">
230
+ <div className="max-w-3xl">
231
+ <h1 className="typography-h1 mb-6">Hero Section</h1>
232
+ <p className="typography-body-large opacity-90">
233
+ Full-width hero sections use col-span-full to create impactful
234
+ introductions.
235
+ </p>
236
+ </div>
237
+ </div>
238
+
239
+ {/* Narrow content section */}
240
+ <div className="grid-content-narrow">
241
+ <div className="space-y-6">
242
+ <h2 className="typography-h3 text-gray-900">Mission Statement</h2>
243
+ <p className="typography-body text-gray-700">
244
+ This narrow content area is perfect for focused reading. The
245
+ grid-content-narrow utility automatically centers the content with
246
+ optimal width for readability.
247
+ </p>
248
+ </div>
249
+ </div>
250
+
251
+ {/* Two-column card layout */}
252
+ <div className="col-span-full lg:col-start-3 lg:col-end-11 rounded-8 bg-white border-2 border-gray-200 p-8 shadow-md">
253
+ <div className="h-32 bg-blue-500 rounded-4 mb-4" />
254
+ <h3 className="typography-h4 text-gray-900 mb-2">Card Title</h3>
255
+ <p className="typography-body-small text-gray-600">
256
+ Card content spans 8 columns
257
+ </p>
258
+ </div>
259
+ <div className="col-span-full lg:col-start-13 lg:col-end-21 rounded-8 bg-white border-2 border-gray-200 p-8 shadow-md">
260
+ <div className="h-32 bg-purple-500 rounded-4 mb-4" />
261
+ <h3 className="typography-h4 text-gray-900 mb-2">Card Title</h3>
262
+ <p className="typography-body-small text-gray-600">
263
+ Card content spans 8 columns
264
+ </p>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ );
270
+
271
+ const meta = {
272
+ title: "Design System/Grid System",
273
+ component: GridVisualization,
274
+ parameters: {
275
+ layout: "fullscreen",
276
+ },
277
+ } satisfies Meta<typeof GridVisualization>;
278
+
279
+ export default meta;
280
+ type Story = StoryObj<typeof meta>;
281
+
282
+ export const Default: Story = {};
283
+
284
+ export const Desktop: Story = {
285
+ globals: { viewport: { value: "lg" } },
286
+ };
287
+
288
+ export const Tablet: Story = {
289
+ globals: { viewport: { value: "md" } },
290
+ };
291
+
292
+ export const Mobile: Story = {
293
+ globals: { viewport: { value: "sm" } },
294
+ };
295
+
296
+ export const Spans: Story = {
297
+ render: () => <ColumnSpans />,
298
+ globals: { viewport: { value: "lg" } },
299
+ };
300
+
301
+ export const ContentLayouts: Story = {
302
+ render: () => <ContentLayoutsDemo />,
303
+ globals: { viewport: { value: "lg" } },
304
+ };
305
+
306
+ export const RealWorldExample: Story = {
307
+ render: () => <RealWorldExampleDemo />,
308
+ globals: { viewport: { value: "lg" } },
309
+ };
@@ -40,33 +40,47 @@ function App() {
40
40
 
41
41
  The design system provides pre-built typography classes for consistent text styling. Typography utilities use the `typography-` prefix to avoid conflicts with Tailwind's `text-*` color utilities.
42
42
 
43
- ### Product Typography
43
+ ### Headings
44
44
 
45
- For app UIs, dashboards, and interfaces:
45
+ For headlines and titles:
46
46
 
47
47
  ```html
48
- <h1 class="typography-product-title-large">Page Title</h1>
49
- <h2 class="typography-product-headline-medium">Section Header</h2>
50
- <p class="typography-product-body-medium">Body text content...</p>
51
- <span class="typography-product-caption-small">Caption text</span>
52
- <button class="typography-product-button-medium">Click me</button>
48
+ <h1 class="typography-h1-display">Display Title</h1>
49
+ <h1 class="typography-h1">Page Title</h1>
50
+ <h2 class="typography-h2">Section Header</h2>
51
+ <h3 class="typography-h3">Subsection Header</h3>
52
+ <h4 class="typography-h4">Smaller Header</h4>
53
+ <h5 class="typography-h5">Smallest Header</h5>
53
54
  ```
54
55
 
55
- Available styles: `typography-product-{category}-{size}` where category is: `title`, `headline`, `body`, `label`, `caption`, `button`, `input`, `link`, `navigation`, `overline`, `tabbar`
56
+ ### Body Text
56
57
 
57
- ### Brand Typography
58
+ For body content:
58
59
 
59
- For landing pages and promotional content:
60
+ ```html
61
+ <p class="typography-body-large">Large body text...</p>
62
+ <p class="typography-body-medium">Standard body text...</p>
63
+ <p class="typography-body-small">Small body text...</p>
64
+ ```
65
+
66
+ ### Supporting Text
67
+
68
+ For captions and labels:
60
69
 
61
70
  ```html
62
- <h1 class="typography-brand-medium-display-hero">Hero</h1>
63
- <h2 class="typography-brand-medium-headline-large">Big Headline</h2>
64
- <p class="typography-brand-medium-body-large">Marketing copy...</p>
71
+ <span class="typography-caption">Caption text</span>
72
+ <span class="typography-overline">OVERLINE TEXT</span>
65
73
  ```
66
74
 
67
- Available namespaces: `brand-large` (desktop), `brand-medium` (tablet), `brand-small` (mobile)
75
+ ### UI Typography
68
76
 
69
- Available styles: `typography-brand-{breakpoint}-{category}-{size}` where category is: `display`, `headline`, `subheading`, `body`, `label`, `caption`, `button`, `link`
77
+ For buttons and interactive elements:
78
+
79
+ ```html
80
+ <button class="typography-ui-button-large">Large Button</button>
81
+ <button class="typography-ui-button-medium">Medium Button</button>
82
+ <button class="typography-ui-button-small">Small Button</button>
83
+ ```
70
84
 
71
85
  ## Color Tokens
72
86
 
@@ -8,22 +8,14 @@ import {
8
8
  CardDescription,
9
9
  CardTitle,
10
10
  } from "../components/organisms/card";
11
- import { ThemeProvider, useCSSVars } from "../theme";
11
+ import { ThemeProvider } from "../theme";
12
12
 
13
- /**
14
- * Shared demo component using actual Button, Card, and Typography components.
15
- * Used across all theme stories to showcase theming differences.
16
- */
17
13
  function ThemeDemo({ title }: { title?: string }) {
18
- const cssVars = useCSSVars();
19
-
20
14
  return (
21
- <div style={cssVars} className="p-6">
15
+ <div className="p-6">
22
16
  <div className="bg-bg-page p-6 rounded-lg min-h-[300px]">
23
17
  {title && (
24
- <h2 className="typography-subheading-small text-text-primary mb-4">
25
- {title}
26
- </h2>
18
+ <h2 className="typography-h5 text-text-primary mb-4">{title}</h2>
27
19
  )}
28
20
 
29
21
  {/* Typography showcase */}
@@ -38,15 +30,9 @@ function ThemeDemo({ title }: { title?: string }) {
38
30
 
39
31
  {/* Button variants */}
40
32
  <div className="flex flex-wrap gap-3 mb-6">
41
- <Button variant="solid" colorScheme="dark">
42
- Solid Dark
43
- </Button>
44
- <Button variant="solid" colorScheme="light">
45
- Solid Light
46
- </Button>
47
- <Button variant="outline" colorScheme="dark">
48
- Outline
49
- </Button>
33
+ <Button variant="primary">Primary</Button>
34
+ <Button variant="primary-outline">Primary Outline</Button>
35
+ <Button variant="ghost">Ghost</Button>
50
36
  </div>
51
37
 
52
38
  {/* Card component */}
@@ -60,10 +46,10 @@ function ThemeDemo({ title }: { title?: string }) {
60
46
  </CardDescription>
61
47
  </CardBody>
62
48
  <CardActions>
63
- <Button variant="solid" colorScheme="dark" size="sm">
49
+ <Button variant="primary" size="sm">
64
50
  Action
65
51
  </Button>
66
- <Button variant="outline" colorScheme="dark" size="sm">
52
+ <Button variant="primary-outline" size="sm">
67
53
  Cancel
68
54
  </Button>
69
55
  </CardActions>
@@ -3,11 +3,10 @@ import type { ComponentProps } from "react";
3
3
  import {
4
4
  ColorTokens,
5
5
  ResponsiveTypography,
6
- SemanticSpacingTokens,
7
6
  SpacingTokens,
8
7
  TokenShowcase,
9
8
  TypographyTokens,
10
- } from "./TokenShowcase";
9
+ } from "./token-showcase";
11
10
 
12
11
  const meta = {
13
12
  title: "Design System/Tokens",
@@ -57,24 +56,6 @@ export const Typography: Story = {
57
56
  ),
58
57
  };
59
58
 
60
- export const SemanticSpacing: Story = {
61
- render: () => (
62
- <div className="p-8 min-h-screen">
63
- <div className="max-w-4xl mx-auto">
64
- <SemanticSpacingTokens />
65
- </div>
66
- </div>
67
- ),
68
- parameters: {
69
- docs: {
70
- description: {
71
- story:
72
- "Purpose-driven spacing tokens for components (buttons, cards, forms), layouts (hero, sections, containers, grids), and content stacks (vertical rhythm between elements).",
73
- },
74
- },
75
- },
76
- };
77
-
78
59
  export const Breakpoints: Story = {
79
60
  render: () => (
80
61
  <div className="p-8">