cluster
Installation
SKILL.md
Cluster & Filler — Layout Primitives
Cluster and Filler are the primary layout primitives in this design system. They replace Cards, justify-between, and any opaque wrapper pattern.
Core Rules
- Clusters are always transparent — they never render a background. The
bgprop sets a CSS variable (--cluster-bg) that direct children inherit via a zero-specificity@layer baserule. - Every direct child of a Cluster must be a solid element — it should have its own visual identity (background color, etc.). Never place bare text or icons as direct Cluster children.
- No borders, no rounded corners — borders are almost never used in this design system. The only exception is the outline button variant. The theme radius is
0rem— never addrounded-*classes to layout elements. Clusters, Fillers, inputs, and all layout elements rely on background color contrast and spacing for visual separation, not border lines or rounded shapes. Never addborderorrounded-*to Cluster children, Fillers, or layout wrappers. - Use
<Filler />for space distribution — never usejustify-between,justify-end, orjustify-around. Filler is an invisibleflex-1spacer witharia-hidden="true". - Children can override the inherited bg — since the inheritance rule uses
:where()(zero specificity) inside@layer base, anybg-*utility on a child wins naturally.
Import
import { Cluster, Filler } from '@/components/ui/cluster'