Every @effect/ui-kit component as a styled
file you copy into your project. Each component is one Tailwind CSS file in
src/ui/, with a page of live examples, the code they run, and manual
installation steps. No backend.
pnpm install
pnpm dev # http://localhost:5173
pnpm typecheck
pnpm test # server-renders every example
pnpm buildsrc/ui/<slug>.ts: the components. This is the product.src/showcase/<slug>/: each component's page and examples.src/styles/: theme tokens (16 themes, light and dark) and the Tailwind mapping.AGENTS.md: how to add a component.
pnpm build (any vite build) ends with a prerender step, prerender/plugin.ts,
which writes into dist:
- every route as static HTML (
components/select/index.html,404.html, ...), with its own title, description, canonical URL, social tags and JSON-LD. These come fromsrc/lib/site.tsthrough the root component'shead, so a client navigation sets the same tags; - a Markdown twin of every component and docs page (
/components/select.md),llms.txtandllms-full.txt, written from the Showcases bysrc/lib/markdown.ts; sitemap.xmlandrobots.txt.
The canonical host is site.origin in src/lib/site.ts. public/og.png and the
icons are drawn from scripts/images/*.html by sh scripts/images/make.sh.
pnpm preview serves the result as a static host does, with a real 404.
Effect UI is in public preview and installs from snapshot builds, so expect the kit's APIs to move.