@fusion.dev/helix-docs 0.232.0 → 0.233.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/iconography.mdx +8 -8
- package/content/metrics.mdx +253 -253
- package/dist/sources.generated.js +261 -261
- package/package.json +12 -12
package/content/iconography.mdx
CHANGED
|
@@ -10,10 +10,10 @@ title: Iconography
|
|
|
10
10
|
<helix-icon name="trash"></helix-icon>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Helix
|
|
14
|
-
Phosphor's bold weight. We keep Phosphor's own geometry. Rescaling to a
|
|
15
|
-
would change the optical weight of every glyph, and the set would stop
|
|
16
|
-
Phosphor. We use the bold weight because Phosphor's regular weight is a
|
|
13
|
+
Helix draws its glyphs from Phosphor, plus a few marks of its own, on a 256
|
|
14
|
+
box at Phosphor's bold weight. We keep Phosphor's own geometry. Rescaling to a
|
|
15
|
+
24 box would change the optical weight of every glyph, and the set would stop
|
|
16
|
+
matching Phosphor. We use the bold weight because Phosphor's regular weight is a
|
|
17
17
|
hairline beside the medium weight of Helix text. An icon that looks lighter than
|
|
18
18
|
the words next to it does not work as a mark.
|
|
19
19
|
|
|
@@ -23,8 +23,8 @@ the words next to it does not work as a mark.
|
|
|
23
23
|
import '@fusion.dev/helix/icon'
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
The Icon entry registers
|
|
27
|
-
|
|
26
|
+
The Icon entry registers every glyph in the set by name, so `name` draws any
|
|
27
|
+
glyph. `@fusion.dev/helix/icon/all` is the same entry and registers the same
|
|
28
28
|
set.
|
|
29
29
|
|
|
30
30
|
## Size and color come from the surrounding text
|
|
@@ -100,8 +100,8 @@ both are set, `icon` wins.
|
|
|
100
100
|
|
|
101
101
|
`icon` also keeps your bundle small. `name` looks up glyphs in an index of the
|
|
102
102
|
whole set, and no bundler can tree-shake that index. If you render one icon by
|
|
103
|
-
`name`, you ship the whole set:
|
|
104
|
-
ship only the glyph you import.
|
|
103
|
+
`name`, you ship the whole set: 25 kB gzipped, measured November 5, 2026. With
|
|
104
|
+
`icon`, you ship only the glyph you import.
|
|
105
105
|
|
|
106
106
|
`icon` also draws glyphs from outside this set. Anything that exports the same
|
|
107
107
|
shape works:
|