@component-core/ui
v0.2.0
Published
House design-system base: token-driven, Radix-backed shadcn components with a 3-tier DTCG token graph. The neutral foundation that projects seed, theme, and instance from.
Readme
@component-core/ui
The generic design-system base: token-driven, Radix-backed shadcn components with a 3-tier DTCG token graph (primitive → semantic → component). The neutral foundation that products seed, theme, and instance from.
Install
npm i @component-core/uiReact 19+ and React DOM 19+ are peer dependencies.
Usage
import { Button, Dialog, DialogContent, DialogTrigger } from "@component-core/ui"Bring the token layer in once, at the app root:
@import "@component-core/ui/tokens.css";
@import "@component-core/ui/tailwind.theme.css";tokens.css carries the resolved CSS custom properties (light :root plus a .dark overlay); tailwind.theme.css maps them into a Tailwind v4 @theme block so utilities like bg-primary and rounded-lg resolve token-true.
Theming
Every component binds to the semantic token layer, never to raw values. Re-theme by overriding the semantic custom properties (or start from one of the shipped preset variable sets under dist/presets/) - component structure never changes per theme.
Source
Developed in the design-kit repository as a pnpm workspace package (packages/ui); the DTCG token JSON under tokens/ is the canonical source and everything under dist/ is derived from it.
