shadcn-ui-lib
v0.0.20
Published
Internal UI component library built on [shadcn/ui](https://ui.shadcn.com/) + [Radix UI](https://www.radix-ui.com/) + Tailwind CSS v4.
Downloads
7,661
Readme
shadcn-ui-lib
Internal UI component library built on shadcn/ui + Radix UI + Tailwind CSS v4.
How it works
- Components are pre-built as ESM with full type declarations.
- All dependencies (Radix UI, platejs, etc.) are bundled — consumers only need to install peer dependencies.
- Multi-entry build with
sideEffects: falseenables tree-shaking: only imported components end up in your bundle. - Theme variables and base styles are exported via
src/styles/globals.css— Tailwind utility classes are generated on demand by the consuming project.
Usage in your project
1. Install
pnpm add shadcn-ui-libPeer dependencies (install if not already present; react/react-dom are assumed since this is a React library):
pnpm add lucide-react sonner zod @tanstack/react-form2. Setup Tailwind
Install Tailwind CSS v4 in your project, then in your app's entry CSS file:
@import "shadcn-ui-lib/styles/globals.css";
@import "shadcn-ui-lib/styles/scrollbar.css";
@source "../node_modules/shadcn-ui-lib/src";Adjust the
@sourcepath based on where your CSS entry file lives relative tonode_modules.
3. Use components
import { Button, Dialog, DialogContent, DialogTrigger } from "shadcn-ui-lib/ui";
import { BlockEditor } from "shadcn-ui-lib/block-editor";
import { useAppForm } from "shadcn-ui-lib/form";Dev
pnpm install
pnpm dev # starts vite dev server with component showcase
pnpm build # builds ESM output to dist/
pnpm typecheck # runs tsc --noEmitAdding components
Use the shadcn CLI with Radix UI style (configured in components.json):
pnpm dlx shadcn@latest add <component>Then follow the export + showcase steps in AGENTS.md.
