Pilipinas Interface

Foundation

  • Overview
  • Get Started
  • Colors
  • Typography
  • Icons
  • Layout & Spacing
  • States & Feedback
  • Motion & Transitions
  • Expressions

Components

  • Overview
  • Accordion
  • Alert
  • Avatar
  • Badge
  • Banner
  • Breadcrumb
  • Button
  • Card
  • Checkbox
  • Code Block
  • Combobox
  • Command Menu
  • Dialog
  • Popover
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Skeleton
  • Switch
  • Table
  • Tabs
  • Text Field
  • Tooltip

Resources

  • Registry

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}.json

Install components

npx shadcn@latest add @pilipinas/accordion
npx shadcn@latest add @pilipinas/alert
npx shadcn@latest add @pilipinas/avatar
npx shadcn@latest add @pilipinas/badge
npx shadcn@latest add @pilipinas/banner
npx shadcn@latest add @pilipinas/button
npx shadcn@latest add @pilipinas/input
npx shadcn@latest add @pilipinas/textarea
npx shadcn@latest add @pilipinas/field
npx shadcn@latest add @pilipinas/combobox
npx shadcn@latest add @pilipinas/breadcrumb
npx shadcn@latest add @pilipinas/card
npx shadcn@latest add @pilipinas/checkbox
npx shadcn@latest add @pilipinas/radio-group
npx shadcn@latest add @pilipinas/switch
npx shadcn@latest add @pilipinas/table
npx shadcn@latest add @pilipinas/scroll-area
npx shadcn@latest add @pilipinas/tooltip
npx shadcn@latest add @pilipinas/tabs
npx shadcn@latest add @pilipinas/dialog
npx shadcn@latest add @pilipinas/popover
npx shadcn@latest add @pilipinas/select
npx shadcn@latest add @pilipinas/progress
npx shadcn@latest add @pilipinas/skeleton
npx shadcn@latest add @pilipinas/code-block
npx shadcn@latest add @pilipinas/government-id-input
npx shadcn@latest add @pilipinas/location-selector

Expressions

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-theme

The 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}.tsx into your project
  • During install, also writes the shared runtime to lib/ and hooks/
  • 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 your components.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.

← PreviousResources