@delego/registry
A registry for the Delego design system — intent-bound action authorization for AI agents. It ships the Delego token theme plus the signature components that stock shadcn doesn't have (the protocol decision pill, the signed audit receipt), so any shadcn project can install Delego-branded UI with one command:
Built for Tailwind v4 / shadcn (CSS variables, OKLCH).
What's in here
Source lives in registry/delego/ [blocked]; the manifest is
registry.json [blocked].
Use it (consumer side)
In an existing shadcn project (one that has run shadcn init). Until @delego
is approved into the Directory, point the namespace at the registry yourself in
components.json:
Then install — registryDependencies are resolved transitively, so adding a
component pulls its status-badge / delego-theme deps automatically:
Once listed in the Directory, the registries block is unnecessary — the CLI
resolves @delego from the index. You can also install straight from a built
JSON URL without any config:
Fonts. The theme sets the font stacks but doesn't load the files. Add
Inter, JetBrains Mono, and (for display headings) Plus Jakarta Sans — e.g. in
app/layout.tsx via next/font, or in your CSS:
Build & host (maintainer side)
Commit public/r/ and serve it over HTTPS (GitHub raw, GitHub Pages, or any
static host). The CLI fetches public/r/<item>.json per the URL template in the
directory entry.
Preview app (verification)
examples/preview/ [blocked] is a Vite + Tailwind v4 app that imports
the real registry/delego/ui sources (via alias) and renders every item in
light + dark — so what compiles there is exactly what consumers install. Its
theme CSS is generated from registry.json (scripts/gen-theme.mjs), so it can
never drift from the published tokens. See examples/preview/preview.png [blocked].
Two gotchas baked in (in case you add components): registry sources are
out-of-tree, so the app declares them via a Tailwind @source in
src/index.css (else their utility classes never generate), and field.tsx
carries "use client" because it uses useId.
List in the shadcn Directory
Once public/r/ is published and the repo is public:
- Fork .
- Add the entry from
directory-entry.json[blocked] toapps/v4/registry/directory.json. Verify the field names against the current file first — the directory schema can change. pnpm validate:registriesin that repo.- Open a PR to
shadcn-ui/uifor review.
Directory requirements (per the ):
open source · publicly accessible · valid registry schema · flat (/registry.json
/<item>.json, no nesting) · the served index'sfilesarrays carry nocontentproperty (content lives in each item's own JSON, whichshadcn buildproduces).
Token sync
The design tokens have one canonical source — colors_and_type.css in the
Delego design system. Everything downstream derives from it: the landing's
tokens.css + /design copy (byte-identical), and this registry's
delego-theme (the hex tokens converted to OKLCH, light + dark).
npm run verify:tokens is a drift guard — it asserts every delego-theme OKLCH
value still equals the OKLCH of its mapped canonical token, and that the copies
are byte-identical. Run it (from the workspace, with the sibling design-system +
landing folders present) before publishing a token change. It exits non-zero on
any discrepancy.
License
MIT — see LICENSE [blocked]. (The core Delego project is Apache-2.0; this UI registry is MIT to match the shadcn registry ecosystem.)