Dither / installation
Installation
Add the Dither registry to a shadcn project and install components.
Dither is distributed as a shadcn registry.
You need a React project with Tailwind CSS v4 and a components.json (run npx shadcn init if you don't have one).
1. Add the registry
The core primitives (Button, Input, Select, Tabs, Checkbox, Switch, Badge…) and the theme install without a code. Everything else (blocks, charts, AI blocks, moments, the dither) needs your access code. Put it in an environment variable (never in the repository):
DITHER_ACCESS_CODE=your-codeThen in components.json, send it as a bearer token:
{
"registries": {
"@dither": {
"url": "https://dither-design-system.vercel.app/r/{name}.json",
"headers": { "Authorization": "Bearer ${DITHER_ACCESS_CODE}" }
}
}
}Without the code, locked items answer 401.
2. Install the theme
The theme brings the tokens (tokens.css), the Tailwind mapping (theme.css) and the dither utilities.
npx shadcn add @dither/themeThe files land in styles/dither/. Import them in your global stylesheet, after Tailwind
(adjust the relative path to where your stylesheet lives):
@import "tailwindcss";
@import "tw-animate-css";
@import "../styles/dither/tokens.css";
@import "../styles/dither/theme.css";
@import "../styles/dither/scopes.css";
@import "../styles/dither/dither.css";
@import "../styles/dither/motion.css";
@import "../styles/dither/density.css";
@import "../styles/dither/inks.css";
@custom-variant dark (&:where(.dark, .dark *):not(:where(.light, .light *)));3. Fonts
Dither uses Manrope (text) and Geist Mono (data). With Next.js:
import { Geist_Mono, Manrope } from "next/font/google";
const manrope = Manrope({ subsets: ["latin"], variable: "--font-manrope" });
const geistMono = Geist_Mono({ subsets: ["latin"], weight: ["400", "500"], variable: "--font-geist-mono" });
// <html className={`${manrope.variable} ${geistMono.variable}`}>:root {
--dither-font-sans: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
--dither-font-heading: var(--font-manrope), ui-sans-serif, system-ui, sans-serif;
--dither-font-mono: var(--font-geist-mono), ui-monospace, monospace;
}4. Add components
npx shadcn add @dither/ditherComponents arrive in the next batches: Button, Input, Tabs, Card…