@fusion.dev/helix-docs 0.247.0 → 0.248.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.
@@ -0,0 +1,100 @@
1
+ ---
2
+ description: The eight principles every Helix component follows, and the rules Helix names its components by.
3
+ pinned: true
4
+ section: Foundations
5
+ title: How Helix is designed
6
+ ---
7
+
8
+ # How Helix is designed
9
+
10
+ Every Helix component follows the eight principles on this page. Each one is
11
+ true in the code today, and each links to the page that goes deeper. The rules
12
+ Helix names its components by close the page.
13
+
14
+ ## Helix behaves like the platform
15
+
16
+ Helix builds on native elements, the top layer, and form participation, and a
17
+ component keeps its state the way an input keeps its value. A Helix select
18
+ submits with its form, as a `<select>` does.
19
+
20
+ Read more in [Using the elements](./using-the-elements) and
21
+ [Forms and validation](./forms).
22
+
23
+ ## Behavior and look are separate tiers
24
+
25
+ The headless tier holds structure, accessibility, and state. The styled tier
26
+ adds the look and nothing else, so you can replace the look and keep every
27
+ behavior.
28
+
29
+ Read more in [Tiers](./tiers).
30
+
31
+ ## A component varies along named axes
32
+
33
+ Helix has nine axes, each one word for one question, and every family uses the
34
+ same words. Once you know `tone` on Button, you know it on Callout.
35
+
36
+ Read more in [Visual axes](./visual-axes).
37
+
38
+ ## The theme is computed and measured
39
+
40
+ You give Helix a brand color, and it computes every token and checks the
41
+ contrast of each pair. A pair that misses its target is reported.
42
+
43
+ Read more in [Deriving a theme](./theming).
44
+
45
+ ## Your page owns its content and its decisions
46
+
47
+ Content arrives through slots. A component reports a change and leaves the
48
+ decision to your code: a Tag sends `helix-dismiss` when you press its remove
49
+ button, and your code removes the tag.
50
+
51
+ Read more in [Composition](./composition) and
52
+ [State and control](./state-and-control).
53
+
54
+ ## One component serves every screen
55
+
56
+ A component works the same at 390 pixels as at 1440. A Menu's submenu replaces
57
+ the panel it opens from, so a menu three levels deep still fits a phone.
58
+
59
+ Read more in [Overlays](./overlays).
60
+
61
+ ## People and agents read one description
62
+
63
+ The manifest describes every component. The reference pages, the framework
64
+ typings, the `helix api` commands, and the MCP server are written from it, so a
65
+ coding agent reads the same guidance you read.
66
+
67
+ Read more in [Using Helix with an agent](./using-helix-with-an-agent).
68
+
69
+ ## The rules are checked
70
+
71
+ `helix component` checks the axes, the part and slot vocabulary, and the
72
+ guidance on every family, so a rule holds without a reviewer remembering it.
73
+
74
+ Read more in [Diagnostics](./diagnostics).
75
+
76
+ ## Naming
77
+
78
+ Helix names its components by six rules, applied in order.
79
+
80
+ 1. **The platform's name comes first.** Where HTML has the element, the family
81
+ takes its name: Dialog, Select, Blockquote, and Quote. If you know HTML, you
82
+ already know the word.
83
+ 2. **Otherwise, the plain word for what you see.** Tag, Badge, Callout, and
84
+ Drawer. Other systems' words are the family's aliases, so a search for
85
+ "Chip" or "Modal" still finds it.
86
+ 3. **A namespace means composition.** `Tabs.Tab` lives inside Tabs. An
87
+ icon-only button is no part of Button, so Icon Button is a family of its own.
88
+ 4. **A variation is a property, and an alternative is a family.** Two
89
+ components that do different jobs have two names, even when they look alike.
90
+ 5. **A property is named for the question it answers.** `emphasis` is weight
91
+ and `tone` is meaning. A choice outside the axes is named for what it
92
+ chooses, such as `marker` or `layout`. No property is named `variant` or
93
+ `appearance`.
94
+ 6. **Words for a position are shared, and words for a thing belong to the
95
+ family.** Every family calls a floating panel `surface`, and the region at
96
+ the top of a component `header`. A thumb or a swatch is the family's own.
97
+
98
+ Each family page lists its aliases under its summary as "Also called". Where
99
+ two families answer to one word, each one's guidelines name the other: Drawer
100
+ and Dialog are both called "Sheet", and each page says when to use the other.