Browse docs

Typography

Open full example →
On this page
  1. Font stacks and weights
  2. Type scale
  3. Line height
  4. Letter spacing (tracking)
  5. OpenType feature profiles
  6. Text wrapping

Use the font, type-size, line-height, and tracking tokens to keep application text consistent across enterprise SaaS and corporate applications. Values below come from the framework CSS at build time.

Font stacks and weights

The default stacks use system fonts. Load a variable font in your application before changing its font-family and weight tokens.

Font defaults
TokenDefault value
--pl-font-sanssystem-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif
--pl-font-monoui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace
--pl-font-weight-normal400
--pl-font-weight-medium500
--pl-font-weight-semibold600
--pl-font-weight-bold700
--pl-font-weight-black900
--pl-font-feature-numeric"tnum" 1, "lnum" 1, "zero" 1
--pl-font-feature-code"zero" 1

Type scale

The fluid sizes use clamp() to scale between small and large viewports. vi is one percent of the viewport’s inline size. The rem limits still respect the reader’s root font size.

The micro tier --pl-text-2xs (~10.5px–11.5px) is engineered specifically for high-density data tables, keyboard shortcuts, sparkline labels, and timeline metadata.

Type sizes
TokenDefault value
--pl-text-2xsclamp(0.65rem, 0.62rem + 0.08vi, 0.7188rem)
--pl-text-xsclamp(0.75rem, 0.72rem + 0.1vi, 0.8125rem)
--pl-text-smclamp(0.875rem, 0.84rem + 0.1vi, 0.9375rem)
--pl-text-md1rem
--pl-text-lgclamp(1.125rem, 1.05rem + 0.25vi, 1.25rem)
--pl-text-xlclamp(1.25rem, 1.1rem + 0.55vi, 1.625rem)
--pl-text-2xlclamp(1.5rem, 1.2rem + 1vi, 2rem)
--pl-text-3xlclamp(1.875rem, 1.4rem + 1.6vi, 2.75rem)
--pl-text-displayclamp(2.5rem, 1.8rem + 3vi, 4.5rem)

Line height

Use tighter line height for headings and labels, normal line height for body text, and loose line height for longer prose.

Line-height values
TokenDefault value
--pl-leading-tight1.15
--pl-leading-snug1.3
--pl-leading-normal1.5
--pl-leading-loose1.7

Letter spacing (tracking)

Optical letter spacing tokens provide systematic optical tuning for display headlines, uppercase column labels, micro badges, and telemetry tags.

Letter spacing (tracking)
TokenDefault value
--pl-tracking-tighter-0.03em
--pl-tracking-tight-0.015em
--pl-tracking-normal0em
--pl-tracking-wide0.04em
--pl-tracking-wider0.06em

OpenType feature profiles

Enterprise SaaS applications require unambiguous character representation (distinguishing 0 from O, and 1 from l and I) and tabular numerals for ledgers and financial tables.

OpenType feature profiles
TokenDefault value
--pl-font-feature-numeric"tnum" 1, "lnum" 1, "zero" 1
--pl-font-feature-code"zero" 1

Text wrapping

The base layer applies text-wrap: balance to headings and text-wrap: pretty to paragraphs. These are element styles, not custom properties.

Search Porchlight