Horizontal layout
Width, columns, flow across the screen. LSD ships this as
.lsd-grid (auto-fit responsive) and
.lsd-grid--Ncol (fixed columns) with
.lsd-col-N spans.
LSD treats every element as having a position in 3D space and a mass. Layout flows from physical intuition. Motion, depth, and color compose under a coherent theory — not a pile of utility classes.
Every other framework models X and Y. LSD adds Z — depth — as a first-class layout axis with its own utilities, tokens, and motion language.
Width, columns, flow across the screen. LSD ships this as
.lsd-grid (auto-fit responsive) and
.lsd-grid--Ncol (fixed columns) with
.lsd-col-N spans.
Height, stacking order, vertical rhythm.
.lsd-stack composes flex-column + token-driven gap;
section spacing tokens (--lsd-section-y-*) carry the
cadence down the page.
Elevation tier, stacking order, shadow, scale, mass. This is
LSD's third axis — no other framework models it. Covered by
.lsd-z-*, the Surface Generator, and Orion
pattern-matching.
Mass is a composite score LSD derives from tier, scale, size, content density, and shadow depth. Heavier masses reshape the gravity field around them — lighter siblings yield.
A tier-3 card with scale 1.08 and dense content might measure Mass: 68. A tier-0 text paragraph with light copy: Mass: 12. Hover the heavy card below — its neighbours yield to its field.
Higher tier = larger visual scale = more perceived presence. Defaults are 1.0 (opt-in). Brands with tight grids keep it subtle; showcase brands push it bold.
Drag the slider — watch this card grow and its shadow deepen.
Gravity pulls every element toward its rest altitude. Lift (hover) moves it up; release drops it back. Mass determines how resistant an element is to motion; heavy elements reshape the field around themselves.
Sits at rest. No shadow. Hover does nothing — the ground can't lift further.
Hover raises to tier 1. Shadow grows. Settles on release.
Ignores the flow. Drifts slowly. Above ambient layout noise.
No gravity at all. Translucent, above everything — toasts, HUDs.
LSD treats a palette as a constellation — not a flat list, but a relationship topology in OKLCH space. Orion is the engine that preserves constellation shape when any swatch is edited.
One vocabulary runs through the stack. Galaxy is the color space. Nebula wraps it with semantic axes. Constellation names the palette's shape. Orion preserves that shape. Aurora is motion through time; Gravity is motion through depth; Mass determines how they interact.
The 3D color space LSD addresses. Standards-based. Perceptually uniform.
Wraps OKLCH with temperature, role, motion, and contrast metadata.
Relationship topology — triadic, split-comp, analogous. Not a list.
Preserves constellation shape when any swatch is edited.
The animation + gradient layer. Easing, duration, rhythm.
The Z-axis. Altitude, lift, release, yield.
Derived from tier, scale, size, density. Governs interaction.
Backgrounds, borders, and shadows derived from the same tokens.
LSD's advantage is not a feature count. It's a coherent theory where every design decision maps to a physical intuition. Color has depth. Elements have weight. Motion obeys gravity. The framework encodes the physics; authors reach for one class and the rest follows.
Download the framework, browse the motion library, or open the editor and compose live.