Zazz Design Framework
A web-native ui library
Zazz is a CSS and vanilla JavaScript UI kit that does not require a build step. It uses semantic design tokens, cascade layers, data-* variants, and browser APIs such as popover, dialog, and anchor positioning.
Examples
How it works
- No build step
- Zazz runs on CSS and standard browser APIs without required bundlers or frameworks.
- Cascade layers
- Later layers override earlier ones regardless of selector specificity, so utilities beat component rules without !important.
- Design tokens
- Values are CSS custom properties on :root. Components read var(--token), so updating a variable restyles the UI.
- Data attributes
- Variants use attributes like data-variant="primary" instead of modifier classes. Omitting the attribute renders the default.
Install
pnpm add @zazz-ui/coreimport "@zazz-ui/core/index.css"; // all styles, imported in cascade orderimport "@zazz-ui/core"; // custom elements and shared behaviors