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.
Stack — vertical rhythm
Stacks children vertically with a consistent gap prop between them.
Inline — wrapping row
Lays items in a row that wraps, with an even gap prop in both directions.
Center — measure
Caps content width with the max prop and centers it horizontally — keeping line lengths readable.
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.


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.
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.
| Primitive | Prop | Data Attribute | Allowed Values (Default) |
|---|---|---|---|
VdBox (.vd-box) | as | — | keyof HTMLElementTagNameMap ("div") |
pad | data-pad | "0" | "fib-1" | "fib-2" | "fib-3" | "fib-5" | "fib-8" | "fib-13" | "fib-21" | "fib-34" | "fib-55" ("fib-8") | |
bg | data-bg | "primary" | "secondary" | "tertiary" | "dark" | "darker" | |
round | data-round | "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | |
border | data-border | boolean (false) | |
VdStack (.vd-stack) | as | — | keyof HTMLElementTagNameMap ("div") |
gap | data-gap | "0" | "fib-1" … "fib-55" ("fib-8") | |
align | data-align | "start" | "center" | "end" | "stretch" | |
VdInline (.vd-inline) | as | — | keyof HTMLElementTagNameMap ("div") |
gap | data-gap | "0" | "fib-1" … "fib-55" ("fib-5") | |
align | data-align | "start" | "center" | "end" | "baseline" | "stretch" | |
justify | data-justify | "start" | "center" | "end" | "between" | "around" | "evenly" | |
wrap | data-wrap | "nowrap" | |
VdCenter (.vd-center) | as | — | keyof HTMLElementTagNameMap ("div") |
max | data-max | "fib-377" | "fib-610" | "fib-987" ("fib-610") | |
axis | data-axis | "both" | "horizontal" | "vertical" | |
VdCover (.vd-cover) | as | — | keyof HTMLElementTagNameMap ("div") |
min | data-min | "screen" | "half" | "fib-610" | "fib-987" ("fib-610") | |
gap | data-gap | "fib-3" | "fib-5" | "fib-8" | "fib-13" | "fib-21" | "fib-34" | |
VdFrame (.vd-frame) | as | — | keyof HTMLElementTagNameMap ("div") |
ratio | data-ratio | "golden" | "golden-portrait" | "square" | "16-9" | "4-3" | "3-2" | "21-9" ("golden") | |
VdSwitcher (.vd-switcher) | as | — | keyof HTMLElementTagNameMap ("div") |
threshold | data-threshold | "fib-377" | "fib-610" | "fib-987" ("fib-610") | |
gap | data-gap | "fib-3" | "fib-5" | "fib-8" | "fib-13" | "fib-21" | "fib-34" ("fib-5") |