Design Library
Live token reference, typography, spacing, buttons, sections, cards, footer, and overlay. All values resolve from the active token system.
1. Token Reference
Computed values injected by JS snippet. Swatches resolve oklch relative color syntax and var() chains.
Surface Scale
Primary — Fixed Scale
Primary — Relative Nudge
Secondary — Fixed Scale
Secondary — Relative Nudge
Semantic — Interactive
Semantic — Text
Semantic — Backgrounds
Semantic — Borders
2. Typography
H1 Heading
–font-size-2xlH2 Heading
–font-size-xlH3 Heading
–font-size-lH4 Heading
–font-size-mH5 Heading
–font-size-sH6 Heading
–font-size-xsBody text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fluid scale 16px to 20px.
–font-size-mSmall text. Used for captions, meta, secondary information.
–font-size-s + –color-text-mutedExtra small. Labels, timestamps, fine print.
–font-size-xs + –color-text-muted3. Spacing
Squares are sized using the token itself. Semantic tokens reference scale primitives.
Scale Primitives
Semantic Spacing
4. Buttons
Default size
Large size
On dark background
5. Sections
Different backgrounds show padding clearly. Inner container constrains content width.
.gbp-section (default) — padding-block: –spacing-section-block | Shows tagline, headline, and text sub-classes
Section Tagline
Section Headline
Section intro text using .gbp-section__text. Slightly larger than body, max 65ch.
.gbp-section + .gbp-section–s (compact) — padding-block: –spacing-section-block-s
.gbp-section + .gbp-section–l (generous) — padding-block: –spacing-section-block-l | Action color background
6. Cards
Surface Card
.gbp-card on –color-bg-surface. Padding from –spacing-card.
Elevated Card
.gbp-card on –color-bg-elevated.
Border Card
.gbp-card + .gbp-card–border adds –color-border + border-radius.
7. Footer
8. Overlay Panel
Static preview of the overlay surface and close button. In production shown/hidden via GB overlay functionality.