This repository is a small monorepo with:
ui/:@base-ui-kit/ui— a React UI kit (typed, tested, documented, tree-shakable, CSS-isolated, themeable via CSS variables)app/: demo React + TypeScript (Vite) app for developing/testing the UI kit in real usage
- Node: Vite 7 recommends Node 20+ (Node 18 may work but you’ll see warnings)
- Package manager: this repo is currently wired with npm workspaces (
npm -w ...)
From the repo root:
npm install- Lint:
npm run lint - Test (UI kit):
npm run test - Build (UI + demo app):
npm run build - Full check:
npm run verify
Run the demo app:
npm -w app run devThe demo app is configured to import the UI kit from source during development, so you can iterate on ui/src/** and see changes immediately.
Husky is enabled at the repo root:
- pre-commit:
uilint + unit tests, thenapplint - pre-push:
uilint + unit tests + build, thenapplint + build
If a hook fails, the commit/push will be blocked until the checks pass.