Support Center/UI Foundations

UI Foundations

Learn about Helm's design system, typography, and visual tokens that power the consistent look and feel across the platform.

UI Foundations

Helm uses a cohesive design system to ensure a consistent, polished experience across all public and authenticated surfaces. This article explains the foundational elements that make up the Helm visual language.

Typography

Helm uses a carefully selected font stack for optimal readability and brand consistency:

FontUsageExample
Space GroteskDisplay headings, titles, logosPage titles, hero text, section headings
IBM Plex SansBody text, UI elementsParagraphs, buttons, form labels
IBM Plex MonoCode, technical contentCode snippets, version numbers, terminal output

Font Loading

Fonts are loaded through Next.js font optimization, ensuring:

  • No layout shift (FOUT prevention)
  • Optimal performance with font subsetting
  • Automatic fallback fonts while loading

Color Palette

Helm uses a dark theme with semantic color tokens:

Background Layers

  • Background (--color-bg): Main page background
  • Surface (--color-surface): Cards, panels, elevated containers
  • Surface Hover (--color-surface-hover): Interactive surface states

Text Colors

  • Text (--color-text): Primary text content
  • Text Muted (--color-text-muted): Secondary, supporting text
  • Text Subtle (--color-text-subtle): Tertiary, hint text

Accent Colors

  • Primary (Blue): Actions, links, focus states
  • Success (Green): Confirmations, positive states
  • Warning (Yellow): Cautions, pending states
  • Danger (Red): Errors, destructive actions
  • Accent (Purple): Feature highlights, special badges

Spacing Scale

Helm uses a consistent 4px-based spacing scale:

TokenValueUsage
--space-14pxTight gaps, icon padding
--space-28pxElement gaps, small margins
--space-416pxComponent padding, standard gaps
--space-624pxSection spacing
--space-832pxLarge section breaks

Border Radius

Consistent corner rounding for UI elements:

TokenValueUsage
--radius-md4pxButtons, inputs, small elements
--radius-lg6pxCards, dropdowns
--radius-xl8pxModals, larger containers
--radius-2xl12pxFeature cards, hero elements
--radius-full9999pxPills, avatars, badges

Elevation (Shadows)

Subtle shadows indicate elevation hierarchy:

  • Shadow SM: Subtle lift for buttons on hover
  • Shadow MD: Cards and elevated containers
  • Shadow LG: Dropdowns and popovers
  • Shadow XL: Modals and dialogs
  • Shadow Glow: Focus indicators (primary/danger variants)

Using Tokens

All design values are defined as CSS custom properties in tokens.css. Reference them in your styles:

.my-component {

background: var(--color-surface);

padding: var(--space-4);

border-radius: var(--radius-lg);

font-family: var(--font-body);

font-size: var(--text-base);

color: var(--color-text);

}

.my-heading {

font-family: var(--font-display);

font-size: var(--text-2xl);

font-weight: var(--font-bold);

letter-spacing: var(--tracking-tight);

}

Accessibility

The Helm design system prioritizes accessibility:

  • Contrast: All text/background combinations meet WCAG AA standards
  • Focus states: Visible focus rings using --shadow-glow-primary
  • Motion: Transitions are subtle and respect prefers-reduced-motion
  • Font sizes: Minimum 14px for body text, scalable with rem units

Related Articles