Skip to main content

Foundations overview

The visual primitives every Prism surface is built from — colour, type, spacing, radius, elevation, motion. Each has its own page with live specimens; this is the summary.

One rule above all: never hand-pick a value. Every colour, size, space, radius and shadow comes from a token. An "odd one out" is a bug.

Colour​

Vibrant foreground on a soft, warm canvas, authored entirely in OKLCH (no hex, no rgb) so colour renders in wide-gamut Display-P3 and stays perceptually uniform.

  • Canvas — a warm sand/cream neutral ramp (--gray-*, faintly golden, never cold). --surface-page sits behind --surface-card.
  • Brand — a single --brand-* ramp, default a cobalt blue, oklch(0.500 0.165 258). Blue universally reads as interactive. Re-skin by remapping --brand-* (see THEMING).
  • Status — emerald --positive, amber --notice, red --negative, sky --info. Always paired with an icon or text — never colour alone.
  • Section accents — a 3-step attention hierarchy: --section-primary (violet, loudest) › --section-secondary (teal) › --section-tertiary (soft amber, quietest).
  • Intent — --intent-brand / --intent-discovery (new/AI/beta) / --intent-premium (upgrade).
  • Domain — --domain-commerce|campus|health|media|finance|hospitality|estate: canonical per-platform hues, the source of truth for product signatures.
  • Role — --role-student|parent|admin|reviewer|doctor|guest|customer|operator|finance|support: who is using the product (avatar rings, "viewing as" banners, scope chips). Says who, not what happened.
  • Charts — a Carbon-modelled data-viz system (see DATA_VISUALISATION).

Every foreground/background pair clears WCAG AA. Pair text with its matching -on token (--accent-on on --accent).

Type​

FamilyRoleWhy
Roboto FlexHeadings (variable, optical sizing on)Tight, confident display
Atkinson Hyperlegible NextBody & UIDisambiguated letterforms — easier for low-vision readers
Atkinson Hyperlegible MonoData, IDs, money, codeDigits line up

Type is a modular scale, not a list of sizes. Each device tier sets a body size and a ratio, and every role is the body size multiplied by the ratio a whole number of times, so no in-between size can exist. The ladder, large to small: --fs-hero › --fs-display › --fs-h1…--fs-h6 › --fs-lead › --fs-body › --fs-body-sm › --fs-caption. All sizes are rem, so the reader's own text-size setting wins. Themes may re-point the three family tokens: Industry sets Geist, Enterprise sets IBM Plex. See Typography.

Spacing & layout​

A strict 4px grid of primitives (--space-*). Components consume role tokens that say what a space is for. The gaps form a ladder that always increases, --gap-inline › --gap-stack › --gap-group › --gap-section › --gap-page, alongside --pad-card, --pad-surface and --control-height. Roles shift by device tier and density, so one attribute reflows the whole UI. Layout uses logical properties (inset-inline, padding-inline) throughout, so right-to-left mirrors for free. Controls honour a 44px minimum target (--size-touch). See Spacing, radius & density.

Radius​

Soft, not pill-y, and responsive: --radius-control (controls), --radius-card (cards), --radius-surface (dialogs and large surfaces) and --radius-media (images). Each grows from mobile to cinema. --radius-inset-card and --radius-inset-surface keep a nested shape's curve parallel to its container. --radius-pill is reserved for switches, avatars and removable tags.

Elevation​

Name the element, not the shadow. The elevation roles --elevation-raised › --elevation-overlay › --elevation-toast › --elevation-modal each pair a shadow with the layer it belongs on. Beneath them sit soft, warm-tinted shadows --shadow-xs → --shadow-xl. They are subtle in light; in dark themes shadow nearly vanishes and elevation is carried by lighter surfaces and borders. See Elevation & motion.

Borders​

1px hairlines in three weights: --border-subtle / --border-default / --border-strong. Inputs use the strong border at rest so fields read as editable; checkbox/radio use a 2px border.

Motion​

Quick and confident, never bouncy. Durations run --duration-instant (80ms), --duration-fast (140ms), --duration-normal (220ms) and --duration-slow (340ms), with --duration-settle (260ms) for a part travelling to rest. Standard easing is --ease-standard, cubic-bezier(0.2,0,0,1). Transitions are functional: they explain a state change. No decorative or infinite animation. All motion collapses under prefers-reduced-motion.

See also​

UI guidelines for what goes on a screen · Theming & signatures for re-skinning · Spacing, radius & density for the responsive and density scales · Accessibility for contrast and focus rules. TOKENS for the full taxonomy and naming · THEMING for re-skinning · DENSITY for the responsive/density scales · ACCESSIBILITY for contrast & focus rules.