Start
What React Plumber is
React Plumber finds where a React app on Tailwind v4 or plain CSS drifts from its design system, and lets you fix it from the page. It compiles your classes, stylesheets, @apply and inline styles with your own Tailwind, then judges the CSS that comes out against your tokens.
For spacing, radius and type, a value is on your tokens when it equals one of them exactly. If your spacing tokens are 8px and 16px, gap-[13px] is off, and Plumber offers both.
What it judges
Plumber judges values in seven families:
| Family | For example |
|---|---|
| Spacing | gap, padding, margin, inset |
| Colour | text, backgrounds, borders, fills |
| Radius | border radius |
| Type | font size, weight, line height, letter spacing |
| Motion | durations and easing |
| Elevation | shadows |
| Z-index | stacking |
It also checks habits your team writes down (such as "hover styles only apply on devices that can hover"), overrides that restyle a design-system component from outside, and imitations, which are hand-built copies of a component you already have. On the running page it checks craft, accessibility, wording and behaviour.
What it compares with
It compares values with the tokens in your theme. When a value is off, Plumber names the tokens that fit, along with the reasons written beside them, so you can choose by meaning as well as by distance.
What happens next
- In your terminal,
npx plumber checkreports what is wrong, why it matters and what to do. It doesn’t edit your code. - On your page, the overlay shows what any element is made of and writes the fix you pick to the source file.
- In CI, a ledger records the drift you already have and any exceptions you accept with a reason, so that only new drift fails a pull request.
To try it, follow the Quick start.