r/reactjs • • 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.

What's inside

  • Zero @radix-ui/react-* runtime dependencies: Only @radix-ui/colors is kept; interactions, ARIA, and focus are handled by @base-ui/react@1.9.0.
  • Full token & variant mapping: classic, solid, soft, surface, outline, ghost variants, Radix sizes 1–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.com homepage showcases.

Quick install in a Base UI + Tailwind v4 project:

npx shadcn@4.23.0 add https://radix-shadcn.dev/r/radix-base.json

Would appreciate feedback on the token mapping and Base UI API ergonomics!

0 Upvotes

4 comments sorted by

1

u/Honey-Entire 4d ago

AI built radix-shadcn to combine both worlds

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 👏

0

u/mechiland 4d ago

😂

Yeah who doesn't need AI for this kind of mechanical work...

I should simply remove "I" from the the title but seems reddit don't allow.

1

u/Honey-Entire 4d ago

The mechanical work of building something thousands of other developers have already done by hand but you decided to join the cohort of AI prompters who recreate what already exists without bringing anything new, novel, or meaningful to the table?

Maybe next time you’ll participate in the time-honored tradition of contributing to existing projects and making them better rather than become one more AI-hack in an ocean of people wasting money on tokens. Try adding value to the community before generating a slop-copy of things that already exists ✌️

0

u/mechiland 4d ago

Hey, fair enough, I get the skepticism! I hate AI slop too, and I did my homework before building this. If anything like this had already existed, I wouldn't have built my own. I made it for my own projects because I've wanted the Radix Themes look on the shadcn tech stack for a long time.

The repo name probably makes it sound redundant since there are some similar projects. What I actually ported here is Radix Themes (@radix-ui/themes) - the classic/surface/soft variants, 12-step color scales, and scoped Theme portals - onto shadcn's Base UI + Tailwind v4 stack as copy-pasteable source code. Just sharing in case anyone else wanted that specific combo.