Primitives

Primitives are unstyled, single-responsibility layout containers. They express an intent — vertical rhythm, a wrapping row, a centered column — instead of one CSS property, and sit between utilities and components: tokens → (utilities | primitives) → components. Every primitive consumes the same Fibonacci spacing tokens, so layouts stay in proportion. Configure each through its Vue props — pad, gap, max, min, ratio, threshold.

Box — padding & surface

A blank surface with Fibonacci padding via the pad prop.

Padded surface
Stack — vertical rhythm

Stacks children vertically with a consistent gap prop between them.

First
Second
Third
Inline — wrapping row

Lays items in a row that wraps, with an even gap prop in both directions.

VueCSSTokensFibonacci
Center — measure

Caps content width with the max prop and centers it horizontally — keeping line lengths readable.

A centered column constrained to a readable measure.
Cover — fill & center

Fills a minimum height (the min prop) and centers its content vertically — ideal for heroes. Shown shorter here for space.

Vertically centered content

Frame — aspect ratio

Locks media to an aspect ratio with the ratio prop and crops to fit — no layout shift.

Mountains in fog
Pine forest boardwalk
Switcher — auto row/stack

Lays children in a row, then flips them to a stack once the container drops below the threshold prop — responsive with no media query. Resize the window to see it switch.

One
Two
Three
Props & Data Attributes

Every primitive accepts as (default "div") for the rendered HTML tag and stamps its props onto matching data-* attributes so the same CSS rules power both Vue components and static markup.

PrimitivePropData AttributeAllowed Values (Default)
VdBox (.vd-box)as—keyof HTMLElementTagNameMap ("div")
paddata-pad"0" | "fib-1" | "fib-2" | "fib-3" | "fib-5" | "fib-8" | "fib-13" | "fib-21" | "fib-34" | "fib-55" ("fib-8")
bgdata-bg"primary" | "secondary" | "tertiary" | "dark" | "darker"
rounddata-round"none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full"
borderdata-borderboolean (false)
VdStack (.vd-stack) as—keyof HTMLElementTagNameMap ("div")
gapdata-gap"0" | "fib-1" … "fib-55" ("fib-8")
aligndata-align"start" | "center" | "end" | "stretch"
VdInline (.vd-inline) as—keyof HTMLElementTagNameMap ("div")
gapdata-gap"0" | "fib-1" … "fib-55" ("fib-5")
aligndata-align"start" | "center" | "end" | "baseline" | "stretch"
justifydata-justify"start" | "center" | "end" | "between" | "around" | "evenly"
wrapdata-wrap"nowrap"
VdCenter (.vd-center) as—keyof HTMLElementTagNameMap ("div")
maxdata-max"fib-377" | "fib-610" | "fib-987" ("fib-610")
axisdata-axis"both" | "horizontal" | "vertical"
VdCover (.vd-cover) as—keyof HTMLElementTagNameMap ("div")
mindata-min"screen" | "half" | "fib-610" | "fib-987" ("fib-610")
gapdata-gap"fib-3" | "fib-5" | "fib-8" | "fib-13" | "fib-21" | "fib-34"
VdFrame (.vd-frame) as—keyof HTMLElementTagNameMap ("div")
ratiodata-ratio"golden" | "golden-portrait" | "square" | "16-9" | "4-3" | "3-2" | "21-9" ("golden")
VdSwitcher (.vd-switcher) as—keyof HTMLElementTagNameMap ("div")
thresholddata-threshold"fib-377" | "fib-610" | "fib-987" ("fib-610")
gapdata-gap"fib-3" | "fib-5" | "fib-8" | "fib-13" | "fib-21" | "fib-34" ("fib-5")