# Registry This directory is the source of truth for the v4 component registry. The build pipeline (`../scripts/build-registry.mts`) reads the authored source here and generates the runtime indexes, the local `styles/` consumed by the docs app, and the installable output under `public/r/`. ## Source of truth (authored by hand) - **`bases/base/`, `bases/radix/`** — the two authored base registries (Base UI and Radix). Each holds a `registry.ts` plus `ui/`, `lib/`, `hooks/`, `blocks/`, `examples/`, and `internal/`. Shared surfaces should stay in sync across both bases — see [`bases/README.md`](./bases/README.md). - **`styles/style-*.css`** — the style token files (`nova`, `sera`, `vega`, …). Each defines the design tokens for one style. - **`new-york-v4/`** — the legacy source registry. Unlike the generated combinations below, its `registry.ts` and component files are authored directly and committed. - **`../examples/base`, `../examples/radix`** — authored component demos. See [`../examples/README.md`](../examples/README.md). ## Generated output (do not edit by hand) Persistent (committed): - `bases/__index__.tsx` — runtime lookup for the authored bases. - `__index__.tsx` — runtime lookup across legacy styles and every base/style combination. - `__blocks__.json` — block metadata index. - `../examples/__index__.tsx` — runtime lookup for demos. - `../styles/