Design System

Published Updated
Framework-agnostic design system guide covering tokens, recurring configurator primitives, and responsive patterns.

A robust design system enforces consistency. In Aircada configurator builds, visual details and component specs are declared in framework-agnostic terms, and mapped to specific library formats (like Tailwind CSS variables) for execution.

Configurator UI Primitives#

Specifications for recurring UI components used across interactive configurators.

To prevent redundant recreation of visual elements, configurators use a standard set of UI primitives that map cleanly to options and dataset row schemas.

These primitives are decoupled from state logic: they receive state bindings via props or specialized hooks, and do not perform side-effect calculations internally.

  • Option Selector: Standard group of buttons or dropdown items for selecting options. Takes in options definition array and current selection index.
  • Swatch: Circular or square color/material preview tile. Renders hexCode, isTransparent, or thumbnail image. Never fetches data; accepts direct row inputs.
  • Price Display: Renders the active configuration cost and/or dynamic price delta for alternative choices. Integrates with the live purchaser calculations.
  • Step Panel: Layout wizard navigation. Manages stepper clicks (Previous/Next) and displays page headers/step progress.
  • Add-to-Cart Bar: Bottom or side utility bar holding configuration status, quantity selector, final computed price, and the checkout action button.

Responsive Layout Grid for 3D Configurators#

Standard viewport layout behaviors across desktop, tablet, and mobile dimensions, optimized for screen conservation.

Interactive 3D configurators must fit exactly within the viewport without triggering native browser window scrolls. Because mobile address bars dynamically expand and contract, traditional CSS height metrics like 100vh cause layout shifts and hidden buttons. The interface must use strict height constraints to stay locked at 100% viewport height.

  • Root Height Model: The root wrapper must use dynamic viewport heights (e.g. h-[100svh] or h-[100dvh]) paired with overflow-hidden to prevent browser-level bounce scrolling.
  • Split-Screen Grid: Implement a flex container that is flex-col on mobile and flex-row on desktop (min-width: 768px).
  • Mobile Viewport Budget: Restrict the 3D viewport canvas to a fixed top section (40vh to 48vh). This leaves the remaining height (52vh to 60vh) for configuration panels.
  • Mobile Step Headers: Position the step/tab navigation bar at the top of the mobile bottom-panel (block md:hidden border-b), acting as the dividing line between 3D and 2D elements.
  • Internal Panel Scroll: Option panel elements must use flex-1 with overflow-y-auto and condensed vertical padding. This guarantees option cards and swatches remain visible without squishing.
  • Absolute Overlay Controls: Floating viewport utilities (camera resets, material swatches) must float absolutely inside the viewport container rather than occupying grid tracks.

Agnostic Design System Tokens#

Lists framework-agnostic semantic design tokens for color, typography, spacing, and border radius.

Semantic design tokens map abstract values to visual meaning. Using semantic tokens (e.g. brand-accent or surface-muted) instead of literal styling properties ensures consistent theme swaps and visual harmony across platforms.

  • Colors: brand-accent, brand-hover, surface-base, surface-muted, surface-overlay, border-base, border-accent, text-base, text-muted, text-contrast.
  • Radius: radius-none, radius-sm (4px), radius-md (8px), radius-lg (12px), radius-full (9999px).
  • Spacing Scale: spacing-xs (4px), spacing-sm (8px), spacing-md (16px), spacing-lg (24px), spacing-xl (32px).
  • No Hardcoded Hexes: Never hardcode hexadecimal or raw color values in styles or JSX. Map all variables through these tokens first.