Typography
Font families, sizes, weights, and line heights for consistent text rendering.
Font Families
Primary (Sans)
The quick brown fox jumps over the lazy dog.
--font-primary Inter, system-ui, sans-serifMonospace
const greeting = "Hello, World!";
--font-mono SF Mono, Monaco, monospaceFont Weights
Regular (400)
--font-weight-regularMedium (500)
--font-weight-mediumSemibold (600)
--font-weight-semiboldType Scale
Based on a modular scale with ratio 1.15. Base size is 14px.
--g-font-size-4
Heading 1
--g-font-size-3
Heading 2
--g-font-size-2
Heading 3
--g-font-size-1
Body Text
--g-font-size-0
Small / Caption
Line Heights
Tight line height for headings and compact UI elements. Good for buttons and labels.
--g-line-height-tight: 1.25Normal line height for most body text. Provides comfortable reading without excess space.
--g-line-height-normal: 1.4Relaxed line height for long-form content like articles and documentation.
--g-line-height-relaxed: 1.6