Components
Rule
The 1px line that holds every Aurora layout together. It replaces shadows, dividers and boxes, and it is the only element allowed to carry light outside a control.
Overview
Variants
| Variant | Use for |
|---|---|
| hairline | Between rows, under headers, around cards. The default for everything. |
| strong | Separating groups, the top of a table, hover edges. |
| light | Open time only. See Gap. |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'hairline' | 'strong' | 'light' | 'hairline' | Weight and meaning. |
| animate | boolean | false | Draw the rule in from the left on mount, over 1.4s. |
Tokens
| Token | Value | Used for |
|---|---|---|
| --au-stroke-hairline | 1px | The only stroke weight in the system. |
| --au-border-hairline | → night.750 · #1E2024 | Default 1px structure. |
| --au-border-strong | → night.700 · #2A2D33 | Hover, and controls that need a visible edge. |
| --au-light-lo | → aurora.mint · #7FD9C0 | Start of the aurora. |
| --au-light-hi | → aurora.violet · #A78BE0 | End of the aurora. |
| --au-dur-reveal | 1400ms |
Code
<Rule />
<Rule variant="strong" />
<Rule variant="light" animate />