Skip to content
The Membrane Palette
Contentstable

Divider

A fading hairline between sections — or a full-width solid rule inside panels. Prefer whitespace first.

Examples

Fading and full

Section one


Section two


Section three

HTML for “Fading and full”
<div>
  <p class="type-small">Section one</p>
  <hr class="mp-divider" data-size="sm">
  <p class="type-small">Section two</p>
  <hr class="mp-divider" data-variant="full" data-size="sm">
  <p class="type-small">Section three</p>
</div>

Guidance

The system prefers generous spacing (--space-16–--space-24) over visible lines. When a line genuinely helps, the default divider fades at both ends and stays within --container-sm, which reads as intentional rather than utilitarian.

data-size sets the vertical space around the rule: sm → --space-8, default → --space-16, lg → --space-24.

Accessibility

  • <hr> is announced as a separator — use it for thematic breaks. For purely visual lines use a <div class="mp-divider" role="presentation">.

API

Divider classes
ClassKind
.mp-dividerroot
Divider attributes
AttributeValues
data-sizesm · lg
data-variantfull
Divider component tokens
TokenDefaultLight · dark
--mp-divider-spacevar(--space-16)—

Design tokens consumed: --border-width-thin --color-border-default --container-sm --gradient-divider --space-16 --space-24 --space-8

Source