For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
43
Sponsor

Introduction

Copy-paste UI components for React. Styled with StyleX on Base UI, works with the shadcn CLI.

shadcn-cssinjs provides beautifully designed, accessible, and customizable UI components. Styled with StyleX on top of Base UI primitives, and designed to work seamlessly with the shadcn CLI.

Philosophy

shadcn-cssinjs follows the shadcn model for CSS-in-JS: copy-paste components you can own, with zero lock-in and sensible defaults that work immediately.

Most shadcn setups assume Tailwind. That works well — until your team wants colocated, type-safe styles that compile to atomic CSS at build time. shadcn-cssinjs takes a different approach. It keeps the familiar component API, styles with StyleX instead of utility classes, and builds on Base UI so you can drop down to the primitives whenever you need more control.

The goal is simple: make StyleX-styled components feel like the rest of your stack — composable, themeable, accessible, and easy to customize.

Why shadcn-cssinjs?

Most CSS-in-JS component setups are either too opinionated or too scattered. shadcn-cssinjs is built for teams that want to ship quickly without giving up control:

  • Own Your Code: Copy the components into your project and customize everything.
  • Start Fast: Run one command and get production-ready defaults with StyleX and Base UI.
  • Scale Safely: Stay close to StyleX and Base UI primitives, then drop to raw APIs when needed.

Features

Zero Config
Works out of the box with sensible defaults. No boilerplate needed.
Theme Aware
Automatically adapts to your CSS variables and light/dark theme.
Composable
Build complex UIs with simple, declarative components.
TypeScript
Full type safety with comprehensive TypeScript support.
Copy & Paste
Own your code. No runtime dependencies, just install into your project.
shadcn Compatible
Uses the same registry format — add components with npx shadcn add.