@tempoxyz/ds 0.3.15 → 0.3.17

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 (130) hide show
  1. package/dist/docs/AGENTS.md +10 -6
  2. package/dist/docs/arsenal.md +44 -0
  3. package/dist/docs/marketing.md +703 -4
  4. package/dist/docs/product/components/actions.md +53 -1
  5. package/dist/docs/product/components/blockchain.md +147 -3
  6. package/dist/docs/product/components/feedback-and-status.md +137 -7
  7. package/dist/docs/product/components/navigation.md +1 -1
  8. package/dist/docs/product/documents.md +225 -0
  9. package/dist/docs/product/foundations.md +2 -1
  10. package/dist/docs/product/patterns.md +3 -22
  11. package/dist/document/Document.d.ts +46 -0
  12. package/dist/document/Document.d.ts.map +1 -0
  13. package/dist/document/Document.js +190 -0
  14. package/dist/document/Document.js.map +1 -0
  15. package/dist/document/Enhance.d.ts +13 -0
  16. package/dist/document/Enhance.d.ts.map +1 -0
  17. package/dist/document/Enhance.js +421 -0
  18. package/dist/document/Enhance.js.map +1 -0
  19. package/dist/document/bin.d.ts +3 -0
  20. package/dist/document/bin.d.ts.map +1 -0
  21. package/dist/document/bin.js +38 -0
  22. package/dist/document/bin.js.map +1 -0
  23. package/dist/document/document.css +373 -0
  24. package/dist/document/index.d.ts +3 -0
  25. package/dist/document/index.d.ts.map +1 -0
  26. package/dist/document/index.js +3 -0
  27. package/dist/document/index.js.map +1 -0
  28. package/dist/document/internal/Cli.d.ts +43 -0
  29. package/dist/document/internal/Cli.d.ts.map +1 -0
  30. package/dist/document/internal/Cli.js +87 -0
  31. package/dist/document/internal/Cli.js.map +1 -0
  32. package/dist/document/internal/Template.d.ts +21 -0
  33. package/dist/document/internal/Template.d.ts.map +1 -0
  34. package/dist/document/internal/Template.js +15 -0
  35. package/dist/document/internal/Template.js.map +1 -0
  36. package/dist/document/script.d.ts +2 -0
  37. package/dist/document/script.d.ts.map +1 -0
  38. package/dist/document/script.js +379 -0
  39. package/dist/document/templates/brief.html +96 -0
  40. package/dist/document/templates/essay.html +70 -0
  41. package/dist/document/templates/post.html +69 -0
  42. package/dist/marketing/index.js.zyzz.json +1 -1
  43. package/dist/marketing/vars.d.ts +618 -758
  44. package/dist/marketing/vars.d.ts.map +1 -1
  45. package/dist/marketing/vars.js +8 -5
  46. package/dist/marketing/vars.js.map +1 -1
  47. package/dist/marketing/vars.js.zyzz.json +1 -1
  48. package/dist/marketing/zyzz.config.d.ts +3042 -3757
  49. package/dist/marketing/zyzz.config.d.ts.map +1 -1
  50. package/dist/marketing/zyzz.config.js +1 -1
  51. package/dist/marketing/zyzz.config.js.map +1 -1
  52. package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
  53. package/dist/mobile/components/Button.d.ts +115 -15
  54. package/dist/mobile/components/Button.d.ts.map +1 -1
  55. package/dist/mobile/components/Button.js +85 -14
  56. package/dist/mobile/components/Button.js.map +1 -1
  57. package/dist/mobile/components/IconButton.d.ts +129 -40
  58. package/dist/mobile/components/IconButton.d.ts.map +1 -1
  59. package/dist/mobile/components/IconButton.js +97 -28
  60. package/dist/mobile/components/IconButton.js.map +1 -1
  61. package/dist/mobile/components/TextInput.d.ts +132 -11
  62. package/dist/mobile/components/TextInput.d.ts.map +1 -1
  63. package/dist/mobile/components/TextInput.js +115 -14
  64. package/dist/mobile/components/TextInput.js.map +1 -1
  65. package/dist/mobile/index.d.ts +1 -0
  66. package/dist/mobile/index.d.ts.map +1 -1
  67. package/dist/mobile/index.js +1 -0
  68. package/dist/mobile/index.js.map +1 -1
  69. package/dist/mobile/vars.d.ts +103 -0
  70. package/dist/mobile/vars.d.ts.map +1 -1
  71. package/dist/mobile/vars.js +74 -0
  72. package/dist/mobile/vars.js.map +1 -1
  73. package/dist/mobile/zyzz.config.d.ts +408 -0
  74. package/dist/mobile/zyzz.config.d.ts.map +1 -1
  75. package/dist/web/components/AddressCard.js.zyzz.json +1 -1
  76. package/dist/web/components/Amount.css +1 -1
  77. package/dist/web/components/Amount.d.ts +9 -0
  78. package/dist/web/components/Amount.d.ts.map +1 -1
  79. package/dist/web/components/Amount.js +8 -5
  80. package/dist/web/components/Amount.js.map +1 -1
  81. package/dist/web/components/Amount.js.zyzz.json +1 -1
  82. package/dist/web/components/CopyButton.d.ts +6 -0
  83. package/dist/web/components/CopyButton.d.ts.map +1 -1
  84. package/dist/web/components/CopyButton.js +4 -1
  85. package/dist/web/components/CopyButton.js.map +1 -1
  86. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  87. package/dist/web/components/Hex.css +1 -1
  88. package/dist/web/components/Hex.d.ts +84 -3
  89. package/dist/web/components/Hex.d.ts.map +1 -1
  90. package/dist/web/components/Hex.js +20 -13
  91. package/dist/web/components/Hex.js.map +1 -1
  92. package/dist/web/components/Hex.js.zyzz.json +1 -1
  93. package/dist/web/components/Progress.css +1 -1
  94. package/dist/web/components/Progress.d.ts +12 -2
  95. package/dist/web/components/Progress.d.ts.map +1 -1
  96. package/dist/web/components/Progress.js +9 -5
  97. package/dist/web/components/Progress.js.map +1 -1
  98. package/dist/web/components/Progress.js.zyzz.json +1 -1
  99. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  100. package/dist/web/components/SidebarMenu.d.ts +4 -4
  101. package/dist/web/components/SidebarMenu.js +6 -6
  102. package/dist/web/components/SidebarMenu.js.map +1 -1
  103. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  104. package/dist/web/index.js.zyzz.json +1 -1
  105. package/package.json +19 -1
  106. package/src/document/Document.ts +277 -0
  107. package/src/document/Enhance.ts +434 -0
  108. package/src/document/bin.ts +38 -0
  109. package/src/document/document.css +373 -0
  110. package/src/document/index.ts +2 -0
  111. package/src/document/internal/Cli.ts +132 -0
  112. package/src/document/internal/Template.ts +25 -0
  113. package/src/document/script.ts +8 -0
  114. package/src/document/templates/brief.html +96 -0
  115. package/src/document/templates/essay.html +70 -0
  116. package/src/document/templates/post.html +69 -0
  117. package/src/marketing/README.md +1 -1
  118. package/src/marketing/vars.ts +526 -604
  119. package/src/marketing/zyzz.config.ts +5 -4
  120. package/src/mobile/README.md +19 -6
  121. package/src/mobile/components/Button.tsx +94 -17
  122. package/src/mobile/components/IconButton.tsx +122 -30
  123. package/src/mobile/components/TextInput.tsx +139 -24
  124. package/src/mobile/index.ts +1 -0
  125. package/src/mobile/vars.ts +74 -0
  126. package/src/web/components/Amount.tsx +37 -3
  127. package/src/web/components/CopyButton.tsx +8 -0
  128. package/src/web/components/Hex.tsx +79 -13
  129. package/src/web/components/Progress.tsx +8 -2
  130. package/src/web/components/SidebarMenu.tsx +6 -6
@@ -5,6 +5,12 @@ Each section below is one page of the documentation at ds.tehq.dev.
5
5
  ## Contents
6
6
 
7
7
  - [Getting Started](#getting-started): Install the Marketing system and style your first section.
8
+ - [Accessibility](#accessibility): Focus rings, hit areas, contrast, and reduced motion on marketing pages.
9
+ - [Color](#color): Black, white, and their translucent steps, with hue reserved for status.
10
+ - [Layout](#layout): The page grid, section spacing, gaps, and widths of marketing pages.
11
+ - [Motion](#motion): Durations, delays, curves, and distances, with reduced motion built in.
12
+ - [Radius and Padding](#radius-and-padding): Corner radii, squircle corners, border widths, and how boxes pad by radius.
13
+ - [Typography](#typography): Pilat for headlines and copy, HB Set for statements, and responsive sizes.
8
14
 
9
15
  ## Getting Started
10
16
 
@@ -94,7 +100,7 @@ namespace styles {
94
100
  }
95
101
  ```
96
102
 
97
- Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Light and dark values follow the inherited `color-scheme`.
103
+ Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Marketing has one light color scheme. Style a dark section with the `inverse` colors, such as `inverse.content.primary`. Sizes such as `display.d1` step up at 768px, 1024px, and 1512px, and motion tokens turn off under reduced motion.
98
104
 
99
105
  ##### Custom Variables (Advanced)
100
106
 
@@ -108,7 +114,7 @@ import { Config, Vars } from 'zyzz'
108
114
 
109
115
  export const { style, vars } = Config.create({
110
116
  id: 'site',
111
- vars: Vars.extend(variables, { spacing: { section: '7.5rem' } }, { id: 'site/vars' }),
117
+ vars: Vars.extend(variables, { spacing: { band: '7.5rem' } }, { id: 'site/vars' }),
112
118
  })
113
119
  ```
114
120
 
@@ -197,7 +203,7 @@ namespace styles {
197
203
  }
198
204
  ```
199
205
 
200
- Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Light and dark values follow the inherited `color-scheme`.
206
+ Tokens such as `content.primary`, `'64'`, and `display.d1` type-check against the Marketing variables. Marketing has one light color scheme. Style a dark section with the `inverse` colors, such as `inverse.content.primary`. Sizes such as `display.d1` step up at 768px, 1024px, and 1512px, and motion tokens turn off under reduced motion.
201
207
 
202
208
  ##### Custom Variables (Advanced)
203
209
 
@@ -211,7 +217,7 @@ import { Config, Vars } from 'zyzz'
211
217
 
212
218
  export const { style, vars } = Config.create({
213
219
  id: 'site',
214
- vars: Vars.extend(variables, { spacing: { section: '7.5rem' } }, { id: 'site/vars' }),
220
+ vars: Vars.extend(variables, { spacing: { band: '7.5rem' } }, { id: 'site/vars' }),
215
221
  })
216
222
  ```
217
223
 
@@ -247,3 +253,696 @@ namespace styles {
247
253
 
248
254
  > [!NOTE]
249
255
  > The Marketing variables change as the Marketing designs define their own values. Marketing ships no components yet.
256
+
257
+ ## Accessibility
258
+
259
+ Focus rings, hit areas, contrast, and reduced motion on marketing pages.
260
+
261
+ ### Overview
262
+
263
+ Marketing tokens build in the basics: one focus ring for every control, a minimum hit area, content roles that meet contrast on their backgrounds, and motion that turns off under reduced motion.
264
+
265
+ ### Focus and Targets
266
+
267
+ | Token | Value | Use |
268
+ | --- | --- | --- |
269
+ | `outlineWidth.ring` | `2px` | The width of every focus ring. |
270
+ | `outlineOffset.ring` | `3px` | How far the ring sits outside a control, card, or frame. |
271
+ | `outlineOffset.ringInline` | `2px` | The ring of a link in running text, closer to the text. |
272
+ | `spacing.hitMin` | `44px` | The square that a hit area grows toward. |
273
+ | `spacing.scrollOffset` | `88px, 92px from 1024px` | Where an in-page jump lands, below the fixed navigation. |
274
+
275
+ ### Guidelines
276
+
277
+ #### Show the Ring on Keyboard Focus
278
+
279
+ Draw the ring with `outlineWidth.ring` and `outlineOffset.ring` on `:focus-visible`, and use `ringInline` for links in running text.
280
+
281
+ #### Grow Small Targets
282
+
283
+ Grow the hit area of a small control toward `hitMin`, such as a 24px icon button with padding.
284
+
285
+ #### Keep Text Above Tertiary
286
+
287
+ Set text the reader must see in `content.primary`, `content.prose`, or `content.secondary`. Keep `content.tertiary` and `content.subtle` for hints and disabled text.
288
+
289
+ #### Honor Reduced Motion
290
+
291
+ Read motion from the tokens, which stop movement under `prefers-reduced-motion: reduce`.
292
+
293
+ ### Related
294
+
295
+ [Motion](/marketing/foundations/motion)
296
+
297
+ Covers durations and their reduced values.
298
+
299
+ [Color](/marketing/foundations/color)
300
+
301
+ Covers the content roles and their contrast.
302
+
303
+ ## Color
304
+
305
+ Black, white, and their translucent steps, with hue reserved for status.
306
+
307
+ ### Overview
308
+
309
+ Marketing pages are black type on a near-white page. Contrast carries the hierarchy: black headlines, gray supporting copy, and faint gray hints sit on the same page color. Cards and controls fill with black at a few percent, so they read as lifted without a new color.
310
+
311
+ A dark section flips the page. The inverse roles hold the same hierarchy in white on black, so a band can change tone without new rules. Hue only reports status, such as a submitted form.
312
+
313
+ ### Primitives
314
+
315
+ Primitives hold the raw colors that the roles read. Use a role in page styles, and reach for a primitive only for an illustration or a chart.
316
+
317
+ #### Neutral
318
+
319
+ | Token | Value |
320
+ | --- | --- |
321
+ | `neutral.000` | `#ffffff` |
322
+ | `neutral.003` | `#f7f7f7` |
323
+ | `neutral.004` | `#f5f5f5` |
324
+ | `neutral.006` | `#f0f0f0` |
325
+ | `neutral.008` | `#ebebeb` |
326
+ | `neutral.012` | `#e0e0e0` |
327
+ | `neutral.016` | `#d6d6d6` |
328
+ | `neutral.020` | `#cccccc` |
329
+ | `neutral.024` | `#c2c2c2` |
330
+ | `neutral.028` | `#b8b8b8` |
331
+ | `neutral.032` | `#adadad` |
332
+ | `neutral.036` | `#a3a3a3` |
333
+ | `neutral.040` | `#999999` |
334
+ | `neutral.044` | `#8f8f8f` |
335
+ | `neutral.048` | `#858585` |
336
+ | `neutral.052` | `#7a7a7a` |
337
+ | `neutral.056` | `#707070` |
338
+ | `neutral.060` | `#666666` |
339
+ | `neutral.064` | `#5c5c5c` |
340
+ | `neutral.068` | `#525252` |
341
+ | `neutral.072` | `#474747` |
342
+ | `neutral.076` | `#3d3d3d` |
343
+ | `neutral.080` | `#333333` |
344
+ | `neutral.084` | `#292929` |
345
+ | `neutral.088` | `#1f1f1f` |
346
+ | `neutral.092` | `#141414` |
347
+ | `neutral.096` | `#0a0a0a` |
348
+ | `neutral.100` | `#000000` |
349
+
350
+ Each step names a percentage of black, from white at 000 to black at 100. The page sits at 004, a step off white.
351
+
352
+ #### Shade and Tint
353
+
354
+ | Token | Value |
355
+ | --- | --- |
356
+ | `neutral.shade.003` | `#00000008` |
357
+ | `neutral.shade.004` | `#0000000a` |
358
+ | `neutral.shade.006` | `#0000000f` |
359
+ | `neutral.shade.007` | `#00000012` |
360
+ | `neutral.shade.008` | `#00000014` |
361
+ | `neutral.shade.012` | `#0000001f` |
362
+ | `neutral.shade.016` | `#00000029` |
363
+ | `neutral.shade.020` | `#00000033` |
364
+ | `neutral.shade.024` | `#0000003d` |
365
+ | `neutral.shade.028` | `#00000047` |
366
+ | `neutral.shade.032` | `#00000052` |
367
+ | `neutral.shade.040` | `#00000066` |
368
+ | `neutral.shade.056` | `#0000008f` |
369
+ | `neutral.shade.060` | `#00000099` |
370
+ | `neutral.shade.064` | `#000000a3` |
371
+ | `neutral.shade.080` | `#000000cc` |
372
+
373
+ | Token | Value |
374
+ | --- | --- |
375
+ | `neutral.tint.004` | `#ffffff0a` |
376
+ | `neutral.tint.005` | `#ffffff0d` |
377
+ | `neutral.tint.006` | `#ffffff0f` |
378
+ | `neutral.tint.007` | `#ffffff12` |
379
+ | `neutral.tint.008` | `#ffffff14` |
380
+ | `neutral.tint.012` | `#ffffff1f` |
381
+ | `neutral.tint.016` | `#ffffff29` |
382
+ | `neutral.tint.020` | `#ffffff33` |
383
+ | `neutral.tint.024` | `#ffffff3d` |
384
+ | `neutral.tint.028` | `#ffffff47` |
385
+ | `neutral.tint.044` | `#ffffff70` |
386
+ | `neutral.tint.048` | `#ffffff7a` |
387
+ | `neutral.tint.052` | `#ffffff85` |
388
+ | `neutral.tint.056` | `#ffffff8f` |
389
+ | `neutral.tint.060` | `#ffffff99` |
390
+ | `neutral.tint.064` | `#ffffffa3` |
391
+ | `neutral.tint.080` | `#ffffffcc` |
392
+
393
+ Shades are black and tints are white, at the opacity each step names. A shade darkens any light surface by the same amount, and a tint lightens any dark one.
394
+
395
+ #### Glass
396
+
397
+ | Token | Value |
398
+ | --- | --- |
399
+ | `neutral.glass.028` | `#70707047` |
400
+ | `neutral.glass.032` | `#70707052` |
401
+
402
+ Glass is a translucent gray for frosted controls that float over media.
403
+
404
+ #### Accent
405
+
406
+ | Hue | Lighter | Darker |
407
+ | --- | --- | --- |
408
+ | blue | `accent.blue.lighter` (`#4471ed`) | `accent.blue.darker` (`#7498fb`) |
409
+ | cyan | `accent.cyan.lighter` (`#00aacb`) | `accent.cyan.darker` (`#48cce6`) |
410
+ | green | `accent.green.lighter` (`#13a963`) | `accent.green.darker` (`#59e5a4`) |
411
+ | olive | `accent.olive.lighter` (`#95b226`) | `accent.olive.darker` (`#c4dc65`) |
412
+ | orange | `accent.orange.lighter` (`#e06f12`) | `accent.orange.darker` (`#fa8e36`) |
413
+ | red | `accent.red.lighter` (`#eb3417`) | `accent.red.darker` (`#f55c45`) |
414
+ | magenta | `accent.magenta.lighter` (`#cc055b`) | `accent.magenta.darker` (`#e54088`) |
415
+ | purple | `accent.purple.lighter` (`#ba59dd`) | `accent.purple.darker` (`#cf79ef`) |
416
+ | violet | `accent.violet.lighter` (`#7e59e4`) | `accent.violet.darker` (`#9877f1`) |
417
+
418
+ Each hue has a lighter step for marks on the light page and a darker step for marks in a dark section.
419
+
420
+ ### Backgrounds
421
+
422
+ | Token | Value | Use |
423
+ | --- | --- | --- |
424
+ | `background.primary` | `#f5f5f5` | The page, behind every section. |
425
+ | `background.secondary` | `#ffffff` | A white band or panel that lifts off the page. |
426
+ | `background.elevated` | `#ffffff` | Menus, popovers, and cards that float above a section. |
427
+
428
+ ### Containers
429
+
430
+ Containers fill cards, controls, and markers. They are black shades, so a card keeps the same step on the page and on a white band.
431
+
432
+ | Token | Value | Use |
433
+ | --- | --- | --- |
434
+ | `container.surface` | `#00000008` | The fill of a card, tile, or media frame. |
435
+ | `container.control` | `#0000000a` | The fill of a control, such as a tag or a secondary button. |
436
+ | `container.marker` | `#00000014` | A selected or hovered marker, such as the current tab. |
437
+
438
+ ### Content
439
+
440
+ Content colors text and glyphs. Pick a role by how much the reader needs the text.
441
+
442
+ | Token | Value | Use |
443
+ | --- | --- | --- |
444
+ | `content.primary` | `#000000` | Headlines, primary actions, and text the reader must see. |
445
+ | `content.prose` | `#000000cc` | Running text in articles and long descriptions. |
446
+ | `content.secondary` | `#0000008f` | Supporting copy, captions, and metadata. |
447
+ | `content.tertiary` | `#00000066` | Hints and glyphs, such as separators. Too faint for body text. |
448
+ | `content.subtle` | `#00000029` | Placeholders and disabled text. |
449
+ | `content.positive` | `#13a963` | Success, such as a confirmed form submission. |
450
+ | `content.warning` | `#e06f12` | A caution the reader must notice before acting. |
451
+ | `content.negative` | `#eb3417` | Errors, such as an invalid email address. |
452
+
453
+ ### Lines and Links
454
+
455
+ | Token | Value | Use |
456
+ | --- | --- | --- |
457
+ | `line.primary` | `#00000029` | Edges and outlines, such as a card border. |
458
+ | `line.secondary` | `#00000014` | Dividers between rows and sections. |
459
+
460
+ | Token | Value | Use |
461
+ | --- | --- | --- |
462
+ | `link.rest` | `#000000` | A link in running text at rest. |
463
+ | `link.hover` | `#0000008f` | A link under the pointer. |
464
+
465
+ ### Scrim
466
+
467
+ | Token | Value | Use |
468
+ | --- | --- | --- |
469
+ | `scrim` | `#00000029` | Dims the page behind a dialog or the mobile menu. |
470
+
471
+ ### Inverse
472
+
473
+ The inverse roles color a dark section on the light page. Each one mirrors a light role, so a band reads the same way in either tone.
474
+
475
+ | Token | Value | Use |
476
+ | --- | --- | --- |
477
+ | `inverse.background.primary` | `#000000` | A dark section on the light page. |
478
+ | `inverse.background.secondary` | `#141414` | A raised panel inside a dark section. |
479
+ | `inverse.container.surface` | `#ffffff14` | A card or media frame inside a dark section. |
480
+ | `inverse.container.control` | `#ffffff1f` | A control fill inside a dark section. |
481
+ | `inverse.container.marker` | `#ffffff29` | A selected or hovered marker inside a dark section. |
482
+ | `inverse.content.primary` | `#f5f5f5` | Headlines and primary text inside a dark section. |
483
+ | `inverse.content.secondary` | `#ffffff99` | Supporting copy inside a dark section. |
484
+ | `inverse.content.tertiary` | `#ffffff70` | Hints and glyphs inside a dark section. |
485
+ | `inverse.content.subtle` | `#ffffff33` | Placeholders and disabled text inside a dark section. |
486
+ | `inverse.line.primary` | `#ffffff3d` | Edges and outlines inside a dark section. |
487
+ | `inverse.line.secondary` | `#ffffff1f` | Dividers inside a dark section. |
488
+
489
+ ### Guidelines
490
+
491
+ #### Choose Roles, Not Steps
492
+
493
+ Style a page with roles such as `content.secondary`, not with the primitive step it reads. A role keeps its meaning when the system changes a value.
494
+
495
+ **Do:** Color the eyebrow and subhead with `content.secondary`.
496
+
497
+ ```tsx
498
+ <MarketingExample kind="section" />
499
+ ```
500
+
501
+ **Don't:** Set copy in `content.tertiary`. It is too faint for text the reader must see.
502
+
503
+ ```tsx
504
+ <MarketingExample kind="faint" />
505
+ ```
506
+
507
+ #### Pair Status Color With Words
508
+
509
+ Status color supports a label and never stands alone.
510
+
511
+ **Do:** Label each state, and color the label by its intent.
512
+
513
+ ```tsx
514
+ <MarketingExample kind="status" />
515
+ ```
516
+
517
+ **Don't:** Rely on a colored dot alone. Some readers cannot tell the hues apart.
518
+
519
+ ```tsx
520
+ <MarketingExample kind="statusColor" />
521
+ ```
522
+
523
+ #### Use Inverse Roles in Dark Sections
524
+
525
+ Inside a dark band, use the `inverse` role for each light role, such as `inverse.content.secondary` for supporting copy.
526
+
527
+ ### Related
528
+
529
+ [Typography](/marketing/foundations/typography)
530
+
531
+ Covers the text styles that the content roles color.
532
+
533
+ [Accessibility](/marketing/foundations/accessibility)
534
+
535
+ Covers contrast, focus, and reduced motion.
536
+
537
+ ## Layout
538
+
539
+ The page grid, section spacing, gaps, and widths of marketing pages.
540
+
541
+ ### Overview
542
+
543
+ A marketing page stacks full-width sections. Each section pads its top and bottom, insets its content by the page margin, and lays it out on a grid of 4, 6, or 12 columns. Layout gaps separate its heading, blocks, and elements.
544
+
545
+ Most layout tokens step up at 1024px, so a page breathes more on a desktop than on a phone without new rules.
546
+
547
+ ### Breakpoints
548
+
549
+ Marketing pages have four responsive modes. Mobile is the default, and each wider mode starts at its breakpoint.
550
+
551
+ | Condition | Width | Starts |
552
+ | --- | --- | --- |
553
+ | `@media >=768` | 768px | Tablet: sizes, page margins, and the grid step up. |
554
+ | `@media >=1024` | 1024px | Desktop: sections, layout gaps, and prose step up, and the grid reaches 12 columns. |
555
+ | `@media >=1512` | 1512px | Display: the largest display and heading sizes. |
556
+
557
+ Style a responsive value with the `@media >=768`, `@media >=1024`, and `@media >=1512` conditions.
558
+
559
+ ### Grid
560
+
561
+
562
+
563
+ The grid has 4 columns on Mobile, 6 from 768px, and 12 from 1024px, with `layout.columns` holding the count.
564
+
565
+ | Token | Mobile | Tablet | Desktop | Display | Use |
566
+ | --- | --- | --- | --- | --- | --- |
567
+ | `page.margin` | 24px | 48px | 80px | 80px | The inset of the page content from the viewport edge. |
568
+ | `page.gutter` | 20px | 24px | 24px | 24px | The gap between grid columns. |
569
+
570
+ ### Sections
571
+
572
+ Section tokens pad a section from its neighbors. Use `section.lg` by default, and size up or down by the weight of the content.
573
+
574
+ | Token | Mobile | Tablet | Desktop | Display | Use |
575
+ | --- | --- | --- | --- | --- | --- |
576
+ | `section.2xs` | 8px | 8px | 12px | 12px | A hairline band, such as a logo strip. |
577
+ | `section.xs` | 24px | 24px | 32px | 32px | A compact band, such as a banner. |
578
+ | `section.sm` | 40px | 40px | 64px | 64px | A small section, such as a call to action. |
579
+ | `section.md` | 80px | 80px | 100px | 100px | A medium section, such as a feature row. |
580
+ | `section.lg` | 120px | 120px | 160px | 160px | The default section padding. |
581
+ | `section.xl` | 180px | 180px | 240px | 240px | A section that opens a page or a chapter. |
582
+ | `section.hero` | 135px | 135px | 180px | 180px | The top inset of a hero: XL times 0.75. |
583
+ | `section.gap` | 144px | 144px | 192px | 192px | Between two sections, held by the lower one: LG plus XS. |
584
+
585
+ ### Layout Gaps
586
+
587
+ | Token | Mobile | Tablet | Desktop | Display | Use |
588
+ | --- | --- | --- | --- | --- | --- |
589
+ | `layoutGap.heading` | 24px | 24px | 32px | 32px | Between a section heading and its content. |
590
+ | `layoutGap.content` | 32px | 32px | 48px | 48px | Between blocks of content in a section, such as rows of cards. |
591
+ | `layoutGap.element` | 24px | 24px | 32px | 32px | Between elements in a block, such as cards in a row. |
592
+
593
+ ### Text Pairs
594
+
595
+ Text pair gaps space two stacked text styles.
596
+
597
+ | Token | Mobile | Tablet | Desktop | Display | Use |
598
+ | --- | --- | --- | --- | --- | --- |
599
+ | `textPair.h4B1` | 12px | 12px | 12px | 12px | An H4 title over B1 body copy. |
600
+ | `textPair.b1B1` | 12px | 12px | 12px | 12px | Two B1 paragraphs or lines. |
601
+ | `textPair.b1B2` | 8px | 8px | 8px | 8px | B1 copy over a B2 caption. |
602
+ | `textPair.b2B2` | 8px | 8px | 8px | 8px | Two B2 lines, such as a list item and its detail. |
603
+
604
+ ### Spacing Scale
605
+
606
+ The scale spaces everything else, such as the padding of a card or the gap of a toolbar.
607
+
608
+ | Token | Mobile | Tablet | Desktop | Display |
609
+ | --- | --- | --- | --- | --- |
610
+ | `0` | 0px | 0px | 0px | 0px |
611
+ | `2` | 2px | 2px | 2px | 2px |
612
+ | `4` | 4px | 4px | 4px | 4px |
613
+ | `8` | 8px | 8px | 8px | 8px |
614
+ | `12` | 12px | 12px | 12px | 12px |
615
+ | `16` | 16px | 16px | 16px | 16px |
616
+ | `20` | 20px | 20px | 20px | 20px |
617
+ | `24` | 24px | 24px | 24px | 24px |
618
+ | `32` | 32px | 32px | 32px | 32px |
619
+ | `40` | 40px | 40px | 40px | 40px |
620
+ | `48` | 48px | 48px | 48px | 48px |
621
+ | `64` | 64px | 64px | 64px | 64px |
622
+
623
+ ### Widths
624
+
625
+ Containers cap the width of a content column, and the page container centers sections past 2560px.
626
+
627
+ | Token | Max Width | Use |
628
+ | --- | --- | --- |
629
+ | `container.280` | 280px | A narrow card or form column. |
630
+ | `container.320` | 320px | A small card. |
631
+ | `container.360` | 360px | A card or a short caption. |
632
+ | `container.400` | 400px | A paragraph beside media. |
633
+ | `container.480` | 480px | A form or a centered paragraph. |
634
+ | `container.600` | 600px | A centered section intro or a subhead. |
635
+ | `container.720` | 720px | An article column. |
636
+ | `container.1000` | 1000px | A wide feature, such as a centered table. |
637
+ | `container.2560` | 2560px | The page container: sections stop at 2560px and center. |
638
+
639
+ ### Guidelines
640
+
641
+ #### Space Sections With Section Tokens
642
+
643
+ Pad sections with the section tokens, not the spacing scale, so the rhythm steps at 1024px.
644
+
645
+ #### Separate Content With Layout Gaps
646
+
647
+ **Do:** Space the heading and the cards with `layoutGap.heading` and `layoutGap.element`.
648
+
649
+ ```tsx
650
+ <MarketingExample kind="cards" />
651
+ ```
652
+
653
+ **Don't:** Crowd a heading and its content. The reader cannot tell the groups apart.
654
+
655
+ ```tsx
656
+ <MarketingExample kind="crowded" />
657
+ ```
658
+
659
+ #### Cap Text Columns
660
+
661
+ Cap a paragraph at `container.600` or narrower, so lines stay readable on a wide screen.
662
+
663
+ ### Related
664
+
665
+ [Radius and Padding](/marketing/foundations/radius-and-padding)
666
+
667
+ Covers corners and how containers pad by them.
668
+
669
+ [Typography](/marketing/foundations/typography)
670
+
671
+ Covers the text styles that layout spaces.
672
+
673
+ ## Motion
674
+
675
+ Durations, delays, curves, and distances, with reduced motion built in.
676
+
677
+ ### Overview
678
+
679
+ Marketing motion is quick and quiet. Hover and press respond in about 100ms, surfaces open in 200ms, and larger moments, such as the products showcase, take up to 800ms. Most motion follows the standard curve, which starts fast and settles.
680
+
681
+ Every motion token holds a reduced value. Under `prefers-reduced-motion: reduce`, distances and scales go to zero and durations shorten or stop, so pages honor the setting without extra rules.
682
+
683
+ ### Durations
684
+
685
+ | Token | Value | Use |
686
+ | --- | --- | --- |
687
+ | `press` | `100ms` | A press going in: the dim or the deeper tint. |
688
+ | `hoverIn` | `120ms, 100ms reduced` | Color, fill, or opacity as a pointer arrives. |
689
+ | `hoverOut` | `200ms, 100ms reduced` | The same properties as the pointer leaves. |
690
+ | `state` | `200ms, 100ms reduced` | Toggles, chevron turns, and fades once something is ready. |
691
+ | `swap` | `150ms, 100ms reduced` | Text, a figure, or an icon that changes in place. |
692
+ | `surfaceIn` | `200ms, 100ms reduced` | Menus, popovers, and dialogs opening. |
693
+ | `surfaceOut` | `120ms, 100ms reduced` | Menus, popovers, and dialogs closing. |
694
+ | `disclose` | `280ms, 100ms reduced` | Accordion and FAQ panels, the same both ways. |
695
+ | `media` | `400ms, 0ms reduced` | Image zoom and media swaps. |
696
+ | `enter` | `300ms, 0ms reduced` | A set that a visitor causes to appear, such as filter results. |
697
+ | `showcase` | `500ms, 0ms reduced` | The products showcase: its rows opening and closing. |
698
+ | `showcaseEnter` | `800ms, 0ms reduced` | The products showcase: its media coming in. |
699
+ | `showcaseExit` | `240ms, 0ms reduced` | The products showcase: the media it leaves. |
700
+ | `draw` | `1400ms, 0ms reduced` | A rail that draws itself once it scrolls into view. |
701
+ | `busyFade` | `100ms` | A busy spinner fading in and out. |
702
+ | `busyTurn` | `800ms, 0ms reduced` | One turn of the spinner, which holds still when reduced. |
703
+
704
+ ### Delays
705
+
706
+ | Token | Value | Use |
707
+ | --- | --- | --- |
708
+ | `busyIn` | `200ms` | The wait before a busy spinner fades in, so quick actions skip it. |
709
+ | `busyOut` | `400ms` | The least time the spinner stays once shown. |
710
+ | `pendingIn` | `200ms` | The wait before a page change shows its pending line. |
711
+ | `pendingOut` | `300ms` | The least time the pending line stays once shown. |
712
+ | `showcaseEnter` | `200ms, 0ms reduced` | The wait before showcase media comes in. |
713
+ | `stagger` | `25ms, 0ms reduced` | Between items of an entering set, for 8 items at most. |
714
+
715
+ ### Easing
716
+
717
+ | Token | Value | Use |
718
+ | --- | --- | --- |
719
+ | `ease.standard` | `cubic-bezier(0.22, 1, 0.36, 1)` | Hover, press, state, surfaces, disclosure, and media. |
720
+ | `ease.enter` | `cubic-bezier(0.05, 0.7, 0.1, 1)` | Entering sets, and fades once something is ready. |
721
+ | `ease.exit` | `cubic-bezier(0.3, 0, 0.8, 0.15)` | Surfaces closing. |
722
+ | `ease.morph` | `cubic-bezier(0.45, 0, 0.2, 1)` | The products showcase. |
723
+ | `ease.draw` | `cubic-bezier(0.65, 0, 0.35, 1)` | Lines that draw themselves, such as a rail. |
724
+ | `ease.linear` | `linear` | Loops, marquees, and fades that follow the scroll. |
725
+
726
+ ### Scale and Distance
727
+
728
+ | Token | Value | Use |
729
+ | --- | --- | --- |
730
+ | `scale.surfaceIn` | `0.97, 1 reduced` | How small a menu, popover, or dialog starts. |
731
+ | `scale.surfaceOut` | `0.99, 1 reduced` | How small a surface ends as it closes. |
732
+ | `scale.swap` | `0.5, 1 reduced` | How small a swapping icon shrinks and grows from. |
733
+ | `scale.mediaHover` | `1.02, 1 reduced` | How far a linked card zooms its media on hover. |
734
+
735
+ | Token | Value | Use |
736
+ | --- | --- | --- |
737
+ | `translate.enter` | `8px, 0px reduced` | How far an entering item rises. |
738
+ | `translate.swap` | `0.15em, 0px reduced` | How far swapping text travels up. |
739
+ | `translate.nudge` | `0.15em, 0px reduced` | How far a chevron travels on hover. |
740
+
741
+ ### Blur and Opacity
742
+
743
+ | Token | Value | Use |
744
+ | --- | --- | --- |
745
+ | `blur.control` | `10px` | Frosted controls over media. |
746
+ | `blur.popover` | `20px` | Frosted menus and popovers. |
747
+ | `blur.soften` | `2px` | The blur that a swapping value passes through. |
748
+
749
+ | Token | Value | Use |
750
+ | --- | --- | --- |
751
+ | `opacity.press` | `0.65` | A pressed control, such as a dark button. |
752
+ | `opacity.pressSurface` | `0.72` | A pressed link, row, or card. |
753
+ | `opacity.recede` | `0.56` | The other items of a list that spotlights one. |
754
+ | `opacity.disabled` | `0.4` | A disabled button. |
755
+
756
+ ### Guidelines
757
+
758
+ #### Pair Each Transition With Its Token
759
+
760
+ Set the duration and curve of a transition from the same row, such as `hoverIn` with `standard`.
761
+
762
+ #### Return Faster Than You Arrive
763
+
764
+ Use `hoverOut` and `surfaceOut` for the way back, so a page never lags behind the pointer.
765
+
766
+ #### Let the Tokens Handle Reduced Motion
767
+
768
+ Read durations, distances, and scales from the tokens. Their reduced values turn movement off without a separate media query.
769
+
770
+ ### Related
771
+
772
+ [Accessibility](/marketing/foundations/accessibility)
773
+
774
+ Covers reduced motion, focus, and contrast.
775
+
776
+ [Color](/marketing/foundations/color)
777
+
778
+ Covers the colors that hover states change.
779
+
780
+ ## Radius and Padding
781
+
782
+ Corner radii, squircle corners, border widths, and how boxes pad by radius.
783
+
784
+ ### Overview
785
+
786
+ Marketing corners are squircles: smooth corners that ease into the edge. Where the browser supports `corner-shape`, every radius except `none` and `full` scales by the corner scale and draws as a squircle. Other browsers draw a round corner at the token radius.
787
+
788
+ Pills and circles use `full` and keep a round shape. A box pads by at least its radius, so its content never crowds the curve.
789
+
790
+ ### Scale
791
+
792
+ | Token | Value |
793
+ | --- | --- |
794
+ | `radius.none` | `0px` |
795
+ | `radius.2xs` | `calc(8px * var(--tds-corner-scale, 1))` |
796
+ | `radius.xs` | `calc(12px * var(--tds-corner-scale, 1))` |
797
+ | `radius.sm` | `calc(16px * var(--tds-corner-scale, 1))` |
798
+ | `radius.md` | `calc(24px * var(--tds-corner-scale, 1))` |
799
+ | `radius.lg` | `calc(32px * var(--tds-corner-scale, 1))` |
800
+ | `radius.xl` | `calc(40px * var(--tds-corner-scale, 1))` |
801
+ | `radius.2xl` | `calc(64px * var(--tds-corner-scale, 1))` |
802
+ | `radius.full` | `999px` |
803
+
804
+ ### Squircles
805
+
806
+ The corner scale, 1.86, sets how far a squircle reaches so that it meets a round corner at 45 degrees. Set `cornerShape: 'round'` beside every `borderRadius: 'full'`, so pills stay round.
807
+
808
+ ### Borders
809
+
810
+ | Token | Value | Use |
811
+ | --- | --- | --- |
812
+ | `borderWidth.thin` | `0.5px` | Hairlines on dense surfaces. |
813
+ | `borderWidth.regular` | `1px` | Card edges and dividers. |
814
+ | `borderWidth.thick` | `2px` | Emphasized edges, such as a selected card. |
815
+
816
+ ### Guidelines
817
+
818
+ #### Pad Boxes by Their Radius
819
+
820
+ Pad a card at `sm` by 16px, and a panel at `md` by 24px. Never pad a box by less than its radius.
821
+
822
+ #### Step Nested Corners Down
823
+
824
+ A card inside a panel takes the next smaller radius, so the two curves stay parallel.
825
+
826
+ ### Related
827
+
828
+ [Layout](/marketing/foundations/layout)
829
+
830
+ Covers the spacing that pads sections and boxes.
831
+
832
+ [Color](/marketing/foundations/color)
833
+
834
+ Covers the container and line roles of cards.
835
+
836
+ ## Typography
837
+
838
+ Pilat for headlines and copy, HB Set for statements, and responsive sizes.
839
+
840
+ ### Overview
841
+
842
+ Marketing type is set in Pilat at its Book weight, tracked tight at large sizes and open at small ones. One serif statement in HB Set breaks the rhythm. Display and heading sizes step up at each breakpoint, and the hero scales fluidly.
843
+
844
+ Each text style is a typography set that sets the family, size, weight, line height, and tracking together. Apply one set per element, such as `typography: 'heading.h1'`.
845
+
846
+ ### Typefaces
847
+
848
+ * **Pilat (fontFamily.sans):** Headlines, copy, and navigation, at Book (500) by default.
849
+ * **HB Set (fontFamily.serif):** Serif statements in display.d1, at Light (300). Sites register the face.
850
+ * **JetBrains Mono (fontFamily.mono):** Code, figures, and technical labels, at Regular (400).
851
+
852
+ ### Type Sets
853
+
854
+ Each row shows the size and line height at each responsive mode. Resize the window to watch the sample step.
855
+
856
+ #### Display
857
+
858
+ | Style | Family | Weight | Size and Line Height | Tracking | Use |
859
+ | --- | --- | --- | --- | --- | --- |
860
+ | `display.hero` | Pilat | 500 | Fluid 36px to 72px, line height 95% | -0.03em, -0.033em from 768px, -0.035em from 1024px, -0.037em from 1512px | The one headline of a page hero, fluid from 36px to 72px. |
861
+ | `display.d1` | HB Set | 300 | Mobile 44px/42px, Tablet 54px/51px, Desktop 65px/62px, Display 76px/72px | -0.04em | A serif statement, such as a pull quote or a manifesto line. |
862
+
863
+ #### Heading
864
+
865
+ | Style | Family | Weight | Size and Line Height | Tracking | Use |
866
+ | --- | --- | --- | --- | --- | --- |
867
+ | `heading.h1` | Pilat | 500 | Mobile 32px/36px, Tablet 40px/44px, Desktop 48px/52px, Display 56px/62px | -0.025em, -0.027em from 768px, -0.028em from 1024px, -0.03em from 1512px | The title of a section. |
868
+ | `heading.h2` | Pilat | 500 | Mobile 24px/110%, Tablet 30px/110%, Desktop 36px/110%, Display 42px/110% | -0.02em, -0.022em from 768px, -0.023em from 1024px, -0.025em from 1512px | A large subsection or feature title. |
869
+ | `heading.h3` | Pilat | 500 | Mobile 20px/110%, Tablet 26px/110%, Desktop 30px/110%, Display 36px/110% | -0.015em, -0.017em from 768px, -0.018em from 1024px, -0.02em from 1512px | A card or feature group title. |
870
+ | `heading.h4` | Pilat | 500 | Mobile 16px/120%, Tablet 18px/120%, Desktop 20px/120%, Display 22px/120% | 0.0015em, -0.004em from 768px, -0.008em from 1024px, -0.012em from 1512px | A small title over body copy. |
871
+ | `heading.subhead` | Pilat | 500 | Mobile 16px/120%, Tablet 18px/120%, Desktop 24px/28px, Display 24px/28px | 0.0015em, -0.004em from 768px, -0.008em from 1024px, -0.012em from 1512px | The lead paragraph under a hero or section title. |
872
+
873
+ #### Body
874
+
875
+ | Style | Family | Weight | Size and Line Height | Tracking | Use |
876
+ | --- | --- | --- | --- | --- | --- |
877
+ | `body.b1` | Pilat | 500 | Mobile 16px/22px, Tablet 16px/22px, Desktop 16px/22px, Display 16px/22px | 0.0015em | Default body copy, card descriptions, and form text. |
878
+ | `body.prose` | Pilat | 500 | Mobile 16px/22px, Tablet 16px/22px, Desktop 17px/24px, Display 17px/24px | 0.0015em | Long-form articles, which grow from 1024px. |
879
+ | `body.b2` | Pilat | 500 | Mobile 14px/20px, Tablet 14px/20px, Desktop 14px/20px, Display 14px/20px | 0.0015em | Secondary copy, captions, and dense lists. |
880
+ | `body.b3` | Pilat | 500 | Mobile 12px/16px, Tablet 12px/16px, Desktop 12px/16px, Display 12px/16px | 0.0015em | Fine print, legal text, and footnotes. |
881
+
882
+ #### Utility
883
+
884
+ | Style | Family | Weight | Size and Line Height | Tracking | Use |
885
+ | --- | --- | --- | --- | --- | --- |
886
+ | `utility.eyebrow` | Pilat | 500 | Mobile 10px/16px, Tablet 10px/16px, Desktop 10px/16px, Display 10px/16px | 0.06em | The uppercase label above a section title. |
887
+ | `utility.nav` | Pilat | 500 | Mobile 14px/16px, Tablet 14px/16px, Desktop 14px/16px, Display 14px/16px | 0em | Navigation links and footer links. |
888
+ | `utility.mono` | JetBrains Mono | 400 | Mobile 10px/14px, Tablet 10px/14px, Desktop 10px/14px, Display 10px/14px | 0.06em | Code, figures, and technical labels. |
889
+
890
+ ### Paragraph Spacing
891
+
892
+ Each set has a paragraph spacing for the gap after a paragraph in that style.
893
+
894
+ | Token | Mobile | Tablet | Desktop | Display | Use |
895
+ | --- | --- | --- | --- | --- | --- |
896
+ | `paragraph.display.d1` | 22px | 27px | 33px | 38px | After a D1 statement. |
897
+ | `paragraph.heading.h1` | 16px | 20px | 22px | 26px | After an H1 title. |
898
+ | `paragraph.heading.h2` | 12px | 16px | 16px | 20px | After an H2 title. |
899
+ | `paragraph.heading.h3` | 10px | 12px | 12px | 16px | After an H3 title. |
900
+ | `paragraph.heading.h4` | 8px | 10px | 10px | 10px | After an H4 title. |
901
+ | `paragraph.heading.subhead` | 8px | 10px | 10px | 10px | After a subhead. |
902
+ | `paragraph.body.prose` | 12px | 12px | 12px | 12px | Between prose paragraphs. |
903
+ | `paragraph.body.b1` | 12px | 12px | 12px | 12px | Between B1 paragraphs. |
904
+ | `paragraph.body.b2` | 8px | 8px | 8px | 8px | Between B2 paragraphs. |
905
+ | `paragraph.body.b3` | 6px | 6px | 6px | 6px | Between B3 paragraphs. |
906
+ | `paragraph.utility.eyebrow` | 6px | 6px | 6px | 6px | After an eyebrow. |
907
+ | `paragraph.utility.nav` | 8px | 8px | 8px | 8px | Between navigation links. |
908
+ | `paragraph.utility.mono` | 6px | 6px | 6px | 6px | After a mono label. |
909
+
910
+ To space two different stacked styles, such as an H4 title over B1 copy, use the [text pair gaps](/marketing/foundations/layout#text-pairs).
911
+
912
+ ### Guidelines
913
+
914
+ #### Use One Display Style per Page
915
+
916
+ Give a page one hero headline, and at most one serif statement.
917
+
918
+ **Do:** Lead with one hero headline and a subhead.
919
+
920
+ ```tsx
921
+ <MarketingExample kind="hero" />
922
+ ```
923
+
924
+ **Don't:** Mix many sizes in one line or block. Each step must mark a level of the outline.
925
+
926
+ ```tsx
927
+ <MarketingExample kind="allSizes" />
928
+ ```
929
+
930
+ #### Set Running Text in Prose
931
+
932
+ Set articles and long descriptions in `body.prose` with `content.prose`, and keep the column at `container.600` or `container.720`.
933
+
934
+
935
+
936
+ #### Keep Eyebrows Short and Uppercase
937
+
938
+ The eyebrow labels a section in one or two words. Set it uppercase with `textTransform`, and keep the source text in sentence case.
939
+
940
+ ### Related
941
+
942
+ [Color](/marketing/foundations/color)
943
+
944
+ Covers the content roles that color text.
945
+
946
+ [Layout](/marketing/foundations/layout)
947
+
948
+ Covers the text pair and layout gaps between styles.