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

Foundation

Layout & Spacing

Space is a system, not a collection of magic numbers. Pilipinas Interface uses one spacing base, one size ladder for controls, and a small set of layout relationships that hold from phone to ledger.

Spacing scale

Tailwind's --spacing base is the whole scale: 0.25rem (4px at the default text step). Utilities such as gap-2, p-4 and mt-6 are multiples of that base. The density and text-size preferences scale it together, so a gap-3 row grows with larger text instead of clipping it.

  • Use the base for rhythm: 1 unit for icon gaps, 2 for control clusters, 3 to 4 for form blocks.
  • Do not invent per-component spacing constants; a one-off value will not follow density.
  • Keep related things closer than unrelated things. Grouping is the job of space, not of borders.

Sizing

Controls follow one size ladder from the shared size context: default is 36px tall, compact is 28px. Default icons are 16px and compact icons 14px. Type roles are 13/20px body and 12/18px compact, with the full ladder in Typography.

Compact is for dense panels and toolbars, not for touch-first screens. WCAG 2.2 sets a 24px minimum target; a 44px target is the iOS guidance. Size the glyph to the text beside it and give the control, not the icon, the hit area.

Layout primitives

Pilipinas Interface does not ship a layout grid component. Use the platform: normal document flow for reading, flex for one-dimensional rows, and CSS grid for two-dimensional columns. Registry components only add behavior where a bare element is not enough.

  • CardGroup arranges record tiles with shared borders.
  • Table owns wide, scannable ledgers; it scrolls horizontally when needed.
  • ScrollArea is for nested overflow with a visible edge hint, not for short content.
  • FieldSet groups related controls so the group is announced as one unit.

Containers and content boundaries

The current docs shell bounds the page at 1232px and the reading column at 880px; the systems shell uses 1440px. These are layout constants in the app, not exported tokens. Bound prose by measure rather than by pixels: Filipino words run longer than English ones, so around 68 characters is the working limit from the multilingual typography research.

Fixed-width rails, such as the 224px documentation sidebar and right rail, keep label columns aligned across rows. Do not let a trailing action change the width of the column it sits in.

Page composition

  • One primary action per screen. Additional actions are secondary or ghost.
  • One decision per block. Requirements, reference numbers and confirmations get their own rows.
  • Progressive disclosure belongs in Accordion; a long advisory belongs in Banner.
  • Use surface and ink to group before adding borders or nested panels.

Responsive behavior

The project uses Tailwind's default breakpoints: sm 40rem, md 48rem, lg 64rem and xl 80rem. Sidebars appear at lg, the secondary rail at xl, and the floating menu takes over below md. These are content decisions, not device names. Prefer wrapping and stacking to horizontal scroll, except for tables and code.

Overflow, wrapping and truncation

Prose wraps; .typeset sets overflow-wrap: break-word so long Filipino words do not break the column. A Badge trims a long label with an ellipsis and keeps its box. Reference numbers and identifiers are shown in grouped monospace and are not truncated. When content genuinely exceeds a region, give it a scroll affordance such as ScrollAreaor the table's horizontal scroll; never hide it.

Density and preferences

Density is a token multiplier, not a separate design: compact 0.875, default 1, spacious 1.125. It scales --spacing and, at Compact, switches controls to the 28px step. The text-size preference scales the same base by 1.15 or 1.3. Browser zoom and responsive layout remain independent. Values and behavior are in Colors and Typography.

Try it

Change density to see the spacing base update across the sample, or narrow the measure to see why prose stops before the container edge. The density control writes the real site-wide preference.

DensityDensity
MeasureMeasure
Application receivedVerified

Reference 2026-0271-8891. We are checking the documents you uploaded. This usually takes a few days; you can close this page and return with the same reference.

--spacing: 0.25rem × defaultprose measure: 68ch

Related

See Card, Table and Scroll Area for the components that implement these rules, and Filipino Digital Context for the device and connectivity constraints behind them.

← PreviousIconsNext →States & Feedback