Introduction
A design system built on a role scale. The source is copied into your project.
tdpxl is two things that hold each other up.
A token system organised by role rather than by color. A component writes
text-sub-600, never text-gray-600, so the day the palette changes there is
nothing to go looking for. It is explained in Tokens.
A registry that distributes that system. It is not an npm library: the CLI fetches a JSON document and writes the source into your repository. From that point the file is yours.
What is in the box
- Tailwind v4 with no config file. The tokens live in CSS.
- Radix UI for the accessible behaviour of the primitives.
- cva for variants,
cn()for merging classes without conflicts. - A registry served as static JSON, installed with
npx @tdpxl/cli add.
Why a registry instead of a package
A package gives you an API. A registry gives you the code. The difference shows up the day you need to change something internal: with a package you open an issue, with a registry you open the file.
The cost is real and worth stating: updates do not arrive on their own. If a bug
is fixed in the registry, projects that already copied the component keep their
copy until they run npx @tdpxl/cli diff to see what changed and
npx @tdpxl/cli update to bring it in without losing their own edits.
Where to start
- Installation — set up Next.js or Vite and add your first component.
- Using components — how to choose, install, read and adapt a component.
- Tokens and Theming — the role scale, and how to make it yours.
- CLI — every command, flag and what it does to your files.
- AI agents — the guidance and tools a coding agent reads.
- Registry — how items are built, and hosting your own.
To browse what exists, use the component gallery, the charts and the blocks.