Repo
ZUI

A CSS-first UI library that's fully themeable and agent ready

Browse 22 accessible components, tune every token to match your brand, and ship with zero JS runtime — pick a starting point and go. Optional React, Astro, Solid, Svelte & Vue wrappers included.

npm install @mrmartineau/zui
or try it on CodePen

Explore

Pick a starting point

Everything in ZUI is built from the same three ingredients: components, a theme, and the tokens beneath them. Start wherever suits your project.

Component library

Real components, rendered live

Nothing on this page is a screenshot. Every control below is the shipped CSS, running in your colour scheme — try the tabs.

Buttons
Badges
DefaultFillOutlineGreenRedAmber
Tabs
Form controls
Card
Notification settings
Choose what you want to be notified about.
Inline pieces
ZMKEscv1.6.2Popover API + CSS anchor positioning
Browse all 22 components

Theming

One theme file, infinite looks

Every ZUI component reads from a small set of semantic custom properties. Override that :root block and the whole UI transforms—colours, typography, radius, and borders all follow. Same markup, five very different personalities — try one on this very site:

Explore the theming showcase

AI tooling

Built for people — and their agents

Design systems are increasingly consumed by coding agents, not just humans. ZUI ships the tooling both need: a skill that teaches assistants the real class names and tokens, and a CLI that copies the source straight into your project.

Principles

Why ZUI

CSS-first

Standard CSS with @layer for clean cascade control. Custom properties for full configurability. Import and go—no build step, no JS runtime.

Framework wrappers

Use plain CSS classes anywhere, or reach for typed React, Astro, Solid, Svelte, and Vue component wrappers that map props to the underlying class API.

Themeable in seconds

Override semantic colours, fonts, and border radii through one theme.css file. Supports light-dark() colour schemes natively.

See it in action

Design tokens

A comprehensive token system—colours, spacing, type scale, shadows, radii, easing, z-index—all exposed as CSS custom properties.

Layered architecture

Base, component, and utility layers keep specificity predictable. Override anything without !important hacks.

Modern CSS

Built on oklch(), relative colour syntax, light-dark(), and container queries. Designed for how CSS works today.

Quick start

Up and running in three steps

1

Install

npm install @mrmartineau/zui
2

Import

@import '@mrmartineau/zui/css';
3

Use

<button class="zui-button">Click me</button>

Theme

Copy this CSS to your project: