Introduction
A variables-driven design framework that runs in any design tool and development framework with or without a build step.
Zazz is a variables-driven design framework built on native web standards: tokens, cascade layers, and browser APIs. It requires no build step, avoids framework lock-in, and eliminates selector specificity conflicts.
Principles
- Tool-agnostic: Shared tokens and structures work across Figma, HTML, and web frameworks.
- Precision: Spacing, color, radius, and typography resolve from CSS variables on
:root. - Defaults: Ready-to-use component styling with built-in light and dark theme support.
- Standards-based: Uses native HTML elements and CSS features (Popover,
<dialog>, Invoker Commands,@layer, and container queries).
Architecture
- Tokens: Semantic variables (
--primary,--muted-foreground,--gap-md) control the theme. - Cascade layers: Later layers (
utilities) cleanly override earlier layers (components) without!important. - Data attributes: Variants use attributes like
data-variant="primary"anddata-size="sm"instead of modifier classes. - Fluid scales: Fluid
clamp()typography and spacing scale with the viewport without breakpoint jumps.