r/reactjs • u/mechiland • 5d ago
Show /r/reactjs I rebuilt Radix Themes' visual language on shadcn/ui + Base UI + Tailwind v4 (open static registry, zero @radix-ui/react-* deps
Many folks miss the cohesive look and 12-step color system of Radix Themes while moving new apps to Base UI (@base-ui/react) + Tailwind CSS v4 (especially now that shadcn/ui defaults new projects to Base UI).
with AI help I built radix-shadcn to combine both worlds: Radix Themes' design language and Radix Colors, running on official shadcn/ui Base UI components and distributed as a static shadcn registry.
- Live Theme Creator & Playground: https://radix-shadcn.dev/#create
- GitHub: https://github.com/mechiland/radix-shadcn
What's inside
- Zero
@radix-ui/react-*runtime dependencies: Only@radix-ui/colorsis kept; interactions, ARIA, and focus are handled by@base-ui/react@1.9.0. - Full token & variant mapping:
classic,solid,soft,surface,outline,ghostvariants, Radix sizes1–4, scaling, radii, and 12-step + alpha scales mapped to shadcn semantic tokens inside@layer components(so Tailwind utilities still override cleanly). - Scoped Portals: Nested
<Theme>blocks pass a local portal host via context so overlays don't lose local accent/dark mode tokens. - Tested against upstream Radix Themes: 45 component sections, 68 create pages, 531 scenes, plus ports of the 6
radix-ui.comhomepage showcases.
Quick install in a Base UI + Tailwind v4 project:
npx shadcn@4.23.0 add https://radix-shadcn.dev/r/radix-base.jsonWould appreciate feedback on the token mapping and Base UI API ergonomics!
0
Upvotes
1
u/Honey-Entire 4d ago
There you go, OP, I fixed that for you because clearly no human being would be this insane. 825 files changed with 100k LoC on the second commit? I needed a good chuckle this morning though 👏