Diorama UI
Design tokens, React components and the tooling that keeps every app in sync. You install it as source and own it from there.
Components ·
Docs ·
Quick start ·
Agents ·
Changelog ·
Contributing
[!NOTE]
Diorama UI is in active development. The tokens, 60 components and the
first three blocks ship today, and a real app consumes them. APIs can still
change. PLAN.md tracks what is done and what is open.
Why this exists
- You own the source. You install a component and its code is yours from
that point on. There are no wrapper layers and no upgrades to chase.
(ADR 0001)
- The design is our own. No third-party design language, block set or
theme preset is copied in. Base UI supplies accessible behaviour under some
components, and nothing of its look.
(ADR 0002)
- Drift is tracked. A lockfile records what you installed.
sync then
tells a deliberate fork apart from a stale copy, and lists the changes that
apply to you.
- Measured. Contrast is computed from the token resolver in both colour
schemes. Every story runs through axe, and every component is compared
against visual baselines with zero tolerated pixels.
(what CI enforces)
- Agent-ready. The library ships
AGENTS.md, a plugin of ten
skills and a Markdown reference for every component.
Quick start
You need a React app with Tailwind CSS v4 and an @/* alias that points to
your source directory.
-
Install the theme, the font and a component. The CLI writes the source
into your app, records what it installed and lists the npm packages you
still need to add.
npx @bydiorama/ui init --src src
npx @bydiorama/ui add theme-zero-css font-aspekta button
-
Load the theme once, after Tailwind, from src/styles/theme-zero.css.
Link /fonts/aspekta/aspekta.css in your page as well.
@import "tailwindcss";
@import "./theme-zero.css";
-
Use it. The code is yours to read and change.
import { Button } from "@/ui/button";
<Button variant="primary" size="md">
Save changes
</Button>;
-
Stay in sync. sync reports what changed upstream, item by item, and
leaves your edits alone.
npx @bydiorama/ui sync
The guides cover the rest:
| Guide | What it covers |
|---|
| Installing components | The CLI, the shadcn-compatible alternative, installing from a checkout, GitHub API limits |
| Tokens and themes | Theme zero, how Tailwind finds the installed source, generating a brand theme from a seed |
| Dense screens | Compact mode with one attribute, and what it changes in each control |
| Lint the boundaries | The ESLint preset that holds your app to the library's import rules, and checking a screen against its design |
| CLI reference | Every command and flag, and the full drift model |
What's inside