Resources
Registry
The Pilipinas Interface registry is a shadcn-compatible registry, served over HTTP.
Every item below is a standard registry:item JSON document. Install one with the shadcn CLI and it drops source into your project at the given path.
Register the namespace
Point your project at the Pilipinas Interface registry:
npx shadcn@latest registry add @pilipinas https://pilipinas-interface.vercel.app/r/{name}.jsonInstall components
npx shadcn@latest add @pilipinas/accordionnpx shadcn@latest add @pilipinas/alertnpx shadcn@latest add @pilipinas/avatarnpx shadcn@latest add @pilipinas/badgenpx shadcn@latest add @pilipinas/bannernpx shadcn@latest add @pilipinas/buttonnpx shadcn@latest add @pilipinas/inputnpx shadcn@latest add @pilipinas/textareanpx shadcn@latest add @pilipinas/fieldnpx shadcn@latest add @pilipinas/comboboxnpx shadcn@latest add @pilipinas/breadcrumbnpx shadcn@latest add @pilipinas/cardnpx shadcn@latest add @pilipinas/checkboxnpx shadcn@latest add @pilipinas/radio-groupnpx shadcn@latest add @pilipinas/switchnpx shadcn@latest add @pilipinas/tablenpx shadcn@latest add @pilipinas/scroll-areanpx shadcn@latest add @pilipinas/tooltipnpx shadcn@latest add @pilipinas/tabsnpx shadcn@latest add @pilipinas/dialognpx shadcn@latest add @pilipinas/popovernpx shadcn@latest add @pilipinas/selectnpx shadcn@latest add @pilipinas/progressnpx shadcn@latest add @pilipinas/skeletonnpx shadcn@latest add @pilipinas/code-blocknpx shadcn@latest add @pilipinas/government-id-inputnpx shadcn@latest add @pilipinas/location-selectorExpressions
Opt-in layers for civic and sector-style audiences. The default skin stays unchanged; expressions add civic semantics through :root and .dark blocks without touching surfaces, typography or motion.
npx shadcn@latest add @pilipinas/ph-gov-themeThe core item
Every component pulls in @pilipinas/core automatically: the shared lib and hooks (utils, springs, shape and size contexts, the HugeIconsicon-context, fluid-provider, popup, elevation, surface classes, the type scale). Nothing reaches out to a third-party registry, so what you install is exactly what ships in this repo.
What the install does
- Writes
components/ui/{accordion,alert,avatar,badge,banner,breadcrumb,button,card,checkbox,code-block,combobox,dialog,field,government-id-input,input,location-selector,popover,progress,radio-group,scroll-area,select,skeleton,switch,table,tabs,textarea,tooltip}.tsxinto your project - During install, also writes the shared runtime to
lib/andhooks/ - Adds Button's spinner keyframes to your
globals.css(as@theme inline) - Cross-component imports resolve inside your project after the first install; no registry round-trip on subsequent components
- Targets the
@/alias from yourcomponents.json
Why a registry, not packages
Foundations, tokens, and components are copied into your project on install. You own the source, you pick when to rebase to upstream Fluid or to Pilipinas Interface before the next release ships; the same way you rebase shadcn primitives.
Registry items are generated from the source underapps/site/components and apps/site/lib by apps/site/scripts/build-registry.mjs. Nothing is hand-edited after generation.