@tempoxyz/ds 0.3.14 → 0.3.15

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/dist/docs/AGENTS.md +73 -10
  2. package/dist/docs/{marketing/introduction/getting-started.md → marketing.md} +28 -20
  3. package/dist/docs/product/components/actions.md +2058 -0
  4. package/dist/docs/product/components/blockchain.md +3825 -0
  5. package/dist/docs/product/components/data-display.md +5901 -0
  6. package/dist/docs/product/components/feedback-and-status.md +4008 -0
  7. package/dist/docs/product/components/forms-and-inputs.md +10543 -0
  8. package/dist/docs/product/components/layout.md +3339 -0
  9. package/dist/docs/product/components/navigation.md +2914 -0
  10. package/dist/docs/product/components/overlays.md +4917 -0
  11. package/dist/docs/product/components.md +125 -125
  12. package/dist/docs/product/foundations.md +4596 -0
  13. package/dist/docs/product/patterns.md +10129 -0
  14. package/package.json +1 -1
  15. package/dist/docs/index.md +0 -145
  16. package/dist/docs/product/components/accordion.md +0 -489
  17. package/dist/docs/product/components/address-card.md +0 -147
  18. package/dist/docs/product/components/agent-logo.md +0 -194
  19. package/dist/docs/product/components/alert-dialog.md +0 -631
  20. package/dist/docs/product/components/alert.md +0 -448
  21. package/dist/docs/product/components/amount-input.md +0 -305
  22. package/dist/docs/product/components/amount.md +0 -794
  23. package/dist/docs/product/components/app-shell.md +0 -559
  24. package/dist/docs/product/components/asset-chip.md +0 -294
  25. package/dist/docs/product/components/autocomplete.md +0 -620
  26. package/dist/docs/product/components/avatar.md +0 -321
  27. package/dist/docs/product/components/badge.md +0 -339
  28. package/dist/docs/product/components/badged-logo.md +0 -116
  29. package/dist/docs/product/components/banner.md +0 -379
  30. package/dist/docs/product/components/bar-chart.md +0 -208
  31. package/dist/docs/product/components/breadcrumbs.md +0 -380
  32. package/dist/docs/product/components/button-group.md +0 -286
  33. package/dist/docs/product/components/button.md +0 -650
  34. package/dist/docs/product/components/calendar.md +0 -375
  35. package/dist/docs/product/components/callout.md +0 -96
  36. package/dist/docs/product/components/checkbox-group.md +0 -521
  37. package/dist/docs/product/components/checkbox.md +0 -467
  38. package/dist/docs/product/components/choice-group.md +0 -516
  39. package/dist/docs/product/components/choicebox.md +0 -641
  40. package/dist/docs/product/components/code.md +0 -100
  41. package/dist/docs/product/components/combobox.md +0 -939
  42. package/dist/docs/product/components/container.md +0 -257
  43. package/dist/docs/product/components/copy-button.md +0 -642
  44. package/dist/docs/product/components/date-picker.md +0 -514
  45. package/dist/docs/product/components/dialog.md +0 -1332
  46. package/dist/docs/product/components/drawer.md +0 -966
  47. package/dist/docs/product/components/empty.md +0 -340
  48. package/dist/docs/product/components/field.md +0 -570
  49. package/dist/docs/product/components/fieldset.md +0 -398
  50. package/dist/docs/product/components/frame.md +0 -434
  51. package/dist/docs/product/components/gauge.md +0 -299
  52. package/dist/docs/product/components/get-started-visual.md +0 -117
  53. package/dist/docs/product/components/grid.md +0 -288
  54. package/dist/docs/product/components/hero-visual.md +0 -155
  55. package/dist/docs/product/components/hex.md +0 -487
  56. package/dist/docs/product/components/icon-tile.md +0 -292
  57. package/dist/docs/product/components/identicon.md +0 -371
  58. package/dist/docs/product/components/inline.md +0 -233
  59. package/dist/docs/product/components/inset.md +0 -225
  60. package/dist/docs/product/components/kbd.md +0 -423
  61. package/dist/docs/product/components/list-group.md +0 -981
  62. package/dist/docs/product/components/loading-dots.md +0 -237
  63. package/dist/docs/product/components/menu.md +0 -934
  64. package/dist/docs/product/components/native-select.md +0 -204
  65. package/dist/docs/product/components/network-logo.md +0 -248
  66. package/dist/docs/product/components/number-field.md +0 -543
  67. package/dist/docs/product/components/otp-field.md +0 -616
  68. package/dist/docs/product/components/pagination.md +0 -516
  69. package/dist/docs/product/components/popover.md +0 -544
  70. package/dist/docs/product/components/progress.md +0 -388
  71. package/dist/docs/product/components/qr.md +0 -314
  72. package/dist/docs/product/components/radio-group.md +0 -528
  73. package/dist/docs/product/components/secret-value.md +0 -406
  74. package/dist/docs/product/components/select.md +0 -751
  75. package/dist/docs/product/components/separator.md +0 -379
  76. package/dist/docs/product/components/sidebar-menu.md +0 -922
  77. package/dist/docs/product/components/skeleton.md +0 -517
  78. package/dist/docs/product/components/slider.md +0 -539
  79. package/dist/docs/product/components/snippet.md +0 -424
  80. package/dist/docs/product/components/spinner.md +0 -216
  81. package/dist/docs/product/components/split-bar.md +0 -139
  82. package/dist/docs/product/components/split-button.md +0 -464
  83. package/dist/docs/product/components/stack.md +0 -299
  84. package/dist/docs/product/components/status-chip.md +0 -226
  85. package/dist/docs/product/components/status-indicator.md +0 -119
  86. package/dist/docs/product/components/status-row.md +0 -174
  87. package/dist/docs/product/components/stepper.md +0 -451
  88. package/dist/docs/product/components/success-hero.md +0 -157
  89. package/dist/docs/product/components/surface.md +0 -639
  90. package/dist/docs/product/components/switch.md +0 -472
  91. package/dist/docs/product/components/table.md +0 -968
  92. package/dist/docs/product/components/tabs.md +0 -627
  93. package/dist/docs/product/components/tempo-logo.md +0 -185
  94. package/dist/docs/product/components/text-input.md +0 -624
  95. package/dist/docs/product/components/textarea.md +0 -352
  96. package/dist/docs/product/components/toast.md +0 -535
  97. package/dist/docs/product/components/token-logo.md +0 -371
  98. package/dist/docs/product/components/token.md +0 -247
  99. package/dist/docs/product/components/tooltip.md +0 -490
  100. package/dist/docs/product/components/verification-code.md +0 -116
  101. package/dist/docs/product/components/visual.md +0 -249
  102. package/dist/docs/product/foundations/accessibility.md +0 -377
  103. package/dist/docs/product/foundations/agents.md +0 -159
  104. package/dist/docs/product/foundations/color.md +0 -522
  105. package/dist/docs/product/foundations/content/tone.md +0 -194
  106. package/dist/docs/product/foundations/content/voice.md +0 -194
  107. package/dist/docs/product/foundations/content/writing-style.md +0 -406
  108. package/dist/docs/product/foundations/iconography.md +0 -282
  109. package/dist/docs/product/foundations/intent.md +0 -360
  110. package/dist/docs/product/foundations/layout.md +0 -508
  111. package/dist/docs/product/foundations/linter.md +0 -523
  112. package/dist/docs/product/foundations/motion.md +0 -151
  113. package/dist/docs/product/foundations/radius-and-padding.md +0 -86
  114. package/dist/docs/product/foundations/typography.md +0 -331
  115. package/dist/docs/product/introduction/faq.md +0 -133
  116. package/dist/docs/product/introduction/getting-started.md +0 -377
  117. package/dist/docs/product/patterns/blockchain-values.md +0 -709
  118. package/dist/docs/product/patterns/dashboards.md +0 -638
  119. package/dist/docs/product/patterns/destructive-actions.md +0 -626
  120. package/dist/docs/product/patterns/empty-states.md +0 -612
  121. package/dist/docs/product/patterns/errors-and-validation.md +0 -808
  122. package/dist/docs/product/patterns/feedback-and-status.md +0 -518
  123. package/dist/docs/product/patterns/forms.md +0 -679
  124. package/dist/docs/product/patterns/loading.md +0 -630
  125. package/dist/docs/product/patterns/navigation.md +0 -397
  126. package/dist/docs/product/patterns/payments.md +0 -765
  127. package/dist/docs/product/patterns/responsive-layout.md +0 -997
  128. package/dist/docs/product/patterns/tables-and-lists.md +0 -1170
  129. package/dist/docs/product/products/tempo-console.md +0 -671
  130. package/dist/docs/product/products/tempo-performance.md +0 -435
  131. package/dist/docs/product/products/tempo-wallet.md +0 -438
@@ -1,508 +0,0 @@
1
- # Layout
2
-
3
- Page structure, grid, spacing, radius, and elevation.
4
-
5
- ## Overview
6
-
7
- Tempo pages are calm and orderly. Flat cards sit on a tinted page, line up on a twelve-column grid, and keep generous space between groups, so the content stands out more than its frame.
8
-
9
- Space follows relationships. Elements sit close within a group, further apart between groups, and furthest apart between sections. As the screen widens, the margins grow and the sidebar opens, while the content keeps a comfortable width.
10
-
11
- For page frames and width changes, see [Responsive Layout](../patterns/responsive-layout.md).
12
-
13
- ## Page Structure
14
-
15
- Every page shares one frame, which [App Shell](../components/app-shell.md) provides.
16
-
17
- * **Sidebar:** Navigation on the start edge, which moves into a drawer on small screens.
18
- * **Top Bar:** The page title and its main action, in one bar above the content.
19
- * **Content:** Cards, charts, and tables, arranged on the page grid below the bar.
20
-
21
- ## Grid
22
-
23
- Wide pages divide into twelve columns. Each card, chart, and table takes a share of them, and every row keeps the same gutters. [Grid](../components/grid.md) lays out the columns.
24
-
25
- * **Summary Cards (3 of 12):** Key figures in a row of equal cards.
26
- * **Chart and Panel (8 and 4):** A wide chart beside a narrow panel.
27
- * **Tables (12 of 12):** Lists and tables across the full width.
28
- * **Small Screens (phone):** Cards pair up, and panels stack.
29
-
30
- ## Spacing
31
-
32
- Spacing comes from one scale of steps. Pick a step by how closely the elements relate: the closer the relationship, the smaller the gap.
33
-
34
- * **Related Elements (4 to 8):** An icon and its label, or a label and its value.
35
- * **Items and Fields (12 to 16):** Items in a list, fields in a form, and buttons.
36
- * **Groups and Cards (24 to 32):** Groups within a section, such as cards in a grid.
37
- * **Page Sections (40 to 64):** The sections of a page, such as a table.
38
-
39
- ## Radius
40
-
41
- Larger elements get rounder corners, from fields at 12px to modals at 32px. [Radius and Padding](radius-and-padding.md) covers each role and its padding.
42
-
43
- * `none`: `0rem`
44
- * `3xs`: `calc(0.25rem * var(--tds-corner-scale, 1))`
45
- * `2xs`: `calc(0.5rem * var(--tds-corner-scale, 1))`
46
- * `xs`: `calc(0.75rem * var(--tds-corner-scale, 1))`
47
- * `sm`: `calc(1rem * var(--tds-corner-scale, 1))`
48
- * `md`: `calc(1.5rem * var(--tds-corner-scale, 1))`
49
- * `lg`: `calc(2rem * var(--tds-corner-scale, 1))`
50
- * `xl`: `calc(2.5rem * var(--tds-corner-scale, 1))`
51
- * `2xl`: `calc(4rem * var(--tds-corner-scale, 1))`
52
- * `full`: `62.4375rem`
53
-
54
- ## Elevation
55
-
56
- Shadows mark layers that float above the page, and most surfaces need none. In dark mode, a layer lifts with a lighter surface rather than a deeper shadow.
57
-
58
- * **Flat (none):** Cards and panels, which sit flat on the page.
59
- * **Small (shadow.small):** Controls that lift off a track, such as a switch thumb.
60
- * **Regular (shadow.regular):** Menus, toasts, and other popups over the page.
61
- * **Large (shadow.large):** Dialogs and drawers, above the dimmed page.
62
-
63
- ## Widths
64
-
65
- [Container](../components/container.md) centers content at a maximum width, with side gutters that grow on larger screens. Pick its size by the content, not by the screen.
66
-
67
- * **Narrow (48rem):** Forms, settings, and single-task flows.
68
- * **Medium (64rem):** Detail pages, such as a transaction or an API key.
69
- * **Wide (80rem):** The default, for dashboards, tables, and card grids.
70
- * **Full (none):** Charts and canvases that manage their own width.
71
-
72
- ## Breakpoints
73
-
74
- Design for the smallest screen first, then let content spread into more columns as space allows. Components change layout at the same widths, so a layout that shifts beside one should switch with it.
75
-
76
- * **Phone (0 to 639px):** One column, with the sidebar in a drawer.
77
- * **Tablet (640 to 1023px):** Two columns, where the content allows.
78
- * **Desktop (1024px and up):** The sidebar opens, and grids gain columns.
79
-
80
- Write a breakpoint as a query inside a style.
81
-
82
- ```tsx
83
- import { style } from '@tempoxyz/ds'
84
-
85
- namespace styles {
86
- export const metrics = style({
87
- display: 'grid',
88
- gap: '16',
89
- '@media >=768': { gridTemplateColumns: 'repeat(3, minmax(0, 1fr)) !custom' },
90
- })
91
- }
92
- ```
93
-
94
- ## Layout Primitives
95
-
96
- Primitives arrange content without adding meaning. When a region needs meaning, render the primitive as a semantic element, such as a list or the main landmark.
97
-
98
- * **Stack (gap 16):** [Stack](../components/stack.md) spaces a vertical run, such as fields in a form.
99
- * **Inline (gap 8):** [Inline](../components/inline.md) spaces a horizontal run, such as actions or badges.
100
- * **Grid (gap 24):** [Grid](../components/grid.md) arranges similar items, such as metric tiles.
101
- * **Container (size):** [Container](../components/container.md) sets the page width and side gutters.
102
- * **Inset (space):** [Inset](../components/inset.md) pads a region without drawing a container.
103
- * **Surface (size):** [Surface](../components/surface.md) is a visible card that groups related content.
104
-
105
- ## Guidelines
106
-
107
- ### Space Siblings With Gap
108
-
109
- Space siblings from their parent. Margins on each child collapse, double up when items reorder, and leave stray space after the last item.
110
-
111
- **Do:** Space the items of a list from their parent.
112
-
113
- ```tsx
114
- /**
115
- * Do example for "Space Siblings With Gap" on the Layout page.
116
- * Space the items of a list with `gap` on the parent.
117
- * @module
118
- */
119
- import { style } from '@tempoxyz/ds'
120
-
121
- /** Renders the static preview, which the guideline card shows inert. */
122
- export function Demo() {
123
- return (
124
- <div {...styles.list()}>
125
- <span {...styles.item()}>Sent 25.00 USDC to 0x3c44…93bc</span>
126
- <span {...styles.item()}>Received 120.00 USDC</span>
127
- <span {...styles.item()}>Sent 8.50 USDC to 0x90f7…b906</span>
128
- </div>
129
- )
130
- }
131
-
132
- namespace styles {
133
- export const item = style({
134
- backgroundColor: 'container.regular',
135
- borderRadius: '2xs',
136
- color: 'content.primary',
137
- paddingBlock: '8',
138
- paddingInline: '12',
139
- typography: 'body.b2',
140
- })
141
-
142
- export const list = style({
143
- borderColor: 'line.secondary',
144
- borderRadius: 'xs',
145
- borderStyle: 'dashed',
146
- borderWidth: 'regular',
147
- display: 'flex',
148
- flexDirection: 'column',
149
- gap: '12',
150
- maxWidth: '100% !custom',
151
- padding: '12',
152
- width: '18rem !custom',
153
- })
154
- }
155
- ```
156
-
157
- **Don't:** Add a margin to each child, which leaves space after the last one.
158
-
159
- ```tsx
160
- /**
161
- * Don't example for "Space Siblings With Gap" on the Layout page.
162
- * Don't add a margin to each child, which leaves space after the last one.
163
- * @module
164
- */
165
- import { style } from '@tempoxyz/ds'
166
-
167
- /** Renders the static preview, which the guideline card shows inert. */
168
- export function Demo() {
169
- return (
170
- <div {...styles.list()}>
171
- <span {...styles.item()}>Sent 25.00 USDC to 0x3c44…93bc</span>
172
- <span {...styles.item()}>Received 120.00 USDC</span>
173
- <span {...styles.item()}>Sent 8.50 USDC to 0x90f7…b906</span>
174
- </div>
175
- )
176
- }
177
-
178
- namespace styles {
179
- export const item = style({
180
- backgroundColor: 'container.regular',
181
- borderRadius: '2xs',
182
- color: 'content.primary',
183
- marginBottom: '12',
184
- paddingBlock: '8',
185
- paddingInline: '12',
186
- typography: 'body.b2',
187
- })
188
-
189
- export const list = style({
190
- borderColor: 'line.secondary',
191
- borderRadius: 'xs',
192
- borderStyle: 'dashed',
193
- borderWidth: 'regular',
194
- display: 'flex',
195
- flexDirection: 'column',
196
- maxWidth: '100% !custom',
197
- padding: '12',
198
- width: '18rem !custom',
199
- })
200
- }
201
- ```
202
-
203
- ### Group Related Content by Proximity
204
-
205
- Put less space inside a group than between groups. A label sits close to its value, and separate pairs sit well apart, so they need no dividers.
206
-
207
- **Do:** Keep each label close to its value and leave more space between pairs.
208
-
209
- ```tsx
210
- /**
211
- * Do example for "Group Related Content by Proximity" on the Layout page.
212
- * Keep each label close to its value and leave more space between pairs.
213
- * @module
214
- */
215
- import { Stack, style } from '@tempoxyz/ds'
216
-
217
- /** Renders the static preview, which the guideline card shows inert. */
218
- export function Demo() {
219
- return (
220
- <Stack gap="24">
221
- <Stack gap="4">
222
- <span {...styles.label()}>Recipient</span>
223
- <span {...styles.value()}>0x3c44…93bc</span>
224
- </Stack>
225
- <Stack gap="4">
226
- <span {...styles.label()}>Amount</span>
227
- <span {...styles.value()}>250.00 PathUSD</span>
228
- </Stack>
229
- <Stack gap="4">
230
- <span {...styles.label()}>Network fee</span>
231
- <span {...styles.value()}>0.01 PathUSD</span>
232
- </Stack>
233
- </Stack>
234
- )
235
- }
236
-
237
- namespace styles {
238
- export const label = style({ color: 'content.secondary', typography: 'body.b3' })
239
-
240
- export const value = style({ color: 'content.primary', typography: 'body.b1Strong' })
241
- }
242
- ```
243
-
244
- **Don't:** Space every line equally, which makes labels and values hard to pair.
245
-
246
- ```tsx
247
- /**
248
- * Don't example for "Group Related Content by Proximity" on the Layout page.
249
- * Don't space every line equally, which makes labels and values hard to pair.
250
- * @module
251
- */
252
- import { Stack, style } from '@tempoxyz/ds'
253
-
254
- /** Renders the static preview, which the guideline card shows inert. */
255
- export function Demo() {
256
- return (
257
- <Stack gap="12">
258
- <span {...styles.label()}>Recipient</span>
259
- <span {...styles.value()}>0x3c44…93bc</span>
260
- <span {...styles.label()}>Amount</span>
261
- <span {...styles.value()}>250.00 PathUSD</span>
262
- <span {...styles.label()}>Network fee</span>
263
- <span {...styles.value()}>0.01 PathUSD</span>
264
- </Stack>
265
- )
266
- }
267
-
268
- namespace styles {
269
- export const label = style({ color: 'content.secondary', typography: 'body.b3' })
270
-
271
- export const value = style({ color: 'content.primary', typography: 'body.b1Strong' })
272
- }
273
- ```
274
-
275
- ### Keep Cards Flat
276
-
277
- Separate a [Surface](../components/surface.md) from the page with its lighter background, not a shadow. Keep shadows for content that floats over other content.
278
-
279
- **Do:** Keep cards flat, and add a shadow only to the layer above them.
280
-
281
- ```tsx
282
- <LayoutDemo kind="elevated" />
283
- ```
284
-
285
- **Don't:** Give every card a shadow.
286
-
287
- ```tsx
288
- <LayoutDemo kind="shadowed" />
289
- ```
290
-
291
- ### Use One Surface per Group
292
-
293
- **Do:** Use one surface with a title for one group.
294
-
295
- ```tsx
296
- <Surface>
297
- <Surface.Header>
298
- <Surface.Title>Balances</Surface.Title>
299
- <Button size="small" variant="tertiary">View all</Button>
300
- </Surface.Header>
301
- <span>120.00 USDC</span>
302
- </Surface>
303
- ```
304
-
305
- **Don't:** Nest surfaces to create structure.
306
-
307
- ```tsx
308
- <Surface>
309
- <Surface>
310
- <Surface>
311
- <span>120.00 USDC</span>
312
- </Surface>
313
- </Surface>
314
- </Surface>
315
- ```
316
-
317
- ### Size Containers by Content
318
-
319
- Pick the narrowest [Container](../components/container.md) that fits the content.
320
-
321
- **Do:** Keep a form in a narrow container, so each field is as wide as its content needs.
322
-
323
- ```tsx
324
- <Field.Root>
325
- <Field.Label>Recipient</Field.Label>
326
- <TextInput.Group>
327
- <TextInput.Control placeholder="Address or username" />
328
- </TextInput.Group>
329
- </Field.Root>
330
- ```
331
-
332
- **Don't:** Stretch a form across a wide page.
333
-
334
- ```tsx
335
- <LayoutDemo kind="container" width="full" />
336
- ```
337
-
338
- ### Let Collections Reflow
339
-
340
- For cards and metric tiles, let the grid fit as many columns as the width allows. A fitted grid collapses to one column on a phone without extra breakpoints.
341
-
342
- **Do:** Let a collection reflow to one column at 320px.
343
-
344
- ```tsx
345
- <LayoutDemo kind="columns" width="phone" />
346
- ```
347
-
348
- **Don't:** Fix a column count that runs past a narrow screen.
349
-
350
- ```tsx
351
- <LayoutDemo kind="overflow" />
352
- ```
353
-
354
- ### Keep Source Order Visual Order
355
-
356
- Don't reorder content visually. Keyboard focus and screen readers follow the source, so a reordered layout makes focus jump.
357
-
358
- **Do:** Write elements in the order they appear, so focus moves left to right.
359
-
360
- ```tsx
361
- /**
362
- * Do example for "Keep Source Order Visual Order" on the Layout page.
363
- * Write elements in the order they appear, so focus moves left to right.
364
- * @module
365
- */
366
- import { Button, style } from '@tempoxyz/ds'
367
-
368
- /** Renders the static preview, which the guideline card shows inert. */
369
- export function Demo() {
370
- return (
371
- <div {...styles.row()}>
372
- <span {...styles.item()}>
373
- <span {...styles.step()}>1</span>
374
- <Button variant="secondary">Cancel</Button>
375
- </span>
376
- <span {...styles.item()}>
377
- <span {...styles.step()}>2</span>
378
- <Button>Send payment</Button>
379
- </span>
380
- </div>
381
- )
382
- }
383
-
384
- namespace styles {
385
- export const item = style({
386
- alignItems: 'center',
387
- display: 'flex',
388
- flexDirection: 'column',
389
- gap: '8',
390
- })
391
-
392
- export const row = style({ alignItems: 'flex-end', display: 'flex', gap: '12' })
393
-
394
- export const step = style({
395
- alignItems: 'center',
396
- backgroundColor: 'accent.blue.background',
397
- borderRadius: 'full',
398
- color: 'white !custom',
399
- cornerShape: 'round',
400
- display: 'inline-flex',
401
- height: '20',
402
- justifyContent: 'center',
403
- typography: 'body.b3Strong',
404
- width: '20',
405
- })
406
- }
407
- ```
408
-
409
- **Don't:** Reverse the visual order, which makes focus jump backward.
410
-
411
- ```tsx
412
- /**
413
- * Don't example for "Keep Source Order Visual Order" on the Layout page.
414
- * Don't reverse the visual order, which makes focus jump backward.
415
- * @module
416
- */
417
- import { Button, style } from '@tempoxyz/ds'
418
-
419
- /** Renders the static preview, which the guideline card shows inert. */
420
- export function Demo() {
421
- return (
422
- <div {...styles.row()}>
423
- <span {...styles.item()}>
424
- <span {...styles.step()}>1</span>
425
- <Button>Send payment</Button>
426
- </span>
427
- <span {...styles.item()}>
428
- <span {...styles.step()}>2</span>
429
- <Button variant="secondary">Cancel</Button>
430
- </span>
431
- </div>
432
- )
433
- }
434
-
435
- namespace styles {
436
- export const item = style({
437
- alignItems: 'center',
438
- display: 'flex',
439
- flexDirection: 'column',
440
- gap: '8',
441
- })
442
-
443
- export const row = style({
444
- alignItems: 'flex-end',
445
- display: 'flex',
446
- flexDirection: 'row-reverse',
447
- gap: '12',
448
- justifyContent: 'flex-end',
449
- })
450
-
451
- export const step = style({
452
- alignItems: 'center',
453
- backgroundColor: 'accent.blue.background',
454
- borderRadius: 'full',
455
- color: 'white !custom',
456
- cornerShape: 'round',
457
- display: 'inline-flex',
458
- height: '20',
459
- justifyContent: 'center',
460
- typography: 'body.b3Strong',
461
- width: '20',
462
- })
463
- }
464
- ```
465
-
466
- ## Accessibility
467
-
468
- * **Reflow (320px):** Content reflows without sideways scrolling, as fitted grids do by default.
469
- * **Regions (render):** Primitives add no roles, so render regions as meaningful elements.
470
- * **Text Size (200%):** Spacing grows with larger default text, so check layouts at 200%.
471
-
472
- ## Related
473
-
474
- [Responsive Layout](../patterns/responsive-layout.md)
475
-
476
- Covers page frames and width changes.
477
-
478
- [Stack](../components/stack.md)
479
-
480
- Use for arranging content.
481
-
482
- [Inline](../components/inline.md)
483
-
484
- Use for arranging content.
485
-
486
- [Grid](../components/grid.md)
487
-
488
- Use for arranging content.
489
-
490
- [Container](../components/container.md)
491
-
492
- Use for width and padding.
493
-
494
- [Inset](../components/inset.md)
495
-
496
- Use for width and padding.
497
-
498
- [Surface](../components/surface.md)
499
-
500
- Use for cards.
501
-
502
- [App Shell](../components/app-shell.md)
503
-
504
- Use for the application frame.
505
-
506
- [Radius and Padding](radius-and-padding.md)
507
-
508
- Covers how padding pairs with each radius.