Getting started
Add rdloom to a React 19 app with Tailwind CSS v4. It takes about two minutes.
1. Set up the project
npx rdloom initThis writes rdloom.json, copies the design tokens to src/styles/rdloom-tokens.css and adds a few shared utilities.
2. Import the tokens and point Tailwind at the components
/* src/index.css */
@import "tailwindcss";
@import "./styles/rdloom-tokens.css";
@source "./components/rdloom";3. Add components
npx rdloom add button date-range-picker data-grid --installThe source lands in src/components/rdloom/. --install also installs the npm packages they need. Then import them like any of your own files:
import { Button } from "./components/rdloom/button/button";
export function Save() {
return <Button onPress={() => save()}>Save</Button>;
}4. Commit the lock file
Commit rdloom.json, rdloom.lock.json and the .rdloom/ folder. They record what was shipped, which is what lets upgrades merge into your edits.
Works with
Each row below was checked by installing the packed package into a fresh app and building it. Next.js and Vite are rebuilt on every change in our own test runs; the others were checked by hand for a release, so tell us if one breaks.
| Setup | Versions | Notes |
|---|---|---|
| React | 18.3 and 19 | Both build and run. |
| Tailwind CSS | 3.4 and 4 | v4: add @source for the components folder. v3: add that folder to content in tailwind.config. |
| Vite | 6 and 7 | The setup used in the sample app. |
| Next.js | 15, App Router | Every component has "use client", so a Server Component can render one directly. |
| React Router (the successor to Remix) | 7, server rendering | Rendered on the server and hydrated, with no hydration warnings. |
| Astro | 5 | As React islands, for example client:load. |
| Package managers | npm, pnpm, yarn, bun | The CLI detects yours from the lock file. |
| Node, for the CLI | 22 or newer | Your app can run on any Node that its framework supports. |
Not checked yet: monorepos with several apps sharing one components folder, and React Native.
Dark mode
The tokens follow prefers-color-scheme. To force a theme, set data-theme="light" or data-theme="dark" on <html>.