@fusion.dev/helix-docs 0.235.1 → 0.237.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.
- package/content/browser-support.mdx +61 -11
- package/content/charting.mdx +15 -0
- package/content/color-modes.mdx +1 -1
- package/content/color.mdx +102 -14
- package/content/elevation-and-material.mdx +31 -15
- package/content/iconography.mdx +21 -12
- package/content/intent-reference.mdx +1 -1
- package/content/localization.mdx +2 -2
- package/content/metrics.mdx +264 -264
- package/content/motion.mdx +27 -11
- package/content/overlays.mdx +38 -0
- package/content/recipes.mdx +2 -0
- package/content/shape-and-borders.mdx +1 -0
- package/content/size-and-density.mdx +90 -4
- package/content/space-and-size.mdx +12 -3
- package/content/spatial-charts.mdx +11 -3
- package/content/surfaces-and-separation.mdx +53 -4
- package/content/theming.mdx +56 -10
- package/content/tokens.mdx +22 -13
- package/content/typography.mdx +88 -6
- package/content/visual-axes.mdx +1 -1
- package/dist/sources.generated.js +899 -375
- package/package.json +12 -12
|
@@ -307,10 +307,12 @@ not yet checked whether VoiceOver still reads the name.
|
|
|
307
307
|
| Popover API | Every overlay: menu, tooltip, select, combobox, dialog |
|
|
308
308
|
| \`light-dark()\` | Every color token, and each component color that differs between the modes |
|
|
309
309
|
| \`oklch()\` | Every color in the system |
|
|
310
|
+
| Relative colors, \`oklch(from ...)\` | The brand and accent ramps, the strong and subtle tones, and a few chart marks |
|
|
310
311
|
| \`:has()\` | Relational styling, mostly of slotted content |
|
|
311
312
|
| \`@starting-style\` | Entry transitions on overlays |
|
|
312
313
|
| \`:state()\` | Every boolean state the library publishes: \`open\`, \`checked\`, \`selected\`, \`invalid\`, \`read\`, \`has-label\`, \`settled\`, \`empty\`, \`controls\` |
|
|
313
314
|
| \`CSS.highlights\` | Filter-match highlighting, in \`Command\` and \`Combobox\` |
|
|
315
|
+
| Scroll-driven animations | The edge fade on a strip or table with more to scroll |
|
|
314
316
|
|
|
315
317
|
Positioning uses \`@floating-ui/dom\`. We chose this on purpose, and it is the one
|
|
316
318
|
place Helix takes a dependency for something the browser could do. CSS anchor
|
|
@@ -319,20 +321,24 @@ features.
|
|
|
319
321
|
|
|
320
322
|
## Which features set the minimum browser
|
|
321
323
|
|
|
322
|
-
**Check for \`light-dark()
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
**Check for \`light-dark()\`, relative colors, and the Popover API.** They are
|
|
325
|
+
the newest features Helix requires. Every token uses \`light-dark()\` to set both
|
|
326
|
+
color modes in one declaration. The brand and accent ramps are computed from
|
|
327
|
+
your seed colors with \`oklch(from ...)\`. Every overlay uses the Popover API to
|
|
328
|
+
draw in the top layer.
|
|
326
329
|
|
|
327
|
-
|
|
330
|
+
None of them has a useful fallback:
|
|
328
331
|
|
|
329
332
|
- A browser without \`light-dark()\` shows no color at all.
|
|
333
|
+
- A browser without relative colors draws no primary or accent color.
|
|
330
334
|
- A browser without the Popover API renders overlays in the page flow.
|
|
331
335
|
|
|
336
|
+
The first versions with all three are Chromium 123, Safari 18, and Firefox 128.
|
|
337
|
+
|
|
332
338
|
For that reason, this page has no support table with a fallback column. Helix
|
|
333
339
|
has no partial mode.
|
|
334
340
|
|
|
335
|
-
Chromium 132 has
|
|
341
|
+
Chromium 132 has all three. We measured on September 15, 2026 that it
|
|
336
342
|
does not support two things your stylesheet can do through \`::part()\`:
|
|
337
343
|
|
|
338
344
|
- It ignores a range input's \`::-webkit-slider-thumb\` and
|
|
@@ -342,21 +348,65 @@ does not support two things your stylesheet can do through \`::part()\`:
|
|
|
342
348
|
|
|
343
349
|
The headless examples use neither.
|
|
344
350
|
|
|
345
|
-
\`:state()\` is the
|
|
351
|
+
\`:state()\` is the next newest feature. It does not set the minimum browser,
|
|
346
352
|
because components still work without it. A component that cannot record a
|
|
347
353
|
state keeps the look of its resting rule, so a checkbox is drawn unchecked.
|
|
348
354
|
Helix tests for \`:state()\` support in the one place that records states.
|
|
349
355
|
|
|
356
|
+
## Bundlers that rewrite \`light-dark()\`
|
|
357
|
+
|
|
358
|
+
**Set your bundler's CSS targets to browsers that have \`light-dark()\`.** Some
|
|
359
|
+
bundlers minify CSS for older browsers by default, and rewrite each
|
|
360
|
+
\`light-dark()\` into a fallback that resolves on the root element. The page
|
|
361
|
+
still switches between modes. A Toast, which takes the mode opposite the page,
|
|
362
|
+
and an element with its own \`data-color-mode\` both draw in the page's mode. A
|
|
363
|
+
development server does not minify CSS, so only a production build shows this.
|
|
364
|
+
|
|
365
|
+
We measured on November 3, 2026:
|
|
366
|
+
|
|
367
|
+
- Vite 8 targets Safari 16.4 by default and minifies with Lightning CSS, which
|
|
368
|
+
rewrites every \`light-dark()\` call in \`helix.css\`. A Toast on a white page
|
|
369
|
+
drew white.
|
|
370
|
+
- Next.js 16 targets Safari 16.4 by default, and Turbopack processes CSS with
|
|
371
|
+
Lightning CSS.
|
|
372
|
+
- Bun 1.4 rewrites \`light-dark()\` when it bundles CSS, and has no setting for
|
|
373
|
+
the browsers it targets. Serve the Helix stylesheets as files, as
|
|
374
|
+
[Without a bundler](./without-a-bundler) shows.
|
|
375
|
+
- Angular builds CSS with esbuild, which leaves \`light-dark()\` as written.
|
|
376
|
+
|
|
377
|
+
The Helix templates set these targets. In Vite, set \`build.cssTarget\`:
|
|
378
|
+
|
|
379
|
+
\`\`\`ts
|
|
380
|
+
import { defineConfig } from 'vite'
|
|
381
|
+
|
|
382
|
+
export default defineConfig({
|
|
383
|
+
build: { cssTarget: ['chrome123', 'edge123', 'firefox128', 'safari18', 'ios18'] },
|
|
384
|
+
})
|
|
385
|
+
\`\`\`
|
|
386
|
+
|
|
387
|
+
In Next.js, add \`browserslist\` to \`package.json\`:
|
|
388
|
+
|
|
389
|
+
\`\`\`json
|
|
390
|
+
{
|
|
391
|
+
"browserslist": ["chrome >= 123", "edge >= 123", "firefox >= 128", "safari >= 18", "ios_saf >= 18"]
|
|
392
|
+
}
|
|
393
|
+
\`\`\`
|
|
394
|
+
|
|
350
395
|
## Browsers without \`CSS.highlights\`
|
|
351
396
|
|
|
352
397
|
\`Command\` and \`Combobox\` use the CSS Custom Highlight API to highlight the
|
|
353
|
-
matched text in their filtered results.
|
|
354
|
-
|
|
355
|
-
the results still filter, sort, and select correctly, and the match is not
|
|
356
|
-
highlighted.
|
|
398
|
+
matched text in their filtered results. Without it, the results still filter,
|
|
399
|
+
sort, and select correctly, and the match is not highlighted.
|
|
357
400
|
|
|
358
401
|
Nothing else in Helix uses it.
|
|
359
402
|
|
|
403
|
+
## Browsers without scroll-driven animations
|
|
404
|
+
|
|
405
|
+
Tabs, Navigation, Table, Data Table, and Log fade the edge that has more to
|
|
406
|
+
scroll past it. A scroll timeline drives the fade, and Safari added scroll
|
|
407
|
+
timelines in version 26. Firefox does not have them yet. In those browsers the
|
|
408
|
+
strip or table still scrolls, and its edges are cut flat with no fade.
|
|
409
|
+
|
|
360
410
|
## Older browsers
|
|
361
411
|
|
|
362
412
|
Helix does not support Internet Explorer and uses no polyfills. It has no
|
|
@@ -1005,6 +1055,21 @@ reading a chart is usually read for:
|
|
|
1005
1055
|
|
|
1006
1056
|
\`Heatmap\` and \`Spatial Heatmap\` are each an image with that name. \`Sparkline\` takes a \`label\` of its own.
|
|
1007
1057
|
|
|
1058
|
+
## The scale beside the plot
|
|
1059
|
+
|
|
1060
|
+
\`Line Chart\`, \`Area Chart\`, and \`Bar Chart\` draw the numbers of their scale
|
|
1061
|
+
beside the plot, with a rule across the plot at each number. The top of the
|
|
1062
|
+
scale is a round number above the highest reading, so the peak stands clear of
|
|
1063
|
+
the top edge.
|
|
1064
|
+
|
|
1065
|
+
- \`gridlines="both"\` also rules each reading whose name is drawn, and
|
|
1066
|
+
\`gridlines="category"\` rules those readings alone.
|
|
1067
|
+
- \`value-axis="none"\` and \`gridlines="none"\` take the numbers and the rules
|
|
1068
|
+
away, for a chart read for its shape, such as one in a card beside the figure
|
|
1069
|
+
it explains.
|
|
1070
|
+
|
|
1071
|
+
\`Sparkline\` draws no scale, and \`Scatter Chart\` draws both of its axes.
|
|
1072
|
+
|
|
1008
1073
|
## Tables that change
|
|
1009
1074
|
|
|
1010
1075
|
A chart follows its table. It redraws when you edit a cell, add a row, or
|
|
@@ -1444,10 +1509,46 @@ choice people most often get wrong. See [Surfaces and
|
|
|
1444
1509
|
separation](./surfaces-and-separation).
|
|
1445
1510
|
|
|
1446
1511
|
A field is filled with \`well\`: 5% of \`foreground\` laid over whatever the field
|
|
1447
|
-
sits on, so its color depends on the surface under the field.
|
|
1512
|
+
sits on, so its color depends on the surface under the field. \`surface-filled\`
|
|
1513
|
+
is a wash of \`foreground\` too, for a surface with \`separation="filled"\`, such as
|
|
1514
|
+
a filled Card or the ground of a spatial chart: 5% in light and 8.5% in dark.
|
|
1515
|
+
Inside a Dialog, a Drawer, a Popover, an elevated Card, or a sunken region, the
|
|
1516
|
+
dark wash is 6%, so a filled Card there stays under an elevated one. A row under the
|
|
1448
1517
|
pointer or the keyboard, such as an option, is lit with \`hover\` the same way:
|
|
1449
1518
|
8% of \`foreground\` in light and 12% in dark.
|
|
1450
1519
|
|
|
1520
|
+
A Button washes with its own tone and leaves \`hover\` alone. Each emphasis takes
|
|
1521
|
+
its own steps:
|
|
1522
|
+
|
|
1523
|
+
| Emphasis | At rest | Under the pointer | Under a press |
|
|
1524
|
+
| --- | --- | --- | --- |
|
|
1525
|
+
| \`ghost\` | None | 8% in light, 12% in dark | 16% in light, 20% in dark |
|
|
1526
|
+
| \`outlined\` | None | 12% | 16% in light, 20% in dark |
|
|
1527
|
+
| \`subtle\` | 14% | 22% | 30% |
|
|
1528
|
+
|
|
1529
|
+
An Icon Button takes the same washes.
|
|
1530
|
+
|
|
1531
|
+
Three more washes are laid over a ground the same way:
|
|
1532
|
+
|
|
1533
|
+
- \`press\` lights a control under a press, a step past \`hover\`: 16% of
|
|
1534
|
+
\`foreground\` in light and 19% in dark. A Button's own press is 20% in dark,
|
|
1535
|
+
as the table above gives.
|
|
1536
|
+
- \`selected\` marks a chosen thing that stays chosen and has no fill of its own,
|
|
1537
|
+
such as a range of days or a pressed toggle in a find bar. It is 13% of
|
|
1538
|
+
\`foreground\` in light and 16% in dark.
|
|
1539
|
+
- \`primary-wash\` is the bubble of your own message in Chat. It is 20% of
|
|
1540
|
+
\`primary\` with a brand color, and 16% of \`foreground\` with none.
|
|
1541
|
+
|
|
1542
|
+
Three more grounds sit outside the ladder:
|
|
1543
|
+
|
|
1544
|
+
- \`surface-inverse\` is the mode's opposite, for a surface that has to read as
|
|
1545
|
+
separate from the page, such as a tooltip. \`foreground-inverse\` is the text on
|
|
1546
|
+
it.
|
|
1547
|
+
- \`surface-media\` and \`foreground-media\` are black and white in both modes. They
|
|
1548
|
+
are the well behind a video and the controls drawn over it.
|
|
1549
|
+
- \`overlay\` is the scrim behind a modal Dialog, a Drawer, or a Lightbox: a
|
|
1550
|
+
near-black at 40% in light mode, and black at 64% in dark.
|
|
1551
|
+
|
|
1451
1552
|
### Inks
|
|
1452
1553
|
|
|
1453
1554
|
Inks are the colors that go on grounds. The base ink is \`foreground\`.
|
|
@@ -1456,26 +1557,70 @@ Inks are the colors that go on grounds. The base ink is \`foreground\`.
|
|
|
1456
1557
|
placeholder, a hint, or a caption. The engine solves it to the contrast
|
|
1457
1558
|
target.
|
|
1458
1559
|
- \`foreground-subtle\` recedes further. It is for marks that are not text, such
|
|
1459
|
-
as a separator, a chevron, or a grip.
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1560
|
+
as a separator, a chevron, or a grip. It is a fixed step of the gray ramp,
|
|
1561
|
+
and the engine does not solve it, so its contrast is not guaranteed. Use
|
|
1562
|
+
\`foreground-muted\` for text that is read. A disabled control fades whole,
|
|
1563
|
+
through \`--helix-opacity-disabled\`.
|
|
1564
|
+
- Three opacities fade ink by a fixed amount:
|
|
1565
|
+
- \`--helix-opacity-disabled\` is 0.5, for a disabled control.
|
|
1566
|
+
- \`--helix-opacity-busy\` is 0.5, for rows that stay on screen while a new set
|
|
1567
|
+
loads.
|
|
1568
|
+
- \`--helix-opacity-quiet\` is 0.72, for quiet text on a ground the text does
|
|
1569
|
+
not know, where \`foreground-muted\` would be the page's gray. A chart
|
|
1570
|
+
tooltip's names on the inverse bubble and a message still sending take it.
|
|
1463
1571
|
- Text on a filled color takes the ink named for that fill:
|
|
1464
1572
|
- \`foreground-on-primary\` on \`primary-surface\`
|
|
1465
1573
|
- \`foreground-on-accent\` on \`accent-surface\`
|
|
1466
1574
|
- \`foreground-on-status\` on the four status fills
|
|
1467
1575
|
|
|
1576
|
+
### Lines and focus
|
|
1577
|
+
|
|
1578
|
+
- \`border\` is the hairline edge of a card, a field, a divider, or a segmented
|
|
1579
|
+
control's groove.
|
|
1580
|
+
- \`border-floating\` is the edge of a surface that floats over content, such as a
|
|
1581
|
+
menu or a popover. It is \`border\` in light mode and 10% of white in dark mode,
|
|
1582
|
+
so the edge still shows where a shadow cannot.
|
|
1583
|
+
- \`border-hover\` is the edge of a field under the pointer. It is the brand color
|
|
1584
|
+
when one is set, and a gray at about 3:1 on the white page when none is.
|
|
1585
|
+
- \`focus-ring\` is the color of the focus ring. It is \`primary\`, held at a
|
|
1586
|
+
lightness of 0.6 or less in light mode and 0.65 or more in dark mode, so the
|
|
1587
|
+
ring stays visible on the page.
|
|
1588
|
+
|
|
1468
1589
|
### Intent
|
|
1469
1590
|
|
|
1470
1591
|
Intent colors show what something means.
|
|
1471
1592
|
|
|
1472
1593
|
- \`primary\` and \`accent\` are for emphasis. Each has \`-hover\`, \`-active\`, and
|
|
1473
1594
|
\`-subtle\` variants. With no brand color set, both are ink: near-black in
|
|
1474
|
-
light mode and near-white in dark mode.
|
|
1595
|
+
light mode and near-white in dark mode. \`primary-surface\` and
|
|
1596
|
+
\`accent-surface\` are their fills, each with a \`-surface-hover\` variant for
|
|
1597
|
+
the fill under the pointer and a \`-surface-active\` variant for the fill under
|
|
1598
|
+
a press.
|
|
1475
1599
|
- \`info\`, \`success\`, \`warning\`, and \`danger\` are for status. Each has a
|
|
1476
1600
|
\`-surface\` variant, the filled ground that carries \`foreground-on-status\`,
|
|
1477
|
-
such as a danger button or a badge in a status tone,
|
|
1478
|
-
|
|
1601
|
+
such as a danger button or a badge in a status tone, with the same
|
|
1602
|
+
\`-surface-hover\` and \`-surface-active\` variants.
|
|
1603
|
+
- \`primary-strong\` is the far end of a ramp drawn in the brand color, such as
|
|
1604
|
+
the busiest cell of a heatmap. It is \`primary-active\` held at a lightness of
|
|
1605
|
+
0.33 or more, so the top of the ramp never reads as black.
|
|
1606
|
+
- \`neutral-subtle\` is a quiet gray for a mark that stands on the page, such as
|
|
1607
|
+
an Avatar with no picture or a neutral Badge. It is 11% of \`foreground\` over
|
|
1608
|
+
the page, mixed in sRGB, and opaque, so one avatar can overlap the next.
|
|
1609
|
+
- \`neutral-surface-hover\` and \`neutral-surface-active\` are a neutral fill under
|
|
1610
|
+
the pointer and under a press. The neutral fill is \`foreground\`, which has
|
|
1611
|
+
nothing past it, so both move toward the page, and the press moves further.
|
|
1612
|
+
- Each of the six tones has a \`-muted\` variant, such as \`danger-muted\`: the
|
|
1613
|
+
tone's quiet ink, for text with that tone and \`emphasis="muted"\`. It is the
|
|
1614
|
+
tone's color at half the chroma. With no brand color set, \`primary-muted\` and
|
|
1615
|
+
\`accent-muted\` are \`foreground-muted\`.
|
|
1616
|
+
- \`warning-mark\` is the warning color for a mark, such as a star, a Meter's
|
|
1617
|
+
fill, or a Callout's icon. \`warning\` is solved for text and reads brown as a
|
|
1618
|
+
shape, so in light mode a mark takes a lighter, more saturated step that
|
|
1619
|
+
measures at least 3:1 on the page. In dark mode it is \`warning\`.
|
|
1620
|
+
- \`brand-mark\` is the brand color for a graphic. The engine solves \`primary\` to
|
|
1621
|
+
the theme's contrast target for text, and solves \`brand-mark\` to the 3:1 a
|
|
1622
|
+
graphic needs, so \`brand-mark\` stays closer to the color you chose. With no
|
|
1623
|
+
brand color set, it matches \`primary\`.
|
|
1479
1624
|
|
|
1480
1625
|
### Rise and fall
|
|
1481
1626
|
|
|
@@ -1484,6 +1629,11 @@ are \`success\` and \`danger\` unless you set them. Mainland China, Taiwan, and
|
|
|
1484
1629
|
Japan draw a rise in red, so a page for one of those markets swaps the two. See
|
|
1485
1630
|
[Rise and fall colors](./localization#rise-and-fall-colors).
|
|
1486
1631
|
|
|
1632
|
+
### Maps
|
|
1633
|
+
|
|
1634
|
+
\`contour\` colors the contour lines of a map, a brown taken 45% of the way toward
|
|
1635
|
+
\`foreground\`, so the lines read on a light map and on a dark one.
|
|
1636
|
+
|
|
1487
1637
|
### Series
|
|
1488
1638
|
|
|
1489
1639
|
Helix has twenty-four series colors for charts. They are ordered, so a chart
|
|
@@ -1502,9 +1652,11 @@ roles. Helix has fewer because code in documentation only needs to be read.
|
|
|
1502
1652
|
tokens:
|
|
1503
1653
|
|
|
1504
1654
|
- \`--helix-scrollbar-thumb-color\` is the thumb at rest. It is a mid gray that
|
|
1505
|
-
measures at least 3:1 against the page and every surface, in both modes.
|
|
1655
|
+
measures at least 3:1 against the page and every surface, in both modes. It
|
|
1656
|
+
also clears 3:1 on the rungs inside a Dialog, a Drawer, or a Popover.
|
|
1506
1657
|
- \`--helix-scrollbar-thumb-hover-color\` is the thumb while the pointer is over
|
|
1507
|
-
its scroller. It is \`foreground-
|
|
1658
|
+
its scroller. It is \`foreground-muted\`, a step closer to the text than the
|
|
1659
|
+
thumb at rest: darker in light mode and lighter in dark mode.
|
|
1508
1660
|
- \`--helix-scrollbar-track-color\` is the track behind the thumb. It is
|
|
1509
1661
|
\`transparent\`, so the scroller's own ground shows through.
|
|
1510
1662
|
|
|
@@ -1536,11 +1688,12 @@ solves them against the well over the page, a card, a raised surface, a dialog,
|
|
|
1536
1688
|
and a sunken surface. The report names each of these grounds as the well over
|
|
1537
1689
|
its surface, such as \`color-well over color-surface\`.
|
|
1538
1690
|
|
|
1539
|
-
Both inks are also written on a
|
|
1540
|
-
them against these grounds
|
|
1691
|
+
Both inks are also written on a row under the pointer, a chosen row, a pressed
|
|
1692
|
+
row, and a row tinted as selected. The engine solves them against these grounds
|
|
1693
|
+
as well:
|
|
1541
1694
|
|
|
1542
|
-
- \`hover\` over each of the same five surfaces, such as
|
|
1543
|
-
color-surface\`
|
|
1695
|
+
- \`hover\`, \`selected\`, and \`press\` over each of the same five surfaces, such as
|
|
1696
|
+
\`color-hover over color-surface\` and \`color-press over color-surface\`
|
|
1544
1697
|
- \`primary-subtle\` and \`accent-subtle\`, the tints a selected row takes
|
|
1545
1698
|
- the well over each tint, for a field on a selected row
|
|
1546
1699
|
|
|
@@ -1593,7 +1746,7 @@ class, or a second copy of any value.
|
|
|
1593
1746
|
\`\`\`css
|
|
1594
1747
|
:root {
|
|
1595
1748
|
color-scheme: light dark;
|
|
1596
|
-
--helix-color-background: light-dark(#fff, #
|
|
1749
|
+
--helix-color-background: light-dark(#fff, #000);
|
|
1597
1750
|
}
|
|
1598
1751
|
\`\`\`
|
|
1599
1752
|
|
|
@@ -2167,22 +2320,22 @@ for the cases the top layer does not cover:
|
|
|
2167
2320
|
| Token | Value |
|
|
2168
2321
|
| --- | --- |
|
|
2169
2322
|
| \`--helix-shadow-none\` | \`none\` |
|
|
2170
|
-
| \`--helix-shadow-sm\` | \`0 1px 2px var(--
|
|
2171
|
-
| \`--helix-shadow-md\` | \`0 4px 12px var(--
|
|
2172
|
-
| \`--helix-shadow-lg\` | \`0 12px 32px var(--
|
|
2323
|
+
| \`--helix-shadow-sm\` | \`0 1px 2px light-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 5%, transparent), color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 8%, transparent))\` |
|
|
2324
|
+
| \`--helix-shadow-md\` | \`0 4px 12px light-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 6%, transparent), color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 10%, transparent))\` |
|
|
2325
|
+
| \`--helix-shadow-lg\` | \`0 12px 32px light-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 9%, transparent), color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 14%, transparent))\` |
|
|
2173
2326
|
| \`--helix-shadow-surface\` | \`var(--helix-shadow-none)\` |
|
|
2174
|
-
| \`--helix-shadow-floating\` | \`var(--helix-shadow-lg)\` |
|
|
2175
|
-
| \`--helix-shadow-raised\` | \`var(--helix-shadow-
|
|
2327
|
+
| \`--helix-shadow-floating\` | \`var(--helix-shadow-sm), var(--helix-shadow-lg)\` |
|
|
2328
|
+
| \`--helix-shadow-raised\` | \`var(--helix-shadow-sm), var(--helix-shadow-md)\` |
|
|
2176
2329
|
|
|
2177
2330
|
[//]: # (/tokens)
|
|
2178
2331
|
|
|
2179
|
-
The first four are the values. The last
|
|
2332
|
+
The first four are the values. The last three are policy tokens. A theme sets
|
|
2180
2333
|
them to make your interface shadow-first or border-first. See [Surfaces and
|
|
2181
2334
|
separation](./surfaces-and-separation).
|
|
2182
2335
|
|
|
2183
2336
|
## Material
|
|
2184
2337
|
|
|
2185
|
-
|
|
2338
|
+
These tokens describe translucency:
|
|
2186
2339
|
|
|
2187
2340
|
[//]: # (tokens:material)
|
|
2188
2341
|
|
|
@@ -2190,13 +2343,14 @@ Ten tokens describe translucency:
|
|
|
2190
2343
|
| --- | --- | --- |
|
|
2191
2344
|
| \`--helix-material-backdrop\` | \`blur(var(--helix-material-blur-md)) saturate(1.5)\` | The blur and saturation behind a translucent surface. |
|
|
2192
2345
|
| \`--helix-material-opacity\` | \`1\` | How opaque a translucent surface is. |
|
|
2346
|
+
| \`--helix-material-glass-opacity\` | \`calc(0.72 * var(--helix-material-opacity))\` | How much of a mark a glass material covers. |
|
|
2347
|
+
| \`--helix-material-frosted-opacity\` | \`calc(0.88 * var(--helix-material-opacity))\` | How much of a mark a frosted material covers. |
|
|
2193
2348
|
| \`--helix-material-blur-sm\` | \`8px\` | The lightest backdrop blur. |
|
|
2194
2349
|
| \`--helix-material-blur-md\` | \`16px\` | The backdrop blur behind a modal. |
|
|
2195
2350
|
| \`--helix-material-blur-lg\` | \`32px\` | The heaviest backdrop blur. |
|
|
2196
|
-
| \`--helix-material-translucent\` | \`light-dark(color-mix(in oklab, oklch(1 0 0)
|
|
2197
|
-
| \`--helix-material-translucent-strong\` | \`color-mix(in oklab, light-dark(oklch(1 0 0), oklch(0.182 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)))
|
|
2198
|
-
| \`--helix-material-
|
|
2199
|
-
| \`--helix-material-panel\` | \`light-dark(color-mix(in oklab, oklch(1 0 0) 72%, transparent), var(--helix-material-translucent))\` | The glass of a panel over the page, such as a Menu, Popover, or Tooltip. |
|
|
2351
|
+
| \`--helix-material-translucent\` | \`light-dark(color-mix(in oklab, oklch(1 0 0) min(100%, 30% * var(--helix-material-opacity)), transparent), color-mix(in oklab, oklch(0.182 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) min(100%, 72% * var(--helix-material-opacity)), transparent))\` | The translucent background, for a surface that shows what is behind it. |
|
|
2352
|
+
| \`--helix-material-translucent-strong\` | \`color-mix(in oklab, light-dark(oklch(1 0 0), oklch(0.182 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258))) min(100%, 88% * var(--helix-material-opacity)), transparent)\` | The stronger translucent background, for a surface that shows less of what is behind it. |
|
|
2353
|
+
| \`--helix-material-panel\` | \`light-dark(color-mix(in oklab, oklch(1 0 0) min(100%, 72% * var(--helix-material-opacity)), transparent), var(--helix-material-translucent))\` | The glass of every panel, from a Menu, Popover, or Tooltip to a Dialog or Drawer over its scrim. |
|
|
2200
2354
|
| \`--helix-material-border\` | \`light-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 14%, transparent), color-mix(in oklab, oklch(1 0 0) 12%, transparent))\` | The border a translucent surface needs to keep a visible edge. |
|
|
2201
2355
|
|
|
2202
2356
|
[//]: # (/tokens)
|
|
@@ -2207,15 +2361,30 @@ The \`material\` axis draws its three values, \`frosted\`, \`glass\`, and
|
|
|
2207
2361
|
properties that can apply at once belong on two axes. See [Visual
|
|
2208
2362
|
axes](./visual-axes).
|
|
2209
2363
|
|
|
2364
|
+
| Value | Ground | Backdrop filter |
|
|
2365
|
+
| --- | --- | --- |
|
|
2366
|
+
| \`glass\` | \`material-panel\`: 72% white in light mode, and 72% of the dark ground in dark mode | \`material-backdrop\`: a 16px blur and 1.5 times the saturation |
|
|
2367
|
+
| \`frosted\` | \`material-translucent-strong\`: 88% of the ground in both modes | A 32px blur, \`material-blur-lg\`, with no change to saturation |
|
|
2368
|
+
| \`transparent\` | None | None |
|
|
2369
|
+
|
|
2370
|
+
Every family that takes \`material\` draws \`glass\` at the same coverage, a Dialog
|
|
2371
|
+
and a Drawer included. \`--helix-material-opacity\` scales every coverage
|
|
2372
|
+
together.
|
|
2373
|
+
|
|
2210
2374
|
**Use blur with care, because it is expensive.** A \`backdrop-filter\` makes the
|
|
2211
2375
|
compositor read what is behind the element again on every frame the element
|
|
2212
2376
|
moves. A frosted header that is always on screen pays that cost all the time.
|
|
2213
|
-
|
|
2214
|
-
|
|
2377
|
+
To show depth without that cost, use \`separation="elevated"\` on a Card, or
|
|
2378
|
+
\`data-separation="elevated"\` on an element of your own. Each lifts the surface
|
|
2379
|
+
with a shadow and needs no backdrop filter.
|
|
2215
2380
|
|
|
2216
2381
|
A translucent surface takes its color from what is behind it, so on a busy
|
|
2217
|
-
background it has no visible edge.
|
|
2218
|
-
its
|
|
2382
|
+
background it has no visible edge. **Every glass or frosted surface draws
|
|
2383
|
+
\`material-border\` as its edge**: 14% of near-black in light mode and 12% of
|
|
2384
|
+
white in dark mode, a wash that takes the color of what shows through. Inside a
|
|
2385
|
+
glass or frosted surface, \`border\` and \`border-floating\` are \`material-border\`
|
|
2386
|
+
too, so the panel's edge and the lines inside it match. The quiet inks are
|
|
2387
|
+
raised inside it as well, so muted text stays readable over a busy page.
|
|
2219
2388
|
`,
|
|
2220
2389
|
events: `---
|
|
2221
2390
|
description: The two events each state change sends, and why one name has a prefix and the other does not.
|
|
@@ -3362,10 +3531,10 @@ The Icon entry registers every glyph in the set by name, so \`name\` draws any
|
|
|
3362
3531
|
glyph. \`@fusion.dev/helix/icon/all\` is the same entry and registers the same
|
|
3363
3532
|
set.
|
|
3364
3533
|
|
|
3365
|
-
## Size and color
|
|
3534
|
+
## Size comes from the region and color from the text
|
|
3366
3535
|
|
|
3367
|
-
An icon has no \`size\` and no \`color\` property. It
|
|
3368
|
-
|
|
3536
|
+
An icon has no \`size\` and no \`color\` property. It draws in \`currentColor\`, so it
|
|
3537
|
+
takes the color of the text it sits in:
|
|
3369
3538
|
|
|
3370
3539
|
\`\`\`html
|
|
3371
3540
|
<span data-tone="danger">
|
|
@@ -3373,8 +3542,17 @@ An icon has no \`size\` and no \`color\` property. It is \`1em\` square and
|
|
|
3373
3542
|
</span>
|
|
3374
3543
|
\`\`\`
|
|
3375
3544
|
|
|
3376
|
-
|
|
3377
|
-
density
|
|
3545
|
+
An icon is \`--helix-size-icon\` square, and that size follows the region's
|
|
3546
|
+
density: 16px at \`sm\`, 20px at \`md\`, and 24px at \`lg\`. It does not follow the
|
|
3547
|
+
size of the text around it. Inside a Button, an icon is 1.15 times the label's
|
|
3548
|
+
size, rounded down to an even pixel: 12px beside the 12px label of a small
|
|
3549
|
+
button, 14px beside a 13px label, and 16px beside a 14px label. A small button's
|
|
3550
|
+
icon is a step smaller without any extra setting. Set \`--icon-size\` on an icon
|
|
3551
|
+
to give it a size of its own.
|
|
3552
|
+
|
|
3553
|
+
An Icon Button draws the glyph a field draws, a step under the region's icon,
|
|
3554
|
+
and never under 16px: 16px at \`sm\` and \`md\`, and 20px at \`lg\`. A Toolbar and an
|
|
3555
|
+
App Header sit at \`sm\`, so their Icon Buttons draw 16px glyphs.
|
|
3378
3556
|
|
|
3379
3557
|
## Decorative and named icons
|
|
3380
3558
|
|
|
@@ -3385,16 +3563,16 @@ density. So an icon in a small button is smaller without any extra setting.
|
|
|
3385
3563
|
Delete
|
|
3386
3564
|
</helix-button>
|
|
3387
3565
|
|
|
3388
|
-
<!-- Named: there is no text, so the
|
|
3389
|
-
<helix-icon-button
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
></helix-icon-button>
|
|
3566
|
+
<!-- Named: there is no text, so the button has to carry the name. -->
|
|
3567
|
+
<helix-icon-button label="Delete">
|
|
3568
|
+
<helix-icon name="trash"></helix-icon>
|
|
3569
|
+
</helix-icon-button>
|
|
3393
3570
|
\`\`\`
|
|
3394
3571
|
|
|
3395
3572
|
An icon with no \`label\` is hidden from assistive technology. Leave out \`label\`
|
|
3396
3573
|
when text beside the icon says what it is. Add a \`label\` when there is no text.
|
|
3397
|
-
|
|
3574
|
+
Icon Button takes a \`label\` because it never has text beside it, and the icon
|
|
3575
|
+
inside it takes none.
|
|
3398
3576
|
|
|
3399
3577
|
## Mirror an icon on right-to-left pages
|
|
3400
3578
|
|
|
@@ -3485,7 +3663,7 @@ import { peak } from './icons'
|
|
|
3485
3663
|
|
|
3486
3664
|
The command reads a directory of SVG files and writes the module that
|
|
3487
3665
|
\`helix-icon\` draws from. It works the same way for your own drawings, another
|
|
3488
|
-
library's, or the 1,
|
|
3666
|
+
library's, or the 1,351 Phosphor glyphs this set does not include:
|
|
3489
3667
|
|
|
3490
3668
|
\`\`\`sh
|
|
3491
3669
|
npx helix-icons build \\
|
|
@@ -3785,7 +3963,7 @@ left out.
|
|
|
3785
3963
|
| Field | What it controls |
|
|
3786
3964
|
|---|---|
|
|
3787
3965
|
| \`contrastTarget\` | Target contrast for body text. 4.5 is WCAG AA, and 7 is AAA |
|
|
3788
|
-
| \`pairings\` | The foreground and background pairs to measure, by token name. A background of \`color-well over color-surface\` is a field's well over that surface,
|
|
3966
|
+
| \`pairings\` | The foreground and background pairs to measure, by token name. A background of \`color-well over color-surface\` is a field's well over that surface, \`color-hover over color-surface\` is a lit row over it, and \`color-selected over color-surface\` and \`color-press over color-surface\` are a chosen row and a pressed one. The list replaces the pairs from the engine's surface model. The engine measures each pair and solves none of them, and a pair that names a token the engine does not emit is reported as \`unverifiable\` |
|
|
3789
3967
|
|
|
3790
3968
|
The default is 4.5, the WCAG 2.1 AA figure. The European Accessibility Act
|
|
3791
3969
|
refers to WCAG 2.1 AA, so 4.5 is the figure with legal weight.
|
|
@@ -4095,7 +4273,7 @@ import { registerWords } from '@fusion.dev/helix/words'
|
|
|
4095
4273
|
|
|
4096
4274
|
registerWords('pl', {
|
|
4097
4275
|
'helix-combobox': {
|
|
4098
|
-
|
|
4276
|
+
noResultsText: 'Brak wyników',
|
|
4099
4277
|
resultsLabel:
|
|
4100
4278
|
'{count, plural, one {# wynik} few {# wyniki} many {# wyników} other {# wyniku}}',
|
|
4101
4279
|
},
|
|
@@ -4132,7 +4310,7 @@ in every family, such as \`{ 'helix-table': { fallbackLabel: 'Tabelle' } }\`.
|
|
|
4132
4310
|
### Which words an element uses
|
|
4133
4311
|
|
|
4134
4312
|
1. **A value you set on the element**, as an attribute or a property. The
|
|
4135
|
-
English counts as a value, so \`
|
|
4313
|
+
English counts as a value, so \`no-results-text="No matches"\` keeps the English
|
|
4136
4314
|
on every page.
|
|
4137
4315
|
2. The words registered for the element's locale.
|
|
4138
4316
|
3. The English.
|
|
@@ -5293,7 +5471,7 @@ on its own.
|
|
|
5293
5471
|
|
|
5294
5472
|
| | Raw | Gzip | Brotli |
|
|
5295
5473
|
|---|---|---|---|
|
|
5296
|
-
| Lit and \`@fusion.dev/helix-core\` |
|
|
5474
|
+
| Lit and \`@fusion.dev/helix-core\` | 301,389 | 97,850 | 83,758 |
|
|
5297
5475
|
|
|
5298
5476
|
## Whole packages
|
|
5299
5477
|
|
|
@@ -5304,12 +5482,12 @@ either barrel. The per-component tables show what your page pays.
|
|
|
5304
5482
|
|
|
5305
5483
|
| Package | Raw | Gzip | Brotli | |
|
|
5306
5484
|
|---|---|---|---|---|
|
|
5307
|
-
| \`@fusion.dev/helix-core\` |
|
|
5308
|
-
| \`@fusion.dev/helix-headless\` | 1,
|
|
5309
|
-
| \`@fusion.dev/helix-icons\` |
|
|
5485
|
+
| \`@fusion.dev/helix-core\` | 300,597 | 97,634 | 83,382 | The element base class, mixins, decorators, and floating positioning. |
|
|
5486
|
+
| \`@fusion.dev/helix-headless\` | 1,737,156 | 480,880 | 360,943 | Every headless family. The barrel entry includes all of them. |
|
|
5487
|
+
| \`@fusion.dev/helix-icons\` | 80,255 | 25,898 | 21,194 | The whole glyph set. |
|
|
5310
5488
|
| \`@fusion.dev/helix-theme\` | 3,934 | 1,681 | 1,504 | The JavaScript that runs the derivation engine. Most sites run it at build time, and a theme switcher runs it in the browser. |
|
|
5311
|
-
| \`fusion_helix_theme_bg.wasm\` |
|
|
5312
|
-
| \`@fusion.dev/helix\` | 2,
|
|
5489
|
+
| \`fusion_helix_theme_bg.wasm\` | 415,506 | 153,320 | 123,769 | The derivation engine itself, in WebAssembly. The entry above loads it when the engine runs. |
|
|
5490
|
+
| \`@fusion.dev/helix\` | 2,665,558 | 676,612 | 479,178 | Every styled family. |
|
|
5313
5491
|
| \`lit\` | 15,396 | 5,990 | 5,419 | Lit itself, listed so you can subtract it from every row above. |
|
|
5314
5492
|
|
|
5315
5493
|
## Stylesheets
|
|
@@ -5322,21 +5500,21 @@ shows the whole cost of using the base layer on its own.
|
|
|
5322
5500
|
|
|
5323
5501
|
| File | Raw | Gzip | Brotli | |
|
|
5324
5502
|
|---|---|---|---|---|
|
|
5325
|
-
| \`base.css\` |
|
|
5326
|
-
| \`elements.css\` |
|
|
5503
|
+
| \`base.css\` | 48,093 | 6,681 | 5,785 | The base layer. It styles markup Helix does not render, and it works with no JavaScript. |
|
|
5504
|
+
| \`elements.css\` | 26,097 | 3,587 | 3,127 | Hides each element until its definition loads. It is generated from the tags in \`@fusion.dev/helix\`. |
|
|
5327
5505
|
| \`helix.css\` | 207 | 149 | 118 | The other four stylesheets in one import, in the order they must load. |
|
|
5328
|
-
| \`primitives.css\` |
|
|
5329
|
-
| \`tokens.css\` |
|
|
5506
|
+
| \`primitives.css\` | 10,763 | 1,917 | 1,652 | The primitive layer. It is private, and it ships because \`tokens.css\` refers to it. |
|
|
5507
|
+
| \`tokens.css\` | 33,089 | 4,119 | 3,452 | The 243 semantic tokens. Every styled component needs them. |
|
|
5330
5508
|
|
|
5331
5509
|
## What the numbers say
|
|
5332
5510
|
|
|
5333
|
-
**Most of your first component is the shared runtime.** The median styled family is 23,
|
|
5511
|
+
**Most of your first component is the shared runtime.** The median styled family is 23,242 bytes gzipped alone, and it adds 5,917 to a page that already has Helix. The shared runtime is 75 percent of the first component, and the component itself is 25 percent. Ten typical components cost the first number once, plus nine of the added number. The two columns in the tables below let you work that out for your own components.
|
|
5334
5512
|
|
|
5335
|
-
Across the 122 styled components, the smallest is \`code\` at 9,
|
|
5513
|
+
Across the 122 styled components, the smallest is \`code\` at 9,951 bytes gzipped alone, and the largest is \`data-table\` at 95,774. Every family together is 676,612.
|
|
5336
5514
|
|
|
5337
|
-
No family imports a barrel. The \`barrels\` rule in \`fusion x workspace\` enforces that. \`@fusion.dev/helix-headless\` marks every module in \`dist\` as having side effects, which is true of a file that calls \`customElements.define\`. A bundler can remove none of it. One \`import { HelixHeadlessButton } from '@fusion.dev/helix-headless'\` costs
|
|
5515
|
+
No family imports a barrel. The \`barrels\` rule in \`fusion x workspace\` enforces that. \`@fusion.dev/helix-headless\` marks every module in \`dist\` as having side effects, which is true of a file that calls \`customElements.define\`. A bundler can remove none of it. One \`import { HelixHeadlessButton } from '@fusion.dev/helix-headless'\` costs 480,880 bytes gzipped, whatever else the page imports. That is 21 times the median family above. All 122 styled families import the headless family they extend directly. The rule checks the shape of the import, so it applies to any package that sets \`sideEffects\`, whatever its name.
|
|
5338
5516
|
|
|
5339
|
-
The headless tier never had the problem, so it serves as the control. \`@fusion.dev/helix-core\` is \`sideEffects: false\`, and the median headless family is 21,
|
|
5517
|
+
The headless tier never had the problem, so it serves as the control. \`@fusion.dev/helix-core\` is \`sideEffects: false\`, and the median headless family is 21,138 bytes gzipped alone.
|
|
5340
5518
|
|
|
5341
5519
|
## Compared with other systems
|
|
5342
5520
|
|
|
@@ -5348,43 +5526,43 @@ The table has no whole-library row. That row would compare how many components e
|
|
|
5348
5526
|
|
|
5349
5527
|
| Component | System | Raw | Gzip | Brotli |
|
|
5350
5528
|
|---|---|---|---|---|
|
|
5351
|
-
| \`button\` | **Helix** |
|
|
5529
|
+
| \`button\` | **Helix** | 52,361 | 16,623 | 15,000 |
|
|
5352
5530
|
| | Carbon | 133,019 | 20,696 | 17,673 |
|
|
5353
5531
|
| | Material Web | 47,039 | 13,980 | 12,488 |
|
|
5354
5532
|
| | Spectrum | 98,861 | 21,731 | 18,547 |
|
|
5355
5533
|
| | Web Awesome | 136,082 | 34,015 | 28,815 |
|
|
5356
|
-
| \`checkbox\` | **Helix** |
|
|
5534
|
+
| \`checkbox\` | **Helix** | 55,683 | 17,532 | 15,780 |
|
|
5357
5535
|
| | Carbon | 60,226 | 15,349 | 13,476 |
|
|
5358
5536
|
| | Material Web | 43,770 | 13,361 | 11,940 |
|
|
5359
5537
|
| | Spectrum | 60,006 | 14,720 | 12,834 |
|
|
5360
5538
|
| | Web Awesome | 115,313 | 28,720 | 24,391 |
|
|
5361
|
-
| \`dialog\` | **Helix** |
|
|
5539
|
+
| \`dialog\` | **Helix** | 52,502 | 17,381 | 15,597 |
|
|
5362
5540
|
| | Carbon | 510,751 | 66,753 | 39,054 |
|
|
5363
5541
|
| | Material Web | 34,234 | 11,327 | 10,171 |
|
|
5364
5542
|
| | Spectrum | 152,934 | 30,766 | 25,567 |
|
|
5365
5543
|
| | Web Awesome | 148,696 | 36,894 | 31,476 |
|
|
5366
|
-
| \`radio\` | **Helix** |
|
|
5544
|
+
| \`radio\` | **Helix** | 57,401 | 18,005 | 16,182 |
|
|
5367
5545
|
| | Carbon | 62,982 | 16,599 | 14,519 |
|
|
5368
5546
|
| | Material Web | 41,029 | 13,048 | 11,659 |
|
|
5369
5547
|
| | Spectrum | 38,765 | 10,485 | 9,337 |
|
|
5370
5548
|
| | Web Awesome | 112,100 | 27,426 | 23,157 |
|
|
5371
|
-
| \`switch\` | **Helix** |
|
|
5549
|
+
| \`switch\` | **Helix** | 51,417 | 16,907 | 15,209 |
|
|
5372
5550
|
| | Carbon | 69,388 | 16,861 | 14,710 |
|
|
5373
5551
|
| | Material Web | 50,129 | 14,355 | 12,869 |
|
|
5374
5552
|
| | Spectrum | 62,390 | 14,852 | 13,259 |
|
|
5375
5553
|
| | Web Awesome | 45,922 | 15,043 | 13,489 |
|
|
5376
|
-
| \`tabs\` | **Helix** |
|
|
5554
|
+
| \`tabs\` | **Helix** | 65,486 | 20,343 | 18,308 |
|
|
5377
5555
|
| | Carbon | 578,657 | 72,708 | 43,044 |
|
|
5378
5556
|
| | Material Web | 38,875 | 12,619 | 11,290 |
|
|
5379
5557
|
| | Spectrum | 64,371 | 17,857 | 16,004 |
|
|
5380
5558
|
| | Web Awesome | 153,457 | 37,241 | 31,779 |
|
|
5381
|
-
| \`tooltip\` | **Helix** |
|
|
5559
|
+
| \`tooltip\` | **Helix** | 69,419 | 23,977 | 21,556 |
|
|
5382
5560
|
| | Carbon | 189,319 | 29,833 | 22,169 |
|
|
5383
5561
|
| | Material Web | | not shipped | |
|
|
5384
5562
|
| | Spectrum | 136,084 | 39,731 | 34,997 |
|
|
5385
5563
|
| | Web Awesome | 70,482 | 23,540 | 21,032 |
|
|
5386
5564
|
|
|
5387
|
-
At least one system is smaller than Helix on \`button\`, \`checkbox\`, \`dialog\`, \`radio\`, \`switch\`, \`tabs\`, \`tooltip\`. The largest gap is
|
|
5565
|
+
At least one system is smaller than Helix on \`button\`, \`checkbox\`, \`dialog\`, \`radio\`, \`switch\`, \`tabs\`, \`tooltip\`. The largest gap is tabs against Material Web, at 7,724 bytes gzipped. 15 of 27 peer measurements are smaller than the Helix row.
|
|
5388
5566
|
|
|
5389
5567
|
Helix's \`radio\` family includes Radio Group, so its row carries an element that some peer rows measure without.
|
|
5390
5568
|
|
|
@@ -5458,120 +5636,120 @@ Structure, accessibility, state, and form participation. It has no presentation
|
|
|
5458
5636
|
|
|
5459
5637
|
| Family | Alone raw | Alone gzip | Alone brotli | Added raw | Added gzip | Added brotli |
|
|
5460
5638
|
|---|---|---|---|---|---|---|
|
|
5461
|
-
| \`accordion\` | 36,
|
|
5462
|
-
| \`announcement\` | 41,
|
|
5463
|
-
| \`app-header\` | 37,
|
|
5464
|
-
| \`area-chart\` |
|
|
5465
|
-
| \`avatar\` |
|
|
5466
|
-
| \`badge\` | 32,
|
|
5467
|
-
| \`bar-chart\` |
|
|
5468
|
-
| \`blockquote\` | 28,
|
|
5469
|
-
| \`breadcrumbs\` | 42,
|
|
5470
|
-
| \`button\` | 41,
|
|
5471
|
-
| \`button-group\` | 32,
|
|
5472
|
-
| \`callout\` | 40,
|
|
5473
|
-
| \`canvas\` |
|
|
5474
|
-
| \`card\` | 28,
|
|
5475
|
-
| \`carousel\` | 49,
|
|
5476
|
-
| \`chat\` |
|
|
5477
|
-
| \`checkbox\` |
|
|
5478
|
-
| \`checkbox-group\` | 53,
|
|
5479
|
-
| \`code\` |
|
|
5480
|
-
| \`code-block\` | 113,
|
|
5481
|
-
| \`code-editor\` |
|
|
5482
|
-
| \`code-input\` | 65,
|
|
5483
|
-
| \`color-input\` |
|
|
5484
|
-
| \`color-picker\` | 111,
|
|
5485
|
-
| \`combobox\` |
|
|
5486
|
-
| \`command\` |
|
|
5487
|
-
| \`copy-button\` |
|
|
5488
|
-
| \`data-table\` |
|
|
5489
|
-
| \`date-input\` | 147,
|
|
5490
|
-
| \`date-picker\` | 67,
|
|
5491
|
-
| \`description-list\` | 27,
|
|
5492
|
-
| \`device-screen\` | 122,
|
|
5493
|
-
| \`dialog\` |
|
|
5494
|
-
| \`divider\` | 28,
|
|
5495
|
-
| \`donut-chart\` |
|
|
5496
|
-
| \`drawer\` |
|
|
5497
|
-
| \`drilldown\` | 48,
|
|
5498
|
-
| \`editor\` |
|
|
5499
|
-
| \`empty\` | 29,
|
|
5500
|
-
| \`file-input\` | 63,
|
|
5501
|
-
| \`filter-input\` | 113,
|
|
5502
|
-
| \`find\` | 78,
|
|
5503
|
-
| \`format-date\` | 35,
|
|
5504
|
-
| \`graph\` |
|
|
5505
|
-
| \`heatmap\` |
|
|
5506
|
-
| \`icon\` |
|
|
5507
|
-
| \`icon-button\` | 41,
|
|
5508
|
-
| \`image\` | 30,
|
|
5509
|
-
| \`input\` | 62,
|
|
5510
|
-
| \`kbd\` | 34,
|
|
5511
|
-
| \`legend\` | 44,
|
|
5512
|
-
| \`lightbox\` |
|
|
5513
|
-
| \`line-chart\` |
|
|
5514
|
-
| \`list\` | 67,
|
|
5515
|
-
| \`listbox\` |
|
|
5516
|
-
| \`loader\` | 31,
|
|
5517
|
-
| \`log\` | 89,
|
|
5518
|
-
| \`map\` |
|
|
5519
|
-
| \`markdown\` | 140,
|
|
5520
|
-
| \`megamenu\` |
|
|
5521
|
-
| \`menu\` |
|
|
5522
|
-
| \`meter\` | 38,
|
|
5523
|
-
| \`motion-toggle\` | 30,
|
|
5524
|
-
| \`navigation\` |
|
|
5525
|
-
| \`notifications\` | 64,
|
|
5526
|
-
| \`number-input\` |
|
|
5527
|
-
| \`object-inspector\` | 124,
|
|
5528
|
-
| \`option\` | 31,
|
|
5529
|
-
| \`outline\` | 41,
|
|
5530
|
-
| \`pagination\` |
|
|
5531
|
-
| \`pin-input\` |
|
|
5532
|
-
| \`popover\` | 69,
|
|
5533
|
-
| \`progress\` | 33,
|
|
5534
|
-
| \`qr-code\` | 47,
|
|
5535
|
-
| \`quote\` | 27,
|
|
5536
|
-
| \`radio\` | 47,
|
|
5537
|
-
| \`rating\` | 56,
|
|
5538
|
-
| \`scatter-chart\` |
|
|
5539
|
-
| \`scroll-area\` |
|
|
5540
|
-
| \`select\` |
|
|
5541
|
-
| \`shortcut-overlay\` |
|
|
5542
|
-
| \`skeleton\` |
|
|
5543
|
-
| \`skip-link\` | 28,
|
|
5544
|
-
| \`slider\` | 59,
|
|
5545
|
-
| \`sparkline\` |
|
|
5546
|
-
| \`spatial-bar-chart\` |
|
|
5547
|
-
| \`spatial-heatmap\` |
|
|
5548
|
-
| \`spatial-ribbon-chart\` |
|
|
5549
|
-
| \`spatial-scatter-chart\` |
|
|
5550
|
-
| \`spatial-surface-chart\` |
|
|
5551
|
-
| \`spatial-treemap\` |
|
|
5552
|
-
| \`speed-dial\` | 74,
|
|
5553
|
-
| \`splitter\` |
|
|
5554
|
-
| \`stat\` |
|
|
5555
|
-
| \`steps\` | 60,
|
|
5556
|
-
| \`switch\` | 44,
|
|
5557
|
-
| \`table\` | 127,
|
|
5558
|
-
| \`tabs\` |
|
|
5559
|
-
| \`tag\` | 47,
|
|
5560
|
-
| \`terminal\` |
|
|
5561
|
-
| \`textarea\` | 60,
|
|
5562
|
-
| \`time-input\` |
|
|
5563
|
-
| \`time-picker\` |
|
|
5564
|
-
| \`timeline\` | 36,
|
|
5565
|
-
| \`toast\` |
|
|
5566
|
-
| \`toggle\` | 51,
|
|
5567
|
-
| \`toolbar\` | 37,
|
|
5568
|
-
| \`tooltip\` | 65,
|
|
5569
|
-
| \`tour\` |
|
|
5570
|
-
| \`tree\` | 74,
|
|
5571
|
-
| \`trend\` | 35,
|
|
5572
|
-
| \`video\` |
|
|
5573
|
-
| \`video-playlist\` |
|
|
5574
|
-
| \`virtual-list\` | 72,
|
|
5639
|
+
| \`accordion\` | 36,877 | 13,394 | 12,053 | 5,374 | 1,549 | 1,188 |
|
|
5640
|
+
| \`announcement\` | 41,546 | 14,921 | 13,478 | 4,740 | 1,456 | 1,039 |
|
|
5641
|
+
| \`app-header\` | 37,902 | 13,774 | 12,358 | 6,454 | 1,939 | 1,448 |
|
|
5642
|
+
| \`area-chart\` | 111,993 | 38,834 | 34,647 | 14,870 | 4,572 | 3,669 |
|
|
5643
|
+
| \`avatar\` | 36,061 | 13,460 | 12,164 | 3,980 | 1,264 | 936 |
|
|
5644
|
+
| \`badge\` | 32,293 | 12,238 | 11,049 | 2,941 | 928 | 710 |
|
|
5645
|
+
| \`bar-chart\` | 120,038 | 41,421 | 36,970 | 22,381 | 7,032 | 5,820 |
|
|
5646
|
+
| \`blockquote\` | 28,886 | 10,987 | 9,860 | 2,399 | 910 | 631 |
|
|
5647
|
+
| \`breadcrumbs\` | 42,286 | 15,771 | 14,209 | 7,917 | 2,549 | 1,929 |
|
|
5648
|
+
| \`button\` | 41,734 | 14,708 | 13,279 | 5,705 | 1,706 | 1,319 |
|
|
5649
|
+
| \`button-group\` | 32,755 | 11,980 | 10,787 | 4,897 | 1,473 | 1,063 |
|
|
5650
|
+
| \`callout\` | 40,143 | 15,144 | 13,600 | 2,875 | 981 | 678 |
|
|
5651
|
+
| \`canvas\` | 183,554 | 57,567 | 50,196 | 86,542 | 25,348 | 20,808 |
|
|
5652
|
+
| \`card\` | 28,591 | 10,652 | 9,595 | 2,074 | 633 | 379 |
|
|
5653
|
+
| \`carousel\` | 49,497 | 17,397 | 15,706 | 15,476 | 4,249 | 3,391 |
|
|
5654
|
+
| \`chat\` | 142,173 | 46,230 | 40,951 | 43,984 | 12,098 | 9,696 |
|
|
5655
|
+
| \`checkbox\` | 46,004 | 15,590 | 14,028 | 3,154 | 999 | 660 |
|
|
5656
|
+
| \`checkbox-group\` | 53,187 | 17,451 | 15,671 | 8,350 | 2,369 | 1,729 |
|
|
5657
|
+
| \`code\` | 25,076 | 9,623 | 8,670 | 136 | 82 | 45 |
|
|
5658
|
+
| \`code-block\` | 113,891 | 38,388 | 34,085 | 40,491 | 11,884 | 9,535 |
|
|
5659
|
+
| \`code-editor\` | 102,305 | 31,890 | 28,254 | 37,537 | 9,525 | 7,610 |
|
|
5660
|
+
| \`code-input\` | 65,943 | 22,616 | 20,247 | 10,561 | 3,433 | 2,683 |
|
|
5661
|
+
| \`color-input\` | 150,046 | 47,605 | 41,756 | 56,718 | 14,713 | 11,949 |
|
|
5662
|
+
| \`color-picker\` | 111,159 | 35,254 | 31,224 | 48,842 | 13,132 | 10,563 |
|
|
5663
|
+
| \`combobox\` | 152,572 | 48,160 | 42,413 | 38,975 | 9,722 | 7,720 |
|
|
5664
|
+
| \`command\` | 131,823 | 41,182 | 36,111 | 41,349 | 10,648 | 8,697 |
|
|
5665
|
+
| \`copy-button\` | 89,273 | 30,347 | 27,086 | 19,845 | 5,349 | 4,170 |
|
|
5666
|
+
| \`data-table\` | 275,821 | 82,104 | 69,953 | 138,354 | 36,176 | 28,683 |
|
|
5667
|
+
| \`date-input\` | 147,881 | 46,278 | 40,927 | 38,920 | 9,528 | 7,673 |
|
|
5668
|
+
| \`date-picker\` | 67,804 | 22,957 | 20,711 | 20,982 | 5,719 | 4,532 |
|
|
5669
|
+
| \`description-list\` | 27,672 | 10,349 | 9,316 | 1,554 | 516 | 294 |
|
|
5670
|
+
| \`device-screen\` | 122,909 | 38,741 | 34,306 | 45,882 | 11,286 | 8,870 |
|
|
5671
|
+
| \`dialog\` | 44,220 | 15,647 | 14,004 | 6,459 | 1,948 | 1,387 |
|
|
5672
|
+
| \`divider\` | 28,131 | 10,588 | 9,506 | 1,410 | 486 | 296 |
|
|
5673
|
+
| \`donut-chart\` | 105,451 | 36,156 | 32,322 | 15,666 | 4,738 | 3,761 |
|
|
5674
|
+
| \`drawer\` | 48,845 | 17,091 | 15,365 | 8,332 | 2,443 | 1,857 |
|
|
5675
|
+
| \`drilldown\` | 48,095 | 16,573 | 14,872 | 10,062 | 2,739 | 2,095 |
|
|
5676
|
+
| \`editor\` | 179,631 | 54,736 | 47,524 | 84,276 | 20,858 | 16,818 |
|
|
5677
|
+
| \`empty\` | 29,214 | 10,916 | 9,838 | 1,974 | 654 | 457 |
|
|
5678
|
+
| \`file-input\` | 63,573 | 21,865 | 19,673 | 13,340 | 4,218 | 3,353 |
|
|
5679
|
+
| \`filter-input\` | 113,646 | 38,094 | 33,879 | 21,798 | 6,208 | 5,017 |
|
|
5680
|
+
| \`find\` | 78,589 | 26,059 | 23,243 | 22,059 | 5,783 | 4,529 |
|
|
5681
|
+
| \`format-date\` | 35,400 | 13,006 | 11,729 | 4,465 | 1,248 | 923 |
|
|
5682
|
+
| \`graph\` | 148,988 | 46,900 | 40,926 | 40,022 | 10,951 | 8,593 |
|
|
5683
|
+
| \`heatmap\` | 114,394 | 38,618 | 34,494 | 19,873 | 5,837 | 4,636 |
|
|
5684
|
+
| \`icon\` | 111,073 | 37,385 | 31,898 | 79,223 | 26,739 | 21,401 |
|
|
5685
|
+
| \`icon-button\` | 41,843 | 14,752 | 13,316 | 5,812 | 1,752 | 1,281 |
|
|
5686
|
+
| \`image\` | 30,657 | 11,216 | 10,115 | 3,917 | 1,160 | 847 |
|
|
5687
|
+
| \`input\` | 62,504 | 21,373 | 19,054 | 7,344 | 2,328 | 1,663 |
|
|
5688
|
+
| \`kbd\` | 34,394 | 12,820 | 11,498 | 4,002 | 1,304 | 950 |
|
|
5689
|
+
| \`legend\` | 44,291 | 15,729 | 14,221 | 2,763 | 911 | 571 |
|
|
5690
|
+
| \`lightbox\` | 61,323 | 20,615 | 18,486 | 16,527 | 4,535 | 3,446 |
|
|
5691
|
+
| \`line-chart\` | 115,119 | 39,713 | 35,447 | 17,397 | 5,242 | 4,394 |
|
|
5692
|
+
| \`list\` | 67,989 | 23,320 | 20,772 | 16,142 | 4,541 | 3,641 |
|
|
5693
|
+
| \`listbox\` | 95,741 | 31,521 | 27,890 | 17,816 | 4,979 | 3,770 |
|
|
5694
|
+
| \`loader\` | 31,630 | 11,802 | 10,650 | 2,875 | 949 | 682 |
|
|
5695
|
+
| \`log\` | 89,805 | 30,030 | 26,907 | 40,029 | 12,371 | 10,368 |
|
|
5696
|
+
| \`map\` | 163,217 | 48,416 | 41,805 | 64,058 | 15,652 | 12,197 |
|
|
5697
|
+
| \`markdown\` | 140,593 | 47,422 | 42,004 | 62,619 | 19,467 | 16,227 |
|
|
5698
|
+
| \`megamenu\` | 67,580 | 24,167 | 21,613 | 9,536 | 2,693 | 1,917 |
|
|
5699
|
+
| \`menu\` | 107,411 | 35,113 | 31,258 | 33,419 | 8,671 | 7,030 |
|
|
5700
|
+
| \`meter\` | 38,935 | 14,304 | 12,965 | 6,319 | 1,853 | 1,463 |
|
|
5701
|
+
| \`motion-toggle\` | 30,594 | 11,664 | 10,489 | 1,508 | 541 | 278 |
|
|
5702
|
+
| \`navigation\` | 38,000 | 13,987 | 12,551 | 3,496 | 1,174 | 844 |
|
|
5703
|
+
| \`notifications\` | 64,171 | 21,628 | 19,477 | 18,730 | 5,161 | 3,925 |
|
|
5704
|
+
| \`number-input\` | 62,231 | 20,798 | 18,718 | 13,467 | 3,652 | 2,786 |
|
|
5705
|
+
| \`object-inspector\` | 124,774 | 41,505 | 36,687 | 37,305 | 10,585 | 8,504 |
|
|
5706
|
+
| \`option\` | 31,605 | 11,400 | 10,270 | 4,858 | 1,278 | 1,025 |
|
|
5707
|
+
| \`outline\` | 41,535 | 14,833 | 13,366 | 10,617 | 3,154 | 2,363 |
|
|
5708
|
+
| \`pagination\` | 158,986 | 50,166 | 43,910 | 50,862 | 13,002 | 10,328 |
|
|
5709
|
+
| \`pin-input\` | 53,098 | 18,340 | 16,534 | 7,193 | 2,378 | 1,660 |
|
|
5710
|
+
| \`popover\` | 69,712 | 24,583 | 21,997 | 6,474 | 1,852 | 1,296 |
|
|
5711
|
+
| \`progress\` | 33,500 | 12,479 | 11,277 | 3,080 | 951 | 710 |
|
|
5712
|
+
| \`qr-code\` | 47,814 | 18,177 | 16,399 | 16,969 | 6,241 | 5,354 |
|
|
5713
|
+
| \`quote\` | 27,295 | 10,454 | 9,385 | 1,205 | 524 | 323 |
|
|
5714
|
+
| \`radio\` | 47,667 | 16,144 | 14,514 | 3,906 | 1,247 | 853 |
|
|
5715
|
+
| \`rating\` | 56,442 | 19,348 | 17,396 | 8,327 | 2,538 | 1,838 |
|
|
5716
|
+
| \`scatter-chart\` | 111,017 | 38,116 | 34,083 | 20,719 | 6,442 | 5,267 |
|
|
5717
|
+
| \`scroll-area\` | 36,012 | 12,877 | 11,588 | 9,027 | 2,702 | 2,181 |
|
|
5718
|
+
| \`select\` | 135,498 | 44,185 | 38,804 | 29,287 | 7,713 | 6,015 |
|
|
5719
|
+
| \`shortcut-overlay\` | 55,763 | 19,649 | 17,608 | 12,353 | 3,732 | 2,939 |
|
|
5720
|
+
| \`skeleton\` | 27,249 | 10,307 | 9,296 | 1,130 | 451 | 221 |
|
|
5721
|
+
| \`skip-link\` | 28,857 | 10,950 | 9,862 | 1,334 | 513 | 324 |
|
|
5722
|
+
| \`slider\` | 59,389 | 19,881 | 17,957 | 13,661 | 3,882 | 3,095 |
|
|
5723
|
+
| \`sparkline\` | 54,529 | 19,454 | 17,559 | 6,964 | 2,375 | 1,798 |
|
|
5724
|
+
| \`spatial-bar-chart\` | 127,894 | 44,719 | 39,834 | 29,291 | 9,867 | 8,210 |
|
|
5725
|
+
| \`spatial-heatmap\` | 129,762 | 43,762 | 38,909 | 32,546 | 9,799 | 8,017 |
|
|
5726
|
+
| \`spatial-ribbon-chart\` | 118,924 | 41,424 | 36,875 | 22,340 | 7,494 | 6,110 |
|
|
5727
|
+
| \`spatial-scatter-chart\` | 117,001 | 40,668 | 36,293 | 20,471 | 6,746 | 5,433 |
|
|
5728
|
+
| \`spatial-surface-chart\` | 119,934 | 41,878 | 37,315 | 23,346 | 7,895 | 6,579 |
|
|
5729
|
+
| \`spatial-treemap\` | 121,037 | 42,465 | 37,801 | 22,751 | 7,765 | 6,265 |
|
|
5730
|
+
| \`speed-dial\` | 74,292 | 26,235 | 23,503 | 10,925 | 2,890 | 2,230 |
|
|
5731
|
+
| \`splitter\` | 50,048 | 17,106 | 15,451 | 15,108 | 3,982 | 3,152 |
|
|
5732
|
+
| \`stat\` | 34,068 | 12,654 | 11,438 | 5,815 | 1,981 | 1,502 |
|
|
5733
|
+
| \`steps\` | 60,608 | 20,903 | 18,728 | 14,555 | 4,087 | 3,129 |
|
|
5734
|
+
| \`switch\` | 44,969 | 15,421 | 13,868 | 1,839 | 672 | 314 |
|
|
5735
|
+
| \`table\` | 127,751 | 39,497 | 34,665 | 47,005 | 12,777 | 10,221 |
|
|
5736
|
+
| \`tabs\` | 52,586 | 17,790 | 15,969 | 11,575 | 3,052 | 2,462 |
|
|
5737
|
+
| \`tag\` | 47,523 | 17,159 | 15,440 | 8,512 | 2,545 | 1,795 |
|
|
5738
|
+
| \`terminal\` | 142,166 | 44,770 | 39,477 | 54,059 | 13,359 | 10,703 |
|
|
5739
|
+
| \`textarea\` | 60,244 | 20,573 | 18,487 | 5,646 | 1,706 | 1,270 |
|
|
5740
|
+
| \`time-input\` | 189,415 | 58,584 | 50,992 | 52,075 | 12,965 | 10,302 |
|
|
5741
|
+
| \`time-picker\` | 119,198 | 37,524 | 33,141 | 36,998 | 9,683 | 7,634 |
|
|
5742
|
+
| \`timeline\` | 36,665 | 13,699 | 12,381 | 4,129 | 1,221 | 850 |
|
|
5743
|
+
| \`toast\` | 77,981 | 26,246 | 23,381 | 22,934 | 6,521 | 5,217 |
|
|
5744
|
+
| \`toggle\` | 51,350 | 17,040 | 15,366 | 6,064 | 1,816 | 1,376 |
|
|
5745
|
+
| \`toolbar\` | 37,472 | 13,575 | 12,214 | 1,406 | 514 | 290 |
|
|
5746
|
+
| \`tooltip\` | 65,278 | 23,082 | 20,772 | 8,863 | 2,473 | 1,900 |
|
|
5747
|
+
| \`tour\` | 91,077 | 30,852 | 27,557 | 21,116 | 5,713 | 4,470 |
|
|
5748
|
+
| \`tree\` | 74,849 | 24,784 | 22,145 | 19,419 | 5,315 | 4,190 |
|
|
5749
|
+
| \`trend\` | 35,123 | 13,389 | 12,073 | 3,041 | 1,007 | 733 |
|
|
5750
|
+
| \`video\` | 153,003 | 47,050 | 41,553 | 69,309 | 17,178 | 14,109 |
|
|
5751
|
+
| \`video-playlist\` | 138,374 | 44,185 | 39,087 | 46,672 | 12,002 | 9,747 |
|
|
5752
|
+
| \`virtual-list\` | 72,480 | 24,002 | 21,640 | 25,459 | 7,539 | 6,191 |
|
|
5575
5753
|
|
|
5576
5754
|
### Styled tier
|
|
5577
5755
|
|
|
@@ -5579,128 +5757,128 @@ The headless tier plus presentation. \`bun add @fusion.dev/helix\` installs this
|
|
|
5579
5757
|
|
|
5580
5758
|
| Family | Alone raw | Alone gzip | Alone brotli | Added raw | Added gzip | Added brotli |
|
|
5581
5759
|
|---|---|---|---|---|---|---|
|
|
5582
|
-
| \`accordion\` |
|
|
5583
|
-
| \`announcement\` |
|
|
5584
|
-
| \`app-header\` |
|
|
5585
|
-
| \`area-chart\` |
|
|
5586
|
-
| \`aura\` |
|
|
5587
|
-
| \`avatar\` | 39,
|
|
5588
|
-
| \`badge\` |
|
|
5589
|
-
| \`bar-chart\` |
|
|
5590
|
-
| \`blockquote\` | 31,
|
|
5591
|
-
| \`breadcrumbs\` |
|
|
5592
|
-
| \`button\` |
|
|
5593
|
-
| \`button-group\` |
|
|
5594
|
-
| \`callout\` |
|
|
5595
|
-
| \`canvas\` |
|
|
5596
|
-
| \`card\` |
|
|
5597
|
-
| \`carousel\` |
|
|
5598
|
-
| \`chat\` |
|
|
5599
|
-
| \`checkbox\` |
|
|
5600
|
-
| \`checkbox-group\` |
|
|
5601
|
-
| \`code\` | 25,
|
|
5602
|
-
| \`code-block\` |
|
|
5603
|
-
| \`code-editor\` |
|
|
5604
|
-
| \`code-input\` |
|
|
5605
|
-
| \`color-input\` |
|
|
5606
|
-
| \`color-picker\` |
|
|
5607
|
-
| \`combobox\` |
|
|
5608
|
-
| \`command\` |
|
|
5609
|
-
| \`copy-button\` |
|
|
5610
|
-
| \`data-table\` |
|
|
5611
|
-
| \`date-input\` |
|
|
5612
|
-
| \`date-picker\` |
|
|
5613
|
-
| \`description-list\` | 30,
|
|
5614
|
-
| \`device-screen\` |
|
|
5615
|
-
| \`dialog\` |
|
|
5616
|
-
| \`divider\` | 30,
|
|
5617
|
-
| \`donut-chart\` |
|
|
5618
|
-
| \`drawer\` |
|
|
5619
|
-
| \`drilldown\` |
|
|
5620
|
-
| \`editor\` |
|
|
5621
|
-
| \`empty\` | 30,
|
|
5622
|
-
| \`file-input\` |
|
|
5623
|
-
| \`filter-input\` |
|
|
5624
|
-
| \`find\` |
|
|
5625
|
-
| \`flex\` | 30,
|
|
5626
|
-
| \`format-date\` | 35,
|
|
5627
|
-
| \`graph\` |
|
|
5628
|
-
| \`grid\` | 31,
|
|
5629
|
-
| \`heatmap\` |
|
|
5630
|
-
| \`icon\` |
|
|
5631
|
-
| \`icon-button\` |
|
|
5632
|
-
| \`image\` | 32,
|
|
5633
|
-
| \`input\` |
|
|
5634
|
-
| \`kbd\` | 36,
|
|
5635
|
-
| \`legend\` |
|
|
5636
|
-
| \`lightbox\` |
|
|
5637
|
-
| \`line-chart\` |
|
|
5638
|
-
| \`list\` |
|
|
5639
|
-
| \`listbox\` |
|
|
5640
|
-
| \`loader\` | 34,
|
|
5641
|
-
| \`log\` |
|
|
5642
|
-
| \`map\` |
|
|
5643
|
-
| \`markdown\` |
|
|
5644
|
-
| \`megamenu\` |
|
|
5645
|
-
| \`menu\` |
|
|
5646
|
-
| \`meter\` |
|
|
5647
|
-
| \`motion-toggle\` | 32,
|
|
5648
|
-
| \`navigation\` |
|
|
5649
|
-
| \`notifications\` |
|
|
5650
|
-
| \`number-input\` |
|
|
5651
|
-
| \`object-inspector\` |
|
|
5652
|
-
| \`option\` |
|
|
5653
|
-
| \`orb\` |
|
|
5654
|
-
| \`outline\` |
|
|
5655
|
-
| \`pagination\` |
|
|
5656
|
-
| \`pin-input\` | 56,
|
|
5657
|
-
| \`popover\` |
|
|
5658
|
-
| \`progress\` | 40,
|
|
5659
|
-
| \`qr-code\` | 49,
|
|
5660
|
-
| \`quote\` | 27,
|
|
5661
|
-
| \`radio\` |
|
|
5662
|
-
| \`rating\` |
|
|
5663
|
-
| \`sandbox\` |
|
|
5664
|
-
| \`scatter-chart\` |
|
|
5665
|
-
| \`scroll-area\` | 43,
|
|
5666
|
-
| \`select\` |
|
|
5667
|
-
| \`shortcut-overlay\` |
|
|
5668
|
-
| \`skeleton\` |
|
|
5669
|
-
| \`skip-link\` | 30,
|
|
5670
|
-
| \`slider\` |
|
|
5671
|
-
| \`sparkline\` |
|
|
5672
|
-
| \`spatial-bar-chart\` |
|
|
5673
|
-
| \`spatial-heatmap\` |
|
|
5674
|
-
| \`spatial-ribbon-chart\` |
|
|
5675
|
-
| \`spatial-scatter-chart\` |
|
|
5676
|
-
| \`spatial-surface-chart\` |
|
|
5677
|
-
| \`spatial-treemap\` |
|
|
5678
|
-
| \`speed-dial\` |
|
|
5679
|
-
| \`splitter\` |
|
|
5680
|
-
| \`stat\` |
|
|
5681
|
-
| \`steps\` |
|
|
5682
|
-
| \`strands\` |
|
|
5683
|
-
| \`switch\` |
|
|
5684
|
-
| \`table\` |
|
|
5685
|
-
| \`tabs\` |
|
|
5686
|
-
| \`tag\` |
|
|
5687
|
-
| \`terminal\` |
|
|
5688
|
-
| \`text\` | 33,
|
|
5689
|
-
| \`textarea\` |
|
|
5690
|
-
| \`time-input\` |
|
|
5691
|
-
| \`time-picker\` |
|
|
5692
|
-
| \`timeline\` | 43,
|
|
5693
|
-
| \`toast\` |
|
|
5694
|
-
| \`toggle\` |
|
|
5695
|
-
| \`toolbar\` |
|
|
5696
|
-
| \`tooltip\` |
|
|
5697
|
-
| \`tour\` |
|
|
5698
|
-
| \`tree\` |
|
|
5699
|
-
| \`trend\` |
|
|
5700
|
-
| \`video\` |
|
|
5701
|
-
| \`video-playlist\` |
|
|
5702
|
-
| \`virtual-list\` | 74,
|
|
5703
|
-
| \`voice-level\` | 38,
|
|
5760
|
+
| \`accordion\` | 41,547 | 14,526 | 13,057 | 10,028 | 2,700 | 2,121 |
|
|
5761
|
+
| \`announcement\` | 47,097 | 16,187 | 14,587 | 10,273 | 2,744 | 2,127 |
|
|
5762
|
+
| \`app-header\` | 44,902 | 15,386 | 13,833 | 13,436 | 3,567 | 2,861 |
|
|
5763
|
+
| \`area-chart\` | 125,959 | 41,812 | 37,237 | 28,830 | 7,616 | 6,086 |
|
|
5764
|
+
| \`aura\` | 65,616 | 22,118 | 19,768 | 33,342 | 10,044 | 8,361 |
|
|
5765
|
+
| \`avatar\` | 39,731 | 14,416 | 13,053 | 7,636 | 2,192 | 1,858 |
|
|
5766
|
+
| \`badge\` | 38,073 | 13,538 | 12,248 | 8,709 | 2,207 | 1,735 |
|
|
5767
|
+
| \`bar-chart\` | 141,119 | 45,608 | 40,618 | 43,446 | 11,269 | 9,262 |
|
|
5768
|
+
| \`blockquote\` | 31,111 | 11,527 | 10,371 | 4,611 | 1,442 | 1,062 |
|
|
5769
|
+
| \`breadcrumbs\` | 50,954 | 17,232 | 15,552 | 16,569 | 4,040 | 3,260 |
|
|
5770
|
+
| \`button\` | 52,361 | 16,623 | 15,000 | 16,314 | 3,651 | 2,850 |
|
|
5771
|
+
| \`button-group\` | 38,038 | 12,864 | 11,567 | 10,164 | 2,392 | 1,927 |
|
|
5772
|
+
| \`callout\` | 45,233 | 16,414 | 14,797 | 7,947 | 2,259 | 1,752 |
|
|
5773
|
+
| \`canvas\` | 224,314 | 63,666 | 55,604 | 127,286 | 31,676 | 26,316 |
|
|
5774
|
+
| \`card\` | 35,669 | 12,071 | 10,881 | 9,137 | 2,077 | 1,542 |
|
|
5775
|
+
| \`carousel\` | 61,812 | 19,428 | 17,603 | 27,775 | 6,354 | 5,086 |
|
|
5776
|
+
| \`chat\` | 184,602 | 54,992 | 48,540 | 83,730 | 20,030 | 16,587 |
|
|
5777
|
+
| \`checkbox\` | 55,683 | 17,532 | 15,780 | 12,815 | 2,986 | 2,318 |
|
|
5778
|
+
| \`checkbox-group\` | 63,661 | 19,550 | 17,559 | 18,815 | 4,488 | 3,497 |
|
|
5779
|
+
| \`code\` | 25,945 | 9,951 | 8,980 | 986 | 427 | 401 |
|
|
5780
|
+
| \`code-block\` | 146,442 | 43,079 | 38,220 | 73,018 | 16,665 | 13,762 |
|
|
5781
|
+
| \`code-editor\` | 144,226 | 37,757 | 33,266 | 79,454 | 15,590 | 12,572 |
|
|
5782
|
+
| \`code-input\` | 82,474 | 27,304 | 24,466 | 23,958 | 7,201 | 5,886 |
|
|
5783
|
+
| \`color-input\` | 204,786 | 55,384 | 48,521 | 111,445 | 22,469 | 18,443 |
|
|
5784
|
+
| \`color-picker\` | 157,876 | 41,880 | 37,066 | 95,555 | 19,668 | 16,275 |
|
|
5785
|
+
| \`combobox\` | 187,701 | 56,014 | 49,325 | 70,955 | 16,768 | 13,647 |
|
|
5786
|
+
| \`command\` | 165,849 | 49,204 | 43,115 | 72,072 | 17,698 | 14,688 |
|
|
5787
|
+
| \`copy-button\` | 109,037 | 33,293 | 29,748 | 39,589 | 8,419 | 6,860 |
|
|
5788
|
+
| \`data-table\` | 351,180 | 95,774 | 81,399 | 210,652 | 49,016 | 39,234 |
|
|
5789
|
+
| \`date-input\` | 176,758 | 50,914 | 45,212 | 67,771 | 14,278 | 11,759 |
|
|
5790
|
+
| \`date-picker\` | 78,753 | 24,838 | 22,403 | 31,909 | 7,651 | 6,212 |
|
|
5791
|
+
| \`description-list\` | 30,670 | 11,091 | 9,991 | 4,541 | 1,265 | 896 |
|
|
5792
|
+
| \`device-screen\` | 148,470 | 42,867 | 37,905 | 71,430 | 15,541 | 12,418 |
|
|
5793
|
+
| \`dialog\` | 52,502 | 17,381 | 15,597 | 14,723 | 3,733 | 3,025 |
|
|
5794
|
+
| \`divider\` | 30,429 | 11,206 | 10,076 | 3,691 | 1,144 | 803 |
|
|
5795
|
+
| \`donut-chart\` | 121,814 | 39,410 | 35,259 | 32,014 | 8,105 | 6,536 |
|
|
5796
|
+
| \`drawer\` | 57,680 | 18,930 | 17,007 | 17,151 | 4,344 | 3,653 |
|
|
5797
|
+
| \`drilldown\` | 54,706 | 18,095 | 16,257 | 16,658 | 4,303 | 3,391 |
|
|
5798
|
+
| \`editor\` | 239,627 | 63,200 | 54,704 | 144,249 | 29,563 | 23,954 |
|
|
5799
|
+
| \`empty\` | 30,614 | 11,424 | 10,269 | 3,356 | 1,159 | 842 |
|
|
5800
|
+
| \`file-input\` | 77,942 | 24,764 | 22,338 | 27,699 | 7,111 | 5,889 |
|
|
5801
|
+
| \`filter-input\` | 140,392 | 44,577 | 39,685 | 45,408 | 11,857 | 9,668 |
|
|
5802
|
+
| \`find\` | 113,193 | 31,004 | 27,429 | 56,666 | 10,884 | 8,536 |
|
|
5803
|
+
| \`flex\` | 30,519 | 10,794 | 9,705 | 4,760 | 1,073 | 895 |
|
|
5804
|
+
| \`format-date\` | 35,654 | 13,113 | 11,831 | 4,701 | 1,383 | 1,040 |
|
|
5805
|
+
| \`graph\` | 183,605 | 51,961 | 45,280 | 74,626 | 16,180 | 13,052 |
|
|
5806
|
+
| \`grid\` | 31,969 | 11,469 | 10,364 | 5,650 | 1,478 | 1,283 |
|
|
5807
|
+
| \`heatmap\` | 127,395 | 41,492 | 36,969 | 32,850 | 8,717 | 7,103 |
|
|
5808
|
+
| \`icon\` | 113,127 | 37,985 | 32,412 | 81,095 | 27,305 | 22,070 |
|
|
5809
|
+
| \`icon-button\` | 55,869 | 16,798 | 15,116 | 19,824 | 3,825 | 2,960 |
|
|
5810
|
+
| \`image\` | 32,617 | 11,928 | 10,780 | 5,859 | 1,912 | 1,587 |
|
|
5811
|
+
| \`input\` | 79,294 | 26,143 | 23,345 | 20,994 | 6,149 | 5,022 |
|
|
5812
|
+
| \`kbd\` | 36,713 | 13,426 | 12,089 | 6,305 | 1,944 | 1,472 |
|
|
5813
|
+
| \`legend\` | 50,183 | 17,091 | 15,372 | 8,522 | 2,283 | 1,692 |
|
|
5814
|
+
| \`lightbox\` | 68,140 | 22,089 | 19,836 | 23,330 | 6,001 | 4,813 |
|
|
5815
|
+
| \`line-chart\` | 132,290 | 43,174 | 38,479 | 34,556 | 8,780 | 7,271 |
|
|
5816
|
+
| \`list\` | 78,985 | 25,831 | 23,077 | 27,124 | 7,122 | 5,588 |
|
|
5817
|
+
| \`listbox\` | 114,143 | 36,816 | 32,519 | 32,924 | 9,289 | 7,477 |
|
|
5818
|
+
| \`loader\` | 34,620 | 12,575 | 11,368 | 5,847 | 1,739 | 1,378 |
|
|
5819
|
+
| \`log\` | 108,148 | 33,439 | 30,056 | 58,371 | 15,924 | 13,323 |
|
|
5820
|
+
| \`map\` | 214,869 | 56,124 | 48,401 | 115,687 | 23,379 | 18,784 |
|
|
5821
|
+
| \`markdown\` | 178,467 | 53,020 | 46,917 | 100,481 | 25,207 | 20,934 |
|
|
5822
|
+
| \`megamenu\` | 73,156 | 25,458 | 22,763 | 15,090 | 3,967 | 3,137 |
|
|
5823
|
+
| \`menu\` | 123,505 | 38,201 | 33,995 | 49,492 | 11,828 | 9,723 |
|
|
5824
|
+
| \`meter\` | 48,076 | 16,108 | 14,578 | 15,447 | 3,698 | 3,016 |
|
|
5825
|
+
| \`motion-toggle\` | 32,514 | 12,240 | 11,010 | 3,410 | 1,135 | 841 |
|
|
5826
|
+
| \`navigation\` | 42,827 | 15,136 | 13,581 | 8,308 | 2,284 | 1,832 |
|
|
5827
|
+
| \`notifications\` | 81,288 | 24,932 | 22,445 | 35,838 | 8,549 | 6,865 |
|
|
5828
|
+
| \`number-input\` | 69,565 | 22,425 | 20,139 | 20,787 | 5,285 | 4,168 |
|
|
5829
|
+
| \`object-inspector\` | 149,720 | 45,309 | 40,060 | 62,225 | 14,532 | 11,803 |
|
|
5830
|
+
| \`option\` | 36,530 | 12,739 | 11,478 | 9,779 | 2,651 | 2,049 |
|
|
5831
|
+
| \`orb\` | 41,074 | 15,299 | 13,817 | 10,030 | 3,682 | 3,039 |
|
|
5832
|
+
| \`outline\` | 48,219 | 16,252 | 14,682 | 17,283 | 4,580 | 3,662 |
|
|
5833
|
+
| \`pagination\` | 196,629 | 58,405 | 50,939 | 85,376 | 20,214 | 16,404 |
|
|
5834
|
+
| \`pin-input\` | 56,789 | 19,335 | 17,444 | 10,865 | 3,426 | 2,678 |
|
|
5835
|
+
| \`popover\` | 75,112 | 25,730 | 23,024 | 11,858 | 3,026 | 2,276 |
|
|
5836
|
+
| \`progress\` | 40,728 | 14,125 | 12,770 | 10,289 | 2,598 | 2,131 |
|
|
5837
|
+
| \`qr-code\` | 49,514 | 18,687 | 16,874 | 18,651 | 6,727 | 5,658 |
|
|
5838
|
+
| \`quote\` | 27,851 | 10,645 | 9,584 | 1,744 | 692 | 362 |
|
|
5839
|
+
| \`radio\` | 57,401 | 18,005 | 16,182 | 13,634 | 3,118 | 2,430 |
|
|
5840
|
+
| \`rating\` | 62,031 | 20,857 | 18,770 | 13,900 | 4,079 | 3,204 |
|
|
5841
|
+
| \`sandbox\` | 221,512 | 63,206 | 54,186 | 157,567 | 40,993 | 33,031 |
|
|
5842
|
+
| \`scatter-chart\` | 125,880 | 41,291 | 36,865 | 35,570 | 9,696 | 7,903 |
|
|
5843
|
+
| \`scroll-area\` | 43,992 | 14,264 | 12,849 | 16,990 | 4,201 | 3,233 |
|
|
5844
|
+
| \`select\` | 161,390 | 50,554 | 44,425 | 51,880 | 13,233 | 10,588 |
|
|
5845
|
+
| \`shortcut-overlay\` | 66,090 | 21,748 | 19,518 | 22,661 | 5,832 | 4,783 |
|
|
5846
|
+
| \`skeleton\` | 36,009 | 12,807 | 11,585 | 9,705 | 2,816 | 2,338 |
|
|
5847
|
+
| \`skip-link\` | 30,427 | 11,455 | 10,276 | 2,887 | 1,010 | 682 |
|
|
5848
|
+
| \`slider\` | 77,090 | 22,506 | 20,305 | 31,345 | 6,582 | 5,283 |
|
|
5849
|
+
| \`sparkline\` | 62,136 | 21,414 | 19,335 | 14,553 | 4,404 | 3,305 |
|
|
5850
|
+
| \`spatial-bar-chart\` | 144,290 | 48,075 | 42,786 | 45,667 | 13,296 | 11,014 |
|
|
5851
|
+
| \`spatial-heatmap\` | 144,531 | 46,948 | 41,733 | 47,288 | 13,049 | 10,796 |
|
|
5852
|
+
| \`spatial-ribbon-chart\` | 133,303 | 44,459 | 39,549 | 36,704 | 10,581 | 8,602 |
|
|
5853
|
+
| \`spatial-scatter-chart\` | 131,439 | 43,660 | 38,768 | 34,884 | 9,733 | 7,910 |
|
|
5854
|
+
| \`spatial-surface-chart\` | 133,176 | 44,712 | 39,919 | 36,578 | 10,769 | 8,916 |
|
|
5855
|
+
| \`spatial-treemap\` | 135,520 | 45,543 | 40,467 | 37,226 | 10,902 | 8,882 |
|
|
5856
|
+
| \`speed-dial\` | 82,152 | 27,768 | 24,864 | 18,760 | 4,482 | 3,579 |
|
|
5857
|
+
| \`splitter\` | 57,727 | 18,376 | 16,616 | 22,771 | 5,267 | 4,349 |
|
|
5858
|
+
| \`stat\` | 38,620 | 13,642 | 12,388 | 10,350 | 2,975 | 2,362 |
|
|
5859
|
+
| \`steps\` | 80,585 | 24,421 | 21,850 | 34,522 | 7,689 | 6,253 |
|
|
5860
|
+
| \`strands\` | 69,907 | 25,457 | 22,699 | 39,926 | 14,171 | 12,162 |
|
|
5861
|
+
| \`switch\` | 51,417 | 16,907 | 15,209 | 8,269 | 2,190 | 1,554 |
|
|
5862
|
+
| \`table\` | 155,753 | 44,282 | 38,975 | 75,005 | 17,609 | 14,415 |
|
|
5863
|
+
| \`tabs\` | 65,486 | 20,343 | 18,308 | 24,462 | 5,670 | 4,701 |
|
|
5864
|
+
| \`tag\` | 53,617 | 18,568 | 16,756 | 14,588 | 3,938 | 3,101 |
|
|
5865
|
+
| \`terminal\` | 188,100 | 51,313 | 45,017 | 99,976 | 19,821 | 16,224 |
|
|
5866
|
+
| \`text\` | 33,565 | 11,571 | 10,387 | 7,249 | 1,532 | 1,112 |
|
|
5867
|
+
| \`textarea\` | 77,629 | 25,415 | 22,853 | 19,892 | 5,615 | 4,547 |
|
|
5868
|
+
| \`time-input\` | 235,040 | 67,941 | 59,041 | 94,646 | 21,343 | 17,549 |
|
|
5869
|
+
| \`time-picker\` | 148,415 | 44,429 | 39,107 | 63,189 | 15,834 | 12,803 |
|
|
5870
|
+
| \`timeline\` | 43,585 | 15,186 | 13,677 | 11,039 | 2,710 | 2,157 |
|
|
5871
|
+
| \`toast\` | 98,648 | 29,876 | 26,688 | 43,598 | 10,261 | 8,422 |
|
|
5872
|
+
| \`toggle\` | 57,103 | 18,502 | 16,704 | 11,807 | 3,297 | 2,572 |
|
|
5873
|
+
| \`toolbar\` | 43,369 | 14,740 | 13,238 | 7,286 | 1,675 | 1,232 |
|
|
5874
|
+
| \`tooltip\` | 69,419 | 23,977 | 21,556 | 12,986 | 3,413 | 2,683 |
|
|
5875
|
+
| \`tour\` | 105,072 | 33,387 | 29,861 | 35,102 | 8,299 | 6,693 |
|
|
5876
|
+
| \`tree\` | 86,253 | 27,288 | 24,385 | 30,806 | 7,846 | 6,445 |
|
|
5877
|
+
| \`trend\` | 37,122 | 13,963 | 12,583 | 5,019 | 1,554 | 1,175 |
|
|
5878
|
+
| \`video\` | 180,920 | 51,876 | 45,832 | 97,207 | 22,077 | 18,345 |
|
|
5879
|
+
| \`video-playlist\` | 159,590 | 48,054 | 42,544 | 67,863 | 16,004 | 13,249 |
|
|
5880
|
+
| \`virtual-list\` | 74,559 | 24,537 | 22,171 | 27,523 | 8,070 | 6,747 |
|
|
5881
|
+
| \`voice-level\` | 38,486 | 14,101 | 12,765 | 7,527 | 2,528 | 2,082 |
|
|
5704
5882
|
|
|
5705
5883
|
## What an install adds to \`node_modules\`
|
|
5706
5884
|
|
|
@@ -5713,12 +5891,12 @@ without its whitespace, and the sizes count each one that way.
|
|
|
5713
5891
|
|
|
5714
5892
|
| Package | Unpacked | Files | Source maps stripped | Runtime dependencies |
|
|
5715
5893
|
|---|---|---|---|---|
|
|
5716
|
-
| \`@fusion.dev/helix-core\` | 2,
|
|
5717
|
-
| \`@fusion.dev/helix-headless\` | 23,
|
|
5718
|
-
| \`@fusion.dev/helix-icons\` |
|
|
5719
|
-
| \`@fusion.dev/helix-styles\` |
|
|
5720
|
-
| \`@fusion.dev/helix-theme\` |
|
|
5721
|
-
| \`@fusion.dev/helix\` |
|
|
5894
|
+
| \`@fusion.dev/helix-core\` | 2,290,740 | 497 | 862,210 | \`@floating-ui/dom\`, \`@fusion.dev/helix-icons\`, \`tslib\` |
|
|
5895
|
+
| \`@fusion.dev/helix-headless\` | 23,813,339 | 1,088 | 3,006,197 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-icons\`, \`tslib\`, \`uqr\` |
|
|
5896
|
+
| \`@fusion.dev/helix-icons\` | 209,246 | 22 | 64,758 | \`svgo\` |
|
|
5897
|
+
| \`@fusion.dev/helix-styles\` | 167,165 | 6 | 0 | none |
|
|
5898
|
+
| \`@fusion.dev/helix-theme\` | 456,690 | 8 | 6,260 | none |
|
|
5899
|
+
| \`@fusion.dev/helix\` | 24,090,247 | 1,161 | 665,164 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-headless\`, \`@fusion.dev/helix-styles\`, \`tslib\` |
|
|
5722
5900
|
|
|
5723
5901
|
## Not measured yet
|
|
5724
5902
|
|
|
@@ -5747,6 +5925,9 @@ title: Motion
|
|
|
5747
5925
|
| \`--helix-duration-fast\` | \`120ms\` |
|
|
5748
5926
|
| \`--helix-duration-normal\` | \`200ms\` |
|
|
5749
5927
|
| \`--helix-duration-slow\` | \`320ms\` |
|
|
5928
|
+
| \`--helix-duration-turn\` | \`0.8s\` |
|
|
5929
|
+
| \`--helix-duration-crawl\` | \`4s\` |
|
|
5930
|
+
| \`--helix-duration-fade\` | \`120ms\` |
|
|
5750
5931
|
|
|
5751
5932
|
[//]: # (/tokens)
|
|
5752
5933
|
|
|
@@ -5758,17 +5939,26 @@ title: Motion
|
|
|
5758
5939
|
| \`--helix-easing-emphasized\` | \`cubic-bezier(0.3, 0, 0, 1.2)\` |
|
|
5759
5940
|
| \`--helix-easing-decelerate\` | \`cubic-bezier(0, 0, 0, 1)\` |
|
|
5760
5941
|
| \`--helix-easing-accelerate\` | \`cubic-bezier(0.3, 0, 1, 1)\` |
|
|
5942
|
+
| \`--helix-easing-cycle\` | \`cubic-bezier(0.42, 0, 0.58, 1)\` |
|
|
5761
5943
|
| \`--helix-easing-spring\` | \`linear(0, 0.006, 0.025, 0.101, 0.539, 0.826, 0.976, 1.037, 1.043, 1.026, 1.006, 0.997, 1)\` |
|
|
5762
5944
|
|
|
5763
5945
|
[//]: # (/tokens)
|
|
5764
5946
|
|
|
5765
|
-
Helix has
|
|
5766
|
-
|
|
5947
|
+
Helix has seven durations and six curves. \`instant\`, \`fast\`, \`normal\`, and
|
|
5948
|
+
\`slow\` time a change that answers a hand. \`fade\` is the fade a panel keeps
|
|
5949
|
+
while motion is reduced. \`turn\` is one revolution of a spinner, and \`crawl\` is
|
|
5950
|
+
the same revolution while motion is reduced, so a busy ring still turns
|
|
5951
|
+
slowly.
|
|
5952
|
+
|
|
5953
|
+
Use each curve for one kind of movement:
|
|
5767
5954
|
|
|
5768
5955
|
- \`standard\` for most movement
|
|
5769
|
-
- \`decelerate\` for something arriving
|
|
5956
|
+
- \`decelerate\` for something arriving, such as a Dialog, a Drawer, or a Toast
|
|
5770
5957
|
- \`accelerate\` for something leaving
|
|
5771
|
-
- \`
|
|
5958
|
+
- \`cycle\` for a loop that repeats, such as a pulse or a loading sweep
|
|
5959
|
+
- \`emphasized\` for a floating panel opening from its trigger, such as a
|
|
5960
|
+
Popover or a Menu, and for a marker that travels to a new place, such as the
|
|
5961
|
+
indicator under the selected tab
|
|
5772
5962
|
- \`spring\` for the few places where overshoot looks responsive and does not
|
|
5773
5963
|
look like a bug
|
|
5774
5964
|
|
|
@@ -5786,11 +5976,12 @@ inside any component.**
|
|
|
5786
5976
|
\`\`\`
|
|
5787
5977
|
|
|
5788
5978
|
The \`*\` selector does not cross a shadow boundary. The rule applies to your
|
|
5789
|
-
prose, your layout, and the base layer's own recipes. It does not apply to
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5979
|
+
prose, your layout, and the base layer's own recipes. It does not apply to any
|
|
5980
|
+
component that draws inside a shadow root, which is almost every Helix
|
|
5981
|
+
component. A custom property does cross that boundary, so under the setting
|
|
5982
|
+
Helix takes its duration tokens down to almost nothing, and every transition
|
|
5983
|
+
written with them stops. A component with an
|
|
5984
|
+
animation of its own handles \`prefers-reduced-motion\` in its stylesheet.
|
|
5794
5985
|
|
|
5795
5986
|
The same applies to your own components. If you write a component with a shadow
|
|
5796
5987
|
root, the global rule does not cover it. This comes from how \`*\` works in CSS,
|
|
@@ -5810,8 +6001,11 @@ ship without noticing.
|
|
|
5810
6001
|
|
|
5811
6002
|
Some transitions show a relationship, such as a panel that slides out of the
|
|
5812
6003
|
control that opened it. Others are decorative, such as a floating effect. With
|
|
5813
|
-
reduced motion, Helix removes decorative movement. It
|
|
5814
|
-
|
|
6004
|
+
reduced motion, Helix removes decorative movement. It sets \`fast\`, \`normal\`,
|
|
6005
|
+
and \`slow\` to 0.01ms, so a panel appears in its final place at once. The
|
|
6006
|
+
transition still runs that long, so \`transitionend\` still fires. A Tooltip, a
|
|
6007
|
+
Toast, and a panel that opens from a field or a Menu still fade in and out over
|
|
6008
|
+
\`fade\`, 120ms, with no movement.
|
|
5815
6009
|
|
|
5816
6010
|
Anything that moves continuously without input stops completely:
|
|
5817
6011
|
|
|
@@ -6122,6 +6316,44 @@ The pointer can move onto a tooltip's bubble and the bubble stays, so a reader
|
|
|
6122
6316
|
can read it under a magnifier. Set \`hoverable="false"\` to hide it once the
|
|
6123
6317
|
pointer reaches it.
|
|
6124
6318
|
|
|
6319
|
+
## Order a dialog's actions
|
|
6320
|
+
|
|
6321
|
+
Put a dialog's actions in its \`footer\` slot. The action that dismisses the
|
|
6322
|
+
dialog, such as Cancel, Close, Keep, or Not now, comes first. The primary action
|
|
6323
|
+
comes last, at the trailing edge. \`Dialog\` aligns its footer to the end of the
|
|
6324
|
+
line. The same order applies to an alert dialog and to a \`Drawer\`.
|
|
6325
|
+
|
|
6326
|
+
**Write the actions in the order they are drawn.** A screen reader reads them
|
|
6327
|
+
in source order, and \`Tab\` moves through them in source order, so the markup
|
|
6328
|
+
has to match the screen. Do not reorder them with \`row-reverse\` or \`order\`.
|
|
6329
|
+
When the actions stack at a narrow width, keep the same order, so the primary
|
|
6330
|
+
action is at the bottom, nearest your thumb.
|
|
6331
|
+
|
|
6332
|
+
\`\`\`html
|
|
6333
|
+
<helix-button-group
|
|
6334
|
+
label="Dialog actions"
|
|
6335
|
+
layout="spaced"
|
|
6336
|
+
slot="footer"
|
|
6337
|
+
>
|
|
6338
|
+
<helix-button
|
|
6339
|
+
autofocus
|
|
6340
|
+
command="--close"
|
|
6341
|
+
commandfor="confirm"
|
|
6342
|
+
>Cancel</helix-button>
|
|
6343
|
+
<helix-button
|
|
6344
|
+
command="--close"
|
|
6345
|
+
commandfor="confirm"
|
|
6346
|
+
emphasis="solid"
|
|
6347
|
+
tone="danger"
|
|
6348
|
+
>Delete project</helix-button>
|
|
6349
|
+
</helix-button-group>
|
|
6350
|
+
\`\`\`
|
|
6351
|
+
|
|
6352
|
+
**In a confirmation before a destructive action**, such as a deletion, focus
|
|
6353
|
+
starts on the action that destroys nothing. Put \`autofocus\` on that action, as
|
|
6354
|
+
the Cancel button above carries it. Without it, opening the dialog moves
|
|
6355
|
+
focus to the dialog itself, and the first \`Tab\` reaches the first control.
|
|
6356
|
+
|
|
6125
6357
|
## Keep an overlay open
|
|
6126
6358
|
|
|
6127
6359
|
An overlay sends \`helix-before-close\` before it closes. Cancel the event to keep
|
|
@@ -6701,6 +6933,8 @@ In prose:
|
|
|
6701
6933
|
- Headings use the type scale.
|
|
6702
6934
|
- Paragraphs use the measure and leading.
|
|
6703
6935
|
- Lists, links, and inline code follow the same styles.
|
|
6936
|
+
- \`data-prose="reading"\` sets a document at 18px for reading, with more room
|
|
6937
|
+
between blocks.
|
|
6704
6938
|
|
|
6705
6939
|
See [Typography](./typography).
|
|
6706
6940
|
|
|
@@ -7617,6 +7851,7 @@ title: Shape and borders
|
|
|
7617
7851
|
| Token | Value |
|
|
7618
7852
|
| --- | --- |
|
|
7619
7853
|
| \`--helix-radii-none\` | \`0\` |
|
|
7854
|
+
| \`--helix-radii-inset\` | \`max(min(calc(var(--helix-seed-radii, 0.5rem) * 0.25), 2px), calc(var(--helix-seed-radii, 0.5rem) * 0.5 - var(--helix-border-thin) - var(--helix-space-2xs)))\` |
|
|
7620
7855
|
| \`--helix-radii-sm\` | \`calc(var(--helix-seed-radii, 0.5rem) * 0.5)\` |
|
|
7621
7856
|
| \`--helix-radii-md\` | \`var(--helix-seed-radii, 0.5rem)\` |
|
|
7622
7857
|
| \`--helix-radii-lg\` | \`calc(var(--helix-seed-radii, 0.5rem) * 1.5)\` |
|
|
@@ -7733,6 +7968,19 @@ Size does three jobs:
|
|
|
7733
7968
|
a list and at 96 on a profile are two different pictures. That is why
|
|
7734
7969
|
\`Avatar\`, \`Loader\`, and \`Orb\` keep a \`size\`.
|
|
7735
7970
|
|
|
7971
|
+
## The steps
|
|
7972
|
+
|
|
7973
|
+
| Density | Control height | Tight row | Control text |
|
|
7974
|
+
| --- | --- | --- | --- |
|
|
7975
|
+
| \`sm\` | 32px | 26px | 12px |
|
|
7976
|
+
| \`md\` | 40px | 32px | 13px |
|
|
7977
|
+
| \`lg\` | 48px | 38px | 14px |
|
|
7978
|
+
|
|
7979
|
+
A tight row is \`--helix-size-control-tight\`, the height of a row in a Menu, a
|
|
7980
|
+
Select, or a Combobox. A Table and a List row take the control height. The
|
|
7981
|
+
control text in the table is for a mouse or a trackpad. On a touch screen it is
|
|
7982
|
+
a step larger, as [On a touch screen](#on-a-touch-screen) describes.
|
|
7983
|
+
|
|
7736
7984
|
## Can two controls differ in height?
|
|
7737
7985
|
|
|
7738
7986
|
Ask whether two controls placed together can ever differ in height:
|
|
@@ -7748,8 +7996,14 @@ A size on each control describes the **region**, one element at a time, and
|
|
|
7748
7996
|
that is how a row ends up with one control at the wrong height. When you set the
|
|
7749
7997
|
density once on the region, you cannot write a row of mismatched heights.
|
|
7750
7998
|
|
|
7751
|
-
|
|
7752
|
-
|
|
7999
|
+
Three regions take a \`size\` by the same test:
|
|
8000
|
+
|
|
8001
|
+
- \`Toolbar\` sets the density of every control in it. Unset, its controls are
|
|
8002
|
+
\`sm\`, since a toolbar is dense.
|
|
8003
|
+
- \`Button Group\` sets the density of every button in it. Unset, its buttons
|
|
8004
|
+
take the density of the region around the group.
|
|
8005
|
+
- \`Dialog\` sets its own width. Two dialogs never sit together. One is on screen
|
|
8006
|
+
at a time, in the top layer, so the dialog is itself the region.
|
|
7753
8007
|
|
|
7754
8008
|
This also helps when you or a model generate code. There is no size to get wrong
|
|
7755
8009
|
on each element, and you make one choice for each region.
|
|
@@ -7760,10 +8014,10 @@ Put \`data-density\` on any container, with a value of \`sm\`, \`md\`, or \`lg\`
|
|
|
7760
8014
|
is the default, so you never write it.
|
|
7761
8015
|
|
|
7762
8016
|
\`\`\`html
|
|
7763
|
-
<helix-toolbar>
|
|
8017
|
+
<helix-toolbar label="Build">
|
|
7764
8018
|
<!-- Nothing here needs a size. The toolbar is already dense. -->
|
|
7765
8019
|
<helix-button>Run</helix-button>
|
|
7766
|
-
<helix-select label="Target"><!-- … --></helix-select>
|
|
8020
|
+
<helix-select aria-label="Target"><!-- … --></helix-select>
|
|
7767
8021
|
</helix-toolbar>
|
|
7768
8022
|
\`\`\`
|
|
7769
8023
|
|
|
@@ -7775,15 +8029,72 @@ Density works through these custom properties:
|
|
|
7775
8029
|
|
|
7776
8030
|
- \`--helix-size-control\`
|
|
7777
8031
|
- \`--helix-size-checkbox\`
|
|
8032
|
+
- \`--helix-size-icon\`
|
|
7778
8033
|
- \`--helix-size-switch\`
|
|
7779
8034
|
- \`--helix-size-tag\`
|
|
7780
8035
|
|
|
8036
|
+
It also sets the control text, the field text, and their insets.
|
|
8037
|
+
|
|
7781
8038
|
Because of this, density adds no API to any component, and it passes through
|
|
7782
8039
|
every shadow boundary.
|
|
7783
8040
|
|
|
7784
8041
|
The \`-sm\`, \`-md\`, and \`-lg\` tokens are the scale, and they never change. The
|
|
7785
8042
|
unsuffixed tokens hold the current step, and \`data-density\` changes them.
|
|
7786
8043
|
|
|
8044
|
+
## A step either side
|
|
8045
|
+
|
|
8046
|
+
\`-tight\` and \`-loose\` are a step either side of the current one: 0.8 and 1.2
|
|
8047
|
+
times the unsuffixed token, rounded to a whole pixel. An icon rounds to an even
|
|
8048
|
+
pixel, so its steps land between 0.75 and 0.83 times the icon and between 1.17
|
|
8049
|
+
and 1.25 times it. They move with the region's density. Three sizes have the
|
|
8050
|
+
pair:
|
|
8051
|
+
|
|
8052
|
+
- \`--helix-size-control-tight\` and \`--helix-size-control-loose\`
|
|
8053
|
+
- \`--helix-size-icon-tight\` and \`--helix-size-icon-loose\`
|
|
8054
|
+
- \`--helix-size-checkbox-tight\` and \`--helix-size-checkbox-loose\`
|
|
8055
|
+
|
|
8056
|
+
| Density | Control | Tight | Loose | Icon | Tight | Loose |
|
|
8057
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
8058
|
+
| \`sm\` | 32px | 26px | 38px | 16px | 12px | 20px |
|
|
8059
|
+
| \`md\` | 40px | 32px | 48px | 20px | 16px | 24px |
|
|
8060
|
+
| \`lg\` | 48px | 38px | 58px | 24px | 20px | 28px |
|
|
8061
|
+
|
|
8062
|
+
Use a \`-tight\` or \`-loose\` step for something that is meant to differ from its
|
|
8063
|
+
neighbors, such as a row in a floating panel or a caret inside a trigger. Use
|
|
8064
|
+
\`-sm\`, \`-md\`, or \`-lg\` for a size that does not follow density.
|
|
8065
|
+
|
|
8066
|
+
Two sizes do not follow a region's density. Like every size, they still scale
|
|
8067
|
+
with \`--helix-seed-density\`:
|
|
8068
|
+
|
|
8069
|
+
- \`--helix-size-button\` is 200px, a standard width for a button. Set it as a
|
|
8070
|
+
button's \`--button-inline-size\`.
|
|
8071
|
+
- \`--helix-size-badge\` is 16px, the size of a Badge's mark. A badge is pinned
|
|
8072
|
+
to something else, such as an avatar, so it does not take a control's size.
|
|
8073
|
+
|
|
8074
|
+
## On a touch screen
|
|
8075
|
+
|
|
8076
|
+
Where the primary pointer is coarse, such as on a phone, these sizes change:
|
|
8077
|
+
|
|
8078
|
+
- \`--helix-size-target\` is 44px. Under a mouse it is 24px. A control's press
|
|
8079
|
+
reaches that size through a transparent box around it, so nothing drawn moves.
|
|
8080
|
+
- Control text is a step larger, up to 14px: 13px at \`sm\`, and 14px at \`md\` and
|
|
8081
|
+
\`lg\`. A Button at \`md\` goes from 13px to 14px.
|
|
8082
|
+
- A field's text is at least 16px, so a field at \`md\` goes from 14px to 16px.
|
|
8083
|
+
iOS Safari zooms the page into a field whose text is smaller. See
|
|
8084
|
+
[Typography](./typography).
|
|
8085
|
+
- A row in a Menu, a Select, or a Combobox is at least \`--helix-size-target\`
|
|
8086
|
+
tall, 44px at every density. Rows sit against each other, so the row itself
|
|
8087
|
+
grows to the target.
|
|
8088
|
+
- A List row and a Tree row are 48px apart at every density, the pitch a List
|
|
8089
|
+
has at \`lg\`. Tree rows keep the List's pitch.
|
|
8090
|
+
- An Accordion's summary row is at least 44px tall, so it is 44px at \`sm\` and
|
|
8091
|
+
\`md\` and keeps its 48px at \`lg\`.
|
|
8092
|
+
- A Table row does not grow to the target. It keeps its density's height, and
|
|
8093
|
+
only its text takes the larger touch size.
|
|
8094
|
+
- A link in a Navigation bar is 44px tall.
|
|
8095
|
+
|
|
8096
|
+
A control keeps the height of its density step.
|
|
8097
|
+
|
|
7787
8098
|
## Exceptions
|
|
7788
8099
|
|
|
7789
8100
|
\`data-link-size\` still exists. A text link has no control height. Its size comes
|
|
@@ -7794,6 +8105,16 @@ one step above \`--helix-size-checkbox\` at every density, because a switch is a
|
|
|
7794
8105
|
track with a thumb inside it and a checkbox is a box with a mark in it. The
|
|
7795
8106
|
component sets this once, and it applies to every instance. You do not set a
|
|
7796
8107
|
height on each instance.
|
|
8108
|
+
|
|
8109
|
+
## Narrowest supported width
|
|
8110
|
+
|
|
8111
|
+
Helix supports a column down to 280px. Every family's examples fit at that width
|
|
8112
|
+
with no sideways scroll. Below it, a control may overflow or a figure may wrap.
|
|
8113
|
+
|
|
8114
|
+
A \`Stat\` figure that does not fit its column steps down the type scale twice,
|
|
8115
|
+
from \`3xl\` to \`2xl\` to \`xl\`. If it still does not fit, it breaks after a group
|
|
8116
|
+
separator, such as the comma in "1,284,567". Give each \`Stat\` a column of about
|
|
8117
|
+
6rem or wider, so its digits stay on one line.
|
|
7797
8118
|
`,
|
|
7798
8119
|
'space-and-size': `---
|
|
7799
8120
|
description: Use the space scale for gaps and the size tokens for the height of controls.
|
|
@@ -7823,6 +8144,7 @@ up one step of padding taller than the input beside it.
|
|
|
7823
8144
|
| \`--helix-space-2xl\` | \`calc(3rem * var(--helix-seed-density, 1))\` |
|
|
7824
8145
|
| \`--helix-space-3xl\` | \`calc(4rem * var(--helix-seed-density, 1))\` |
|
|
7825
8146
|
| \`--helix-space-field\` | \`var(--helix-space-sm)\` |
|
|
8147
|
+
| \`--helix-space-row-bleed\` | \`var(--helix-space-xs)\` |
|
|
7826
8148
|
| \`--helix-space-control\` | \`var(--helix-space-md)\` |
|
|
7827
8149
|
|
|
7828
8150
|
[//]: # (/tokens)
|
|
@@ -7832,9 +8154,17 @@ arithmetic, such as \`space-4\` being twice \`space-2\`. That stops being true a
|
|
|
7832
8154
|
soon as the scale is tuned, and it leads to a \`space-4.5\` the first time
|
|
7833
8155
|
something does not fit.
|
|
7834
8156
|
|
|
7835
|
-
\`--helix-space-
|
|
7836
|
-
control uses, and
|
|
7837
|
-
|
|
8157
|
+
\`--helix-space-field\` and \`--helix-space-control\` are of a different kind. Each
|
|
8158
|
+
is the inset a control uses, and each follows the region's density, so the table
|
|
8159
|
+
above shows its \`md\` value. They are not steps on the scale. A field's text
|
|
8160
|
+
starts closer to its edge than a button's label does:
|
|
8161
|
+
|
|
8162
|
+
| Token | \`sm\` | \`md\` | \`lg\` |
|
|
8163
|
+
| --- | --- | --- | --- |
|
|
8164
|
+
| \`--helix-space-field\` | 8px | 12px | 16px |
|
|
8165
|
+
| \`--helix-space-control\` | 12px | 16px | 24px |
|
|
8166
|
+
|
|
8167
|
+
See [Size and density](./size-and-density).
|
|
7838
8168
|
|
|
7839
8169
|
Use the space tokens for gap, padding, and margin:
|
|
7840
8170
|
|
|
@@ -8077,8 +8407,7 @@ three.js draws both as well.
|
|
|
8077
8407
|
|
|
8078
8408
|
\`no-box\` draws \`Spatial Bar Chart\`, \`Spatial Ribbon Chart\`, \`Spatial Scatter
|
|
8079
8409
|
Chart\`, \`Spatial Surface Chart\`, or \`Spatial Treemap\` with no box, grid,
|
|
8080
|
-
numbers, or names,
|
|
8081
|
-
a picture does:
|
|
8410
|
+
numbers, or names, so the readings stand on the page as a picture does:
|
|
8082
8411
|
|
|
8083
8412
|
\`\`\`html
|
|
8084
8413
|
<helix-spatial-surface-chart
|
|
@@ -8090,10 +8419,16 @@ a picture does:
|
|
|
8090
8419
|
\`\`\`
|
|
8091
8420
|
|
|
8092
8421
|
The table, the summary, the tooltip, and the keys still carry every value, and
|
|
8093
|
-
three.js draws no box either. \`Spatial Heatmap\` has no box, and its \`start\` and
|
|
8422
|
+
three.js draws no box under \`no-box\` either. \`Spatial Heatmap\` has no box, and its \`start\` and
|
|
8094
8423
|
\`end\` slots are the only names it draws, so leave them empty for the same
|
|
8095
8424
|
picture.
|
|
8096
8425
|
|
|
8426
|
+
## Give a chart a ground
|
|
8427
|
+
|
|
8428
|
+
A spatial chart draws nothing behind its plot, as a flat chart does. Set
|
|
8429
|
+
\`separation="filled"\` on any of the six to draw a ground of
|
|
8430
|
+
\`--helix-color-surface-filled\`, the fill every \`filled\` surface takes.
|
|
8431
|
+
|
|
8097
8432
|
## When a 3D bar or ribbon chart fits
|
|
8098
8433
|
|
|
8099
8434
|
A flat \`Bar Chart\` is read more exactly. Studies of 3D bars measure readers
|
|
@@ -8185,6 +8520,9 @@ Each chart takes its colors from your theme, and these hooks change them:
|
|
|
8185
8520
|
the page. On \`Spatial Surface Chart\` it is a wireframe.
|
|
8186
8521
|
- \`emphasis="subtle"\` draws a faint wash under the same edge, which shows what
|
|
8187
8522
|
stands behind a prism, a point, or a fold of the surface.
|
|
8523
|
+
- \`emphasis="muted"\` on \`Spatial Bar Chart\` draws every bar in the neutral
|
|
8524
|
+
ink, so a bar whose cell names a tone is the one in color, and it glows in
|
|
8525
|
+
that tone.
|
|
8188
8526
|
- \`material="glass"\` lets the most of what is behind each mark through, and
|
|
8189
8527
|
\`material="frosted"\` less.
|
|
8190
8528
|
|
|
@@ -8374,8 +8712,8 @@ title: Surfaces and separation
|
|
|
8374
8712
|
edge, a lift, and space.** A design language leads with one of them. Helix leads
|
|
8375
8713
|
with an edge for surfaces on the page and a lift for surfaces above it. A card
|
|
8376
8714
|
has a hairline border and no shadow. A menu has a shadow and a hairline border,
|
|
8377
|
-
because a shadow cannot show on a
|
|
8378
|
-
for each place a surface can sit.
|
|
8715
|
+
because a shadow cannot show on a black page. The surface ladder below sets the
|
|
8716
|
+
ground color for each place a surface can sit.
|
|
8379
8717
|
|
|
8380
8718
|
## The four ways to separate a surface
|
|
8381
8719
|
|
|
@@ -8399,13 +8737,20 @@ Helix sets the choice with two pairs of policy tokens:
|
|
|
8399
8737
|
| \`--helix-border-surface\` | \`var(--helix-border-thin)\` | The border of a surface in the page flow. Set it to zero to separate surfaces with shadows. |
|
|
8400
8738
|
| \`--helix-shadow-surface\` | \`var(--helix-shadow-none)\` | The shadow of a surface in the page flow. Set it to none to separate surfaces with borders. |
|
|
8401
8739
|
| \`--helix-border-floating\` | \`var(--helix-border-thin)\` | The border of a surface that floats over content. Set it to zero to separate floating surfaces by their shadow alone. |
|
|
8402
|
-
| \`--helix-shadow-floating\` | \`var(--helix-shadow-lg)\` | The shadow of a surface that floats over content. |
|
|
8740
|
+
| \`--helix-shadow-floating\` | \`var(--helix-shadow-sm), var(--helix-shadow-lg)\` | The shadow of a surface that floats over content. |
|
|
8403
8741
|
|
|
8404
8742
|
[//]: # (/tokens)
|
|
8405
8743
|
|
|
8406
8744
|
A floating surface draws a hairline edge and a shadow by default. A shadow is
|
|
8407
8745
|
ink darker than the ground it falls on, so over a dark page it does not show,
|
|
8408
|
-
and the edge keeps a menu or a popover apart from what it opened over.
|
|
8746
|
+
and the edge keeps a menu or a popover apart from what it opened over. The edge
|
|
8747
|
+
is \`--helix-color-border-floating\`: \`border\` in light mode, and 10% of white in
|
|
8748
|
+
dark mode.
|
|
8749
|
+
|
|
8750
|
+
A Tooltip draws neither. Its fill is \`surface-inverse\`, the mode's opposite,
|
|
8751
|
+
which sets it apart from any ground it opens over. A glass or frosted Tooltip
|
|
8752
|
+
lets the page show through, so it takes the hairline edge every glass surface
|
|
8753
|
+
draws, \`--helix-material-border\`.
|
|
8409
8754
|
|
|
8410
8755
|
To make every component shadow-first, set the border pair to zero and give the
|
|
8411
8756
|
shadow pair a value. Reverse them to go border-first. Every Helix surface reads
|
|
@@ -8435,6 +8780,40 @@ step darker to be seen. A lit row is different: it takes \`hover\`, a wash measu
|
|
|
8435
8780
|
against whatever it sits on. \`overlay\` works the other way. Its edge and its shadow separate it, so on
|
|
8436
8781
|
a white page it is white.
|
|
8437
8782
|
|
|
8783
|
+
**In dark mode, a surface over a raised one steps up from it.** A shadow does
|
|
8784
|
+
not show on a black page, so \`overlay\` stands one rung above \`raised\`: #1e1e1e
|
|
8785
|
+
over #181818, 1.07:1. An elevated Card fills the \`overlay\` rung in dark, so it
|
|
8786
|
+
reads above a filled card: #1e1e1e against #161616 on the page. Inside a Dialog,
|
|
8787
|
+
a Drawer, a Popover, or an elevated Card, the rungs are washes of \`foreground\`
|
|
8788
|
+
over the panel: \`overlay\` 12%, \`raised\` 9%, \`surface\` 3%, and \`border\` 12%.
|
|
8789
|
+
Inside a default Card, \`overlay\` is 12% and the filled wash 6%. An elevated
|
|
8790
|
+
Card inside any of these reads above a filled one. A Menu opened from an
|
|
8791
|
+
elevated Card stands a step above the card, and a Dialog opened over another
|
|
8792
|
+
Dialog stands 8% above it. Light mode keeps its rungs, where a shadow sets an
|
|
8793
|
+
overlay apart. An elevated Card inside another card fills the \`overlay\` rung in
|
|
8794
|
+
light too, white on the card's #fafafa.
|
|
8795
|
+
|
|
8796
|
+
**A sunken region restates the border for what it holds.** On
|
|
8797
|
+
\`surface-sunken\`, the page's border measures 1.03:1 in light, so an outlined
|
|
8798
|
+
Card, a Table rule, a Divider, or a field placed there has no visible edge. Mark
|
|
8799
|
+
the region with \`data-surface="sunken"\`. It draws the sunken ground and mixes the
|
|
8800
|
+
border from \`foreground\` into it, so an edge stands as far off the well as it
|
|
8801
|
+
does off the page: 1.23:1 in light and 1.29:1 in dark.
|
|
8802
|
+
|
|
8803
|
+
\`\`\`html
|
|
8804
|
+
<section data-surface="sunken">
|
|
8805
|
+
<helix-card separation="outlined">…</helix-card>
|
|
8806
|
+
</section>
|
|
8807
|
+
\`\`\`
|
|
8808
|
+
|
|
8809
|
+
**In dark mode, a surface inside a sunken region steps up a rung.** The card
|
|
8810
|
+
rung, #0c0c0c, is darker than the #121212 well, so a Card there would read as a
|
|
8811
|
+
hole. Inside the region, \`surface\` takes the \`raised\` rung, #181818, and the
|
|
8812
|
+
rungs above it step with it: \`raised\` is #272727 and \`overlay\` is #2d2d2d. An
|
|
8813
|
+
elevated Card still stands above a default one, and a menu opened inside stands
|
|
8814
|
+
above both. Light mode keeps its rungs, where a card is already lighter than
|
|
8815
|
+
the well. Canvas's board is a sunken region too.
|
|
8816
|
+
|
|
8438
8817
|
## Using the page color inside a component
|
|
8439
8818
|
|
|
8440
8819
|
**\`--helix-color-background\` is the page color. Do not use it inside a
|
|
@@ -8461,6 +8840,14 @@ Put the color behind a hook that defaults to the page color. When the component
|
|
|
8461
8840
|
sits on another surface, the hook can be set to match. Helix requires this of
|
|
8462
8841
|
its own components, and the same applies to anything you build with it.
|
|
8463
8842
|
|
|
8843
|
+
**A tone faded toward the page needs no hook.** An outlined chart mark, a
|
|
8844
|
+
Callout's hairline, or a Badge's tint mixes its tone toward
|
|
8845
|
+
\`--helix-color-background\` to make a quieter color of the same tone. That color
|
|
8846
|
+
is a mark, and it never has to match the ground under it, so it reads as the
|
|
8847
|
+
tone on a card as it does on the page. A fill that has to disappear into its
|
|
8848
|
+
ground, such as a marker that hides a rail or a ring around a point, is the page
|
|
8849
|
+
color itself, and it takes a hook.
|
|
8850
|
+
|
|
8464
8851
|
## Contrast
|
|
8465
8852
|
|
|
8466
8853
|
The theme engine measures each ink against the ground it is actually painted
|
|
@@ -9151,7 +9538,7 @@ section: Theming
|
|
|
9151
9538
|
title: Deriving a theme
|
|
9152
9539
|
---
|
|
9153
9540
|
|
|
9154
|
-
#
|
|
9541
|
+
# Deriving a theme
|
|
9155
9542
|
|
|
9156
9543
|
Helix computes your color tokens from a few inputs, such as your brand color.
|
|
9157
9544
|
|
|
@@ -9163,7 +9550,7 @@ the page, with the page's own color for its label. The neutral ramp supplies
|
|
|
9163
9550
|
both, so a gray with a tint gives a tinted ink. Set a brand color to replace the
|
|
9164
9551
|
ink, as a seed in CSS or as \`brand\` in the theme engine.
|
|
9165
9552
|
|
|
9166
|
-
Before ink, the default was a blue. To
|
|
9553
|
+
Before ink, the default was a blue. To draw that blue, set it as your seed:
|
|
9167
9554
|
|
|
9168
9555
|
\`\`\`css
|
|
9169
9556
|
:root {
|
|
@@ -9171,6 +9558,12 @@ Before ink, the default was a blue. To keep it, set it as your seed:
|
|
|
9171
9558
|
}
|
|
9172
9559
|
\`\`\`
|
|
9173
9560
|
|
|
9561
|
+
The primary color is held to a floor, described under
|
|
9562
|
+
[Two ways to theme](#two-ways-to-theme), so in light mode this seed draws at
|
|
9563
|
+
L 0.5, a little darker than the 0.539 the old default drew. In dark mode it is
|
|
9564
|
+
set at L 0.68. That color is outside sRGB, so a screen draws it as \`#4495ff\`, at
|
|
9565
|
+
L 0.672.
|
|
9566
|
+
|
|
9174
9567
|
When a design system ships two hundred fixed color values, you theme it by
|
|
9175
9568
|
changing them one at a time. A change to one value can break the contrast of a
|
|
9176
9569
|
component elsewhere, and nothing tells you.
|
|
@@ -9203,13 +9596,52 @@ on the element where the property is *declared*, so the ramp has already
|
|
|
9203
9596
|
resolved at the root. The stylesheet declares the ramp again on each
|
|
9204
9597
|
\`[data-helix-theme]\` element, so the ramp there reads the seeds you set on it.
|
|
9205
9598
|
|
|
9206
|
-
Tuned
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
The
|
|
9212
|
-
|
|
9599
|
+
Tuned holds primary text and fills to a floor for any seed. CSS has no contrast
|
|
9600
|
+
function, so it cannot search for the least change that meets a target, but it
|
|
9601
|
+
can hold a lightness. Measured across every hue, the limits below clear 4.5:1
|
|
9602
|
+
for text on each surface.
|
|
9603
|
+
|
|
9604
|
+
- **Light mode.** The primary color is held at L 0.5 or less. A seed at 0.5 or
|
|
9605
|
+
darker is drawn exactly. A lighter seed is darkened to 0.5, so a very light
|
|
9606
|
+
brand draws a darker primary color than the one you set.
|
|
9607
|
+
- **Dark mode.** The primary color is the seed lightened by 0.13, at least
|
|
9608
|
+
0.68, and no lighter than 0.87 or the seed, whichever is lighter. A seed at
|
|
9609
|
+
0.87 or lighter is drawn exactly: on a \`#ffe600\` seed, primary text is
|
|
9610
|
+
\`#ffe600\` and measures 16.57:1 on the black page. A darker seed is drawn
|
|
9611
|
+
lighter than the one you set.
|
|
9612
|
+
- **A filled control in dark mode.** A seed at L 0.68 or darker fills at a
|
|
9613
|
+
luminance between 0.115 and 0.135, with its hue and chroma kept. Lightness
|
|
9614
|
+
alone is a different luminance in each hue, so a green filled at the same
|
|
9615
|
+
lightness as a blue carried a white label at 4.43:1. At that luminance the
|
|
9616
|
+
fill clears 3:1 against a card, and a white label clears 4.5:1 on it at rest,
|
|
9617
|
+
under the pointer, and pressed, which step lighter. A lighter seed fills 0.05 darker than itself
|
|
9618
|
+
and takes a black label.
|
|
9619
|
+
|
|
9620
|
+
The accent seed is held to the same limits.
|
|
9621
|
+
|
|
9622
|
+
The focus ring keeps the primary color's hue and chroma, and its lightness is
|
|
9623
|
+
held at 0.6 or less in light mode and 0.65 or more in dark mode. The ring stays
|
|
9624
|
+
visible on the page whichever seed you set. On a \`#ffe600\` seed, the ring
|
|
9625
|
+
measures 5.89:1 on white.
|
|
9626
|
+
|
|
9627
|
+
A development build warns when primary text measures under 4.5:1 or a filled
|
|
9628
|
+
control under 3:1 against the page, in light or dark mode. A seed alone cannot
|
|
9629
|
+
cause this. An override of \`--helix-color-primary\`,
|
|
9630
|
+
\`--helix-color-primary-surface\`, or the page color can. It also warns when the
|
|
9631
|
+
primary color sits within 0.08 in OKLab of a status color, so a warning or a
|
|
9632
|
+
success reads as the brand. A yellow, green, or red seed can cause this. Each
|
|
9633
|
+
warning prints once.
|
|
9634
|
+
|
|
9635
|
+
The build checks the page when the first element renders, and again when one of
|
|
9636
|
+
these changes:
|
|
9637
|
+
|
|
9638
|
+
- the seed
|
|
9639
|
+
- a \`style\`, \`class\`, or \`data-theme\` attribute on the root or the body
|
|
9640
|
+
- a stylesheet in the head, once it has loaded
|
|
9641
|
+
- the system setting for light or dark mode
|
|
9642
|
+
|
|
9643
|
+
A page that sets its colors for one mode at a time on the root is checked in the
|
|
9644
|
+
mode it shows. The other mode is checked once the page switches to it.
|
|
9213
9645
|
|
|
9214
9646
|
**Verified** uses the theme engine. It searches for each color that meets its
|
|
9215
9647
|
target, measures every pair, and returns the theme with any violations:
|
|
@@ -9252,7 +9684,8 @@ computes the values the engine does not, from the same seeds the engine used:
|
|
|
9252
9684
|
|
|
9253
9685
|
This keeps both ways of theming in agreement on the same page.
|
|
9254
9686
|
|
|
9255
|
-
Use tuned to try a color. Use verified for the theme you ship
|
|
9687
|
+
Use tuned to try a color. Use verified for the theme you ship, since it moves
|
|
9688
|
+
each color the least distance that meets its target on every ground.
|
|
9256
9689
|
|
|
9257
9690
|
## Derive both modes
|
|
9258
9691
|
|
|
@@ -9561,7 +9994,7 @@ Helix has two layers of tokens. You use the second layer, the semantic tokens.
|
|
|
9561
9994
|
| Semantic | \`--helix-color-primary\` | Any code, including yours |
|
|
9562
9995
|
|
|
9563
9996
|
Each semantic token is named for its purpose. The name does not describe its
|
|
9564
|
-
value. Every token belongs to exactly one of
|
|
9997
|
+
value. Every token belongs to exactly one of seventeen categories:
|
|
9565
9998
|
|
|
9566
9999
|
- \`color\`
|
|
9567
10000
|
- \`scrollbar\`
|
|
@@ -9575,6 +10008,7 @@ value. Every token belongs to exactly one of sixteen categories:
|
|
|
9575
10008
|
- \`border\`
|
|
9576
10009
|
- \`shadow\`
|
|
9577
10010
|
- \`material\`
|
|
10011
|
+
- \`opacity\`
|
|
9578
10012
|
- \`duration\`
|
|
9579
10013
|
- \`easing\`
|
|
9580
10014
|
- \`size\`
|
|
@@ -9593,20 +10027,28 @@ nothing is lighter than white, so a raised surface is *darker* than the page.
|
|
|
9593
10027
|
- **\`background\`**: the page.
|
|
9594
10028
|
- **\`surface\`**: a plane on the page, such as a card or a panel you own.
|
|
9595
10029
|
- **\`surface-raised\`**: something lifted that still *lies on* the page, such as
|
|
9596
|
-
a
|
|
10030
|
+
a card inside a card, or the header of a Code Block or a Terminal. The page
|
|
9597
10031
|
surrounds it on all sides, so its fill sets it apart. On a white page, that
|
|
9598
10032
|
fill is one step darker.
|
|
9599
10033
|
- **\`surface-overlay\`**: something *over* the page, such as a menu, a popover, a
|
|
9600
|
-
dialog, or the thumb of a switch or a segmented control. Its
|
|
9601
|
-
content it covers set it apart, so on a white page it is
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
10034
|
+
dialog, or the thumb of a switch or a segmented control. Its edge, its
|
|
10035
|
+
shadow, and the content it covers set it apart, so on a white page it is
|
|
10036
|
+
white. In dark mode it is one rung above \`surface-raised\`.
|
|
10037
|
+
- **\`surface-sunken\`**: a recessed fill, such as a progress track, a keyboard
|
|
10038
|
+
key, or the groove of a segmented control.
|
|
10039
|
+
|
|
10040
|
+
Two fills are a step from whatever ground they sit on, so they read the same on
|
|
10041
|
+
the page, a card, or a raised surface. \`--helix-color-well\` fills a field, such
|
|
10042
|
+
as an input. \`--helix-color-hover\` lights a row under the pointer, such as an
|
|
10043
|
+
option or a menu item.
|
|
10044
|
+
|
|
10045
|
+
**Use \`raised\` and \`overlay\` for different jobs.** In dark mode they are one
|
|
10046
|
+
rung apart, #181818 and #1e1e1e, so either token can seem to do both jobs. In
|
|
10047
|
+
light mode they need opposite fills. A Code Block's header must be darker than
|
|
10048
|
+
a white page, and a thumb must be lighter than the groove it sits in. A menu is
|
|
10049
|
+
white on a white page, set apart by its edge and its shadow. If a surface looks
|
|
10050
|
+
almost right in dark mode and wrong in light mode, it usually uses the wrong one
|
|
10051
|
+
of these two tokens.
|
|
9610
10052
|
|
|
9611
10053
|
## Per-component hooks
|
|
9612
10054
|
|
|
@@ -9642,7 +10084,7 @@ loses its styles.
|
|
|
9642
10084
|
Each token declares its light and dark values in one declaration:
|
|
9643
10085
|
|
|
9644
10086
|
\`\`\`css
|
|
9645
|
-
--helix-color-surface: light-dark(var(--_helix-neutral-50), var(--_helix-neutral-
|
|
10087
|
+
--helix-color-surface: light-dark(var(--_helix-neutral-50), var(--_helix-neutral-925));
|
|
9646
10088
|
\`\`\`
|
|
9647
10089
|
|
|
9648
10090
|
The \`color-scheme\` property alone decides which value applies. You set the
|
|
@@ -9673,15 +10115,59 @@ title: Typography
|
|
|
9673
10115
|
|
|
9674
10116
|
[//]: # (/tokens)
|
|
9675
10117
|
|
|
9676
|
-
Helix has three font families
|
|
9677
|
-
|
|
10118
|
+
Helix has three font families, three weights, and no widths. A design system
|
|
10119
|
+
with more families or weights than a product uses ends up with two that mean the
|
|
9678
10120
|
same thing.
|
|
9679
10121
|
|
|
9680
10122
|
## The type scale
|
|
9681
10123
|
|
|
9682
10124
|
The type scale runs from \`--helix-text-xs\` to \`--helix-text-3xl\`.
|
|
9683
10125
|
\`--helix-text-control\` sets the size of a control's own text. It follows the
|
|
9684
|
-
region's density and is separate from the type scale.
|
|
10126
|
+
region's density and is separate from the type scale. A field you type into
|
|
10127
|
+
takes two more that follow density:
|
|
10128
|
+
|
|
10129
|
+
- \`--helix-text-field\` is the value you type: 13px at \`sm\`, and 14px at \`md\`
|
|
10130
|
+
and \`lg\`.
|
|
10131
|
+
- \`--helix-text-field-label\` is the field's label, a step under its value: 12px
|
|
10132
|
+
at \`sm\`, and 13px at \`md\` and \`lg\`.
|
|
10133
|
+
|
|
10134
|
+
| Token | Size |
|
|
10135
|
+
| --- | --- |
|
|
10136
|
+
| \`--helix-text-xs\` | 12px |
|
|
10137
|
+
| \`--helix-text-sm\` | 13px |
|
|
10138
|
+
| \`--helix-text-md\` | 14px |
|
|
10139
|
+
| \`--helix-text-lg\` | 18px |
|
|
10140
|
+
| \`--helix-text-xl\` | 24px |
|
|
10141
|
+
| \`--helix-text-2xl\` | 32px |
|
|
10142
|
+
| \`--helix-text-3xl\` | 42px |
|
|
10143
|
+
|
|
10144
|
+
A ramp sets the size, weight, leading, and letter spacing of text together.
|
|
10145
|
+
\`[data-text]\` and the \`scale\` property of \`Text\` take the same nine ramps:
|
|
10146
|
+
|
|
10147
|
+
| Ramp | Size | Weight |
|
|
10148
|
+
| --- | --- | --- |
|
|
10149
|
+
| \`display\` | 42px | 600, in the display face |
|
|
10150
|
+
| \`heading\` | 32px | 600 |
|
|
10151
|
+
| \`subheading\` | 24px | 600 |
|
|
10152
|
+
| \`title\` | 18px | 600 |
|
|
10153
|
+
| \`body\` | 14px | 400 |
|
|
10154
|
+
| \`body-strong\` | 14px | 500 |
|
|
10155
|
+
| \`caption\` | 13px | 400 |
|
|
10156
|
+
| \`label\` | 12px | 500 |
|
|
10157
|
+
| \`code\` | 13px | 400, in the mono face |
|
|
10158
|
+
|
|
10159
|
+
\`Text\` maps each heading level onto a ramp, and so do the headings inside
|
|
10160
|
+
\`[data-prose]\`:
|
|
10161
|
+
|
|
10162
|
+
| Element | Ramp |
|
|
10163
|
+
| --- | --- |
|
|
10164
|
+
| \`h1\` | \`display\` |
|
|
10165
|
+
| \`h2\` | \`heading\` |
|
|
10166
|
+
| \`h3\` | \`subheading\` |
|
|
10167
|
+
| \`h4\` | \`title\` |
|
|
10168
|
+
| \`h5\` and \`h6\` | \`body-strong\` |
|
|
10169
|
+
|
|
10170
|
+
Set \`scale\` to choose a ramp yourself.
|
|
9685
10171
|
|
|
9686
10172
|
**On a touch screen, text you type is at least 16px.** iOS Safari zooms the
|
|
9687
10173
|
page into a focused input, textarea, or select whose text is smaller than
|
|
@@ -9741,12 +10227,45 @@ right. There is no separate \`Heading\` component, because \`as\` does that job.
|
|
|
9741
10227
|
\`\`\`
|
|
9742
10228
|
|
|
9743
10229
|
Put \`[data-prose]\` on the element that contains your text. Inside it, the token
|
|
9744
|
-
layer
|
|
10230
|
+
layer does the following:
|
|
10231
|
+
|
|
10232
|
+
- It sets the size, weight, and leading of each heading.
|
|
10233
|
+
- It ends each paragraph, list, quote, table, and block of code with one gap,
|
|
10234
|
+
\`--helix-space-sm\`.
|
|
10235
|
+
- It styles links and code.
|
|
10236
|
+
|
|
10237
|
+
**A heading takes no space of its own.** The space above a heading is the gap
|
|
10238
|
+
after the block before it, and the block after it starts on the next line. Set
|
|
10239
|
+
the space around headings in your own stylesheet:
|
|
10240
|
+
|
|
10241
|
+
\`\`\`css
|
|
10242
|
+
:where([data-prose] :is(h2, h3)) {
|
|
10243
|
+
margin-block: var(--helix-space-xl) var(--helix-space-sm);
|
|
10244
|
+
}
|
|
10245
|
+
\`\`\`
|
|
10246
|
+
|
|
10247
|
+
**Set a document for reading with \`data-prose="reading"\`.** The default size
|
|
10248
|
+
is 14px, which suits a reply in a chat bubble or a note in a panel. A
|
|
10249
|
+
documentation page or an article reads better larger:
|
|
10250
|
+
|
|
10251
|
+
\`\`\`html
|
|
10252
|
+
<article data-prose="reading">
|
|
10253
|
+
<h2>Install the connector</h2>
|
|
10254
|
+
<p>Text at 18px on a 27px line, about 70 characters wide.</p>
|
|
10255
|
+
</article>
|
|
10256
|
+
\`\`\`
|
|
10257
|
+
|
|
10258
|
+
\`reading\` makes the following changes:
|
|
10259
|
+
|
|
10260
|
+
- It sets the text at \`--helix-text-lg\`, on \`--helix-leading-normal\`.
|
|
10261
|
+
- It ends each block with \`--helix-space-md\`.
|
|
10262
|
+
- It stops paragraphs, lists, and quotes at 34em.
|
|
10263
|
+
- It sets a table at 16px, between \`md\` and \`lg\`.
|
|
9745
10264
|
|
|
9746
10265
|
For one-off text outside prose, use \`[data-text]\` to set the ramp:
|
|
9747
10266
|
|
|
9748
10267
|
\`\`\`html
|
|
9749
|
-
<span data-text="
|
|
10268
|
+
<span data-text="caption">Fine print</span>
|
|
9750
10269
|
\`\`\`
|
|
9751
10270
|
|
|
9752
10271
|
## Line height, letter spacing, and weight
|
|
@@ -9756,9 +10275,10 @@ For one-off text outside prose, use \`[data-text]\` to set the ramp:
|
|
|
9756
10275
|
| Token | Value | For |
|
|
9757
10276
|
| --- | --- | --- |
|
|
9758
10277
|
| \`--helix-leading-tight\` | \`1.2\` | Body text set close, for short lines. |
|
|
10278
|
+
| \`--helix-leading-snug\` | \`1.4\` | One line of small type on a plate, such as a chart label. |
|
|
9759
10279
|
| \`--helix-leading-normal\` | \`1.5\` | Body text. The default line height for a paragraph. |
|
|
9760
10280
|
| \`--helix-leading-loose\` | \`1.7\` | Body text set open, for long lines or small sizes. |
|
|
9761
|
-
| \`--helix-leading-heading\` | \`calc(0.99em + 0.5rem)\` | Headings, which need less line height than a paragraph. It is a length plus an em, so it tightens as the type grows. |
|
|
10281
|
+
| \`--helix-leading-heading\` | \`round(up, calc(0.99em + 0.5rem), 1px)\` | Headings, which need less line height than a paragraph. It is a length plus an em, so it tightens as the type grows. |
|
|
9762
10282
|
|
|
9763
10283
|
[//]: # (/tokens)
|
|
9764
10284
|
|
|
@@ -9783,6 +10303,10 @@ For one-off text outside prose, use \`[data-text]\` to set the ramp:
|
|
|
9783
10303
|
|
|
9784
10304
|
[//]: # (/tokens)
|
|
9785
10305
|
|
|
10306
|
+
Most text takes \`tight\`, \`normal\`, or \`loose\`. \`--helix-leading-snug\` is for
|
|
10307
|
+
one line of small type on a plate of its own, such as a Donut Chart's slice
|
|
10308
|
+
label, a Sparkline's reading, or a count in a Log line.
|
|
10309
|
+
|
|
9786
10310
|
**Headings have their own leading token.** At a paragraph's line height, a
|
|
9787
10311
|
heading looks loose at every size. The fix is not proportional, because larger
|
|
9788
10312
|
type needs less leading. \`--helix-leading-heading\` expresses that once, so no
|
|
@@ -10600,7 +11124,7 @@ smeared, and a filter behind an opaque ground cannot be seen. With no
|
|
|
10600
11124
|
| Value | What it draws |
|
|
10601
11125
|
|---|---|
|
|
10602
11126
|
| \`glass\` | A translucent ground and the backdrop filter that makes it read |
|
|
10603
|
-
| \`frosted\` |
|
|
11127
|
+
| \`frosted\` | A heavier ground under a heavier blur with no added saturation: 88% of the ground under a 32px blur, against glass's 72% in light under 16px. Every family draws \`glass\` at one coverage, a Dialog and a Drawer included, so \`frosted\` is heavier on all of them |
|
|
10604
11128
|
| \`transparent\` | Neither, so the page shows through structure and spacing |
|
|
10605
11129
|
|
|
10606
11130
|
Use \`frosted\` for a surface that has to stay readable over a busy page. A theme
|