Skip to content

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 init

This 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 --install

The 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.

SetupVersionsNotes
React18.3 and 19Both build and run.
Tailwind CSS3.4 and 4v4: add @source for the components folder. v3: add that folder to content in tailwind.config.
Vite6 and 7The setup used in the sample app.
Next.js15, App RouterEvery component has "use client", so a Server Component can render one directly.
React Router (the successor to Remix)7, server renderingRendered on the server and hydrated, with no hydration warnings.
Astro5As React islands, for example client:load.
Package managersnpm, pnpm, yarn, bunThe CLI detects yours from the lock file.
Node, for the CLI22 or newerYour 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>.