Get Started
Installation
The library needs React 19 and Tailwind CSS v4. The tokens are a Tailwind theme. Utilities you already write resolve to the same values the components use.
Install the package
Add the stylesheet
Import it once at the top of your global stylesheet. It brings in Tailwind and the tokens. You do not need a separate @import "tailwindcss" line or a Tailwind config file.
CSS
The @source line is relative to the file it sits in and tells Tailwind where your class names live. The library already covers its own files.
Framework setup
The package ships TypeScript source. Whatever compiles your app has to compile the library too. In Next.js that is one line. Vite and other bundlers that read source need nothing.
next.config.ts
Fonts
Optional. The type tokens point at --font-geist-sans and --font-geist-mono and fall back to the system stack when those are not set.
app/layout.tsx
Themes
Dark is the default. Light is the override.
TypeScript
Check it worked
app/page.tsx
A button with no colour means the stylesheet has not been picked up. An app styled everywhere except inside the library means the @source line points somewhere your files are not.
Copying a file instead
Every component is a single file. It needs itself, the token sheet and the class merging helper.
Files
Last updated: 12 August 2026