Skip to main content

Tokens

Every non-color value is an Open Props step or a FairGarden-only --fgd- token, and none holds a color.

Open Props is used as shipped. Where the system needs a value between two of its steps, that value joins the scale as a step named by its position, to the nearest quarter: --size-px-2-5 (12 px) sits halfway between --size-px-2 (8 px) and --size-px-3 (16 px), and on a linear stretch the suffix reads as the value (--border-size-1-5 is 1.5 px). Everything else the system defines, from type roles to pattern geometry, takes --fgd- [D193].

Units

QuantityUnit
Text sizerem (fluid clamps from 360 px to 1024 px)
Letter spacingem
Line heightunitless
Spacing, strokes, radii, sizespx
Measurech
Printpt and mm

Spacing

The Open Props px series, plus three in-between steps. The rem, fluid and relative size series are not used for spacing.

TokenValueTypical use
--size-px-14 pxIcon-to-label nudge
--size-px-28 pxTight gaps; halo
--size-px-2-512 pxTag icon gap, tight stacks
--size-px-316 pxMobile margin, component padding
--size-px-524 pxHeading to body
--size-px-732 pxCard padding
--size-px-7-540 pxBlock gap, desktop margin
--size-px-8-556 pxSection spacing, mobile
--size-px-1080 pxSection spacing, desktop

--fgd-space-section and --fgd-space-margin step up with the page's breakpoints. All gaps are visual: baseline or rule to cap top. The only off-series values are the named exceptions --fgd-space-stack, --fgd-space-eyebrow-rule and --fgd-space-eyebrow-content.

Density is set per module, never by breakpoint: a Ground's density (compact, default or spacious) is written as data-density and sets --fgd-space-section and the table cell padding for everything inside it.

Strokes and radii

TokenValueJob
--border-size-0-750.75 pxFine-line drawings
--border-size-11 pxRules; table, field and card borders
--border-size-1-251.25 pxInline-tier icons, small drawn glyphs
--border-size-1-51.5 pxBadge edges, link underline
--border-size-22 pxControl edges, outline buttons, focus ring, hover underline
--border-size-2-253 pxActive-tab bar, dialog border
--border-size-2-754 pxLarge sticker silhouettes
--border-size-3-58 pxCard block edges
--radius-12 pxInputs, joined controls, tabs
--radius-2-258 pxPhotos, standard cards, panels
--radius-2-7512 pxFile tabs, shaped as paper tabs (their frames keep --radius-2-25)
--radius-3-2520 pxBlock-edge cards
--fgd-radius-feature≈ 1/7 of the container, at most 64 pxThe framed feature field
--radius-roundpillStandalone buttons, badges, tags

Line weights and borders are one scale: the in-between --border-size-* steps sit between Open Props' --border-size-1 (1 px), --border-size-2 (2 px), --border-size-3 (5 px) and --border-size-4 (10 px), and the in-between radii between --radius-2 (5 px), --radius-3 (16 px) and --radius-4 (32 px).

--radius-conditional-2-25 and --radius-conditional-3-25 follow Open Props' --radius-conditional-* pattern: they keep the full radius while a surface is narrower than the viewport and drop to 0 when it runs full-bleed.

Sizing, breakpoints and motion

  • Controls: --size-px-7 (32 px, small), --fgd-size-control-md (40 px, default), --size-px-8 (48 px, large), --fgd-size-control-xl (56 px); every target is at least --fgd-size-hit (44 px).
  • File tabs' ⋮: --fgd-size-file-tabs-control (24 px), the room a code block's or demo's hanging "More actions" trigger needs past its frame; a page leaves it free and unclipped beside every code block (File Tabs).
  • Logo: --fgd-size-logo, the logo mark in a lockup beside the wordmark: --fgd-size-control-md (40 px), --size-px-8 (48 px) from --lg-n-above, and --size-px-7 (32 px) below --xs-n-below, so it fills the header bar's control height.
  • Custom media drive the page frame: --sm-n-above (480 px), --md-n-above (768 px), --lg-n-above (1024 px), --xl-n-above (1440 px), plus --fgd-nav-inline-n-above (1024 px by default), where the inline Navigation Bar replaces the drawer. Modules reflow on container queries as a progressive enhancement.
  • Motion: --fgd-duration-quick (120 ms) for state changes and hover, --fgd-duration-disclosure (200 ms) for reveals, --ease-out-3; everything is instant under reduced motion. --fgd-delay-tooltip (500 ms) and --fgd-delay-nav-open / --fgd-delay-nav-close (150 / 300 ms) have number mirrors in utils/tokens.ts for Base UI.

A few --fgd- tokens are switches that the role maps set per scope: --fgd-edge-shaped (whether a shaped edge draws), --fgd-link-hover-line and --fgd-soft-hover-line (whether a hover underlines), and --fgd-series-fill / --fgd-series-pattern (flat chart fills or one-ink patterns). Components read them; they never set them.

Banned

No shadows, no transparency, no gradients, and no lift, transform or shadow on hover (§1.3) [D181]. Depth comes from rules, edges and ground changes.

Full specification: DESIGN-SYSTEM.md §1.5 (token architecture) and §1.11.7 (units policy); companion guide §E.