Divider 1.2.2
Use .velin-divider for horizontal rules, with text labels, vertical orientation,
and colour/size variants. Deutsch: Trenner
Maturity: Documented as stable in VelinStyle 1.2.0. Design Intelligence (plan / review / agent meta) is separate and beta / foundation where noted.
When to use
- Visual separation between content blocks with the documented divider pattern.
- When a subtle rule is enough and you do not need a full card or section chrome.
When not
- Semantic sectioning — prefer real headings and landmarks over dividers alone.
- Interactive split panes or drawers — use layout/overlay components instead.
Basic Example
Content above
Content below
<hr class="velin-divider">
With Text
OR
<div class="velin-divider velin-divider--text">OR</div>
Vertical
Left
Right
<span>Left</span>
<span class="velin-divider velin-divider--vertical"></span>
<span>Right</span>
Sizes & Colours
<hr class="velin-divider velin-divider--sm">
<hr class="velin-divider velin-divider--lg">
<hr class="velin-divider velin-divider--thick velin-divider--primary">
Accessibility
- Use
<hr>for semantic separators — it carries an implicitrole="separator". - For decorative dividers, use
<div role="none">instead.
CSS Variables
| Variable | Description |
|---|---|
--velin-color-border | Default line colour |
--velin-color-border-strong | Strong variant |
--velin-color-primary | Primary variant |
--velin-space-3 | Small spacing |
--velin-space-6 | Default spacing |
--velin-space-10 | Large spacing |