domestic-ui GitHub

Cluster

An inline group that wraps onto new lines (buttons, tags, nav links).

Where a cluster is used A cluster is a row of buttons, tags or nav links under a heading that wraps onto a second line when the row is full.

Live example

Cluster

<ul class="cluster">
  <li><code>reset</code></li>
  <li><code>tokens</code></li>
  <li><code>base</code></li>
  <li><code>layout</code></li>
  <li><code>components</code></li>
  <li><code>utilities</code></li>
</ul>

API

Attribute or valueEffect
class="cluster"
--cluster-gapspace between items (default: var(--dui-space-s))
--cluster-justifyjustify-content value (default: flex-start)
--cluster-alignalign-items value (default: center)

Pattern: "The Cluster", Every Layout, built with flex-wrap and gap.

The custom properties do not inherit, so nested clusters keep their defaults.

Specifications

See also

How other systems do it

For comparison only; these are not the standard this system follows.

  • Apple Human Interface Guidelines: No equivalent
  • Material Design 3: No equivalent
  • Vercel Geist: No equivalent

Search