Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Design System & UI Governance

Shared accessible UI primitives, design tokens, responsive standards, and internationalization readiness across all frontend surfaces.

ArchitectureReference

Purpose & Scope

This reference defines the UI governance model, shared component system, theming standards, and responsive design rules for Storefront, Commerce, and Backoffice. It ensures visual consistency, accessible interaction patterns, and long-term maintainability across customer and staff experiences.

Architectural Principles & Rules

  • Headless accessible primitives first: Interactive controls (dialogs, menus, popovers, selects, tabs) must be built on shared headless primitives that provide standardized ARIA roles, keyboard navigation, focus trapping, and focus restoration out of the box.
  • Token-driven styling: Colors, typography, spacing, and elevation are governed by centralized design tokens rather than ad-hoc per-app values, ensuring WCAG-compliant contrast ratios across themes.
  • Shared customer chrome: Storefront and Commerce share a unified navigation shell (header, footer, mobile bottom bar, basket indicator, and cross-zone links) so shoppers never perceive a visual seam when crossing microfrontend boundaries.
  • Mobile-first responsive discipline: Customer surfaces prioritize touch-friendly targets, responsive grids, and zoom-safe layouts (remaining readable up to 200% zoom without horizontal overflow); Backoffice optimizes for dense data tables with responsive horizontal scrolling and clear hierarchy.
  • Internationalization readiness: User-facing formatting (currency, dates, numbers) routes through centralized locale-aware utilities rather than hardcoded string concatenation, and layouts avoid fixed pixel widths that break under translated text expansion.
Governance Rule for New UI Components

Never hand-roll custom modal dialogs, dropdowns, or form controls inside an application feature slice. Extend or compose the shared UI primitive library so keyboard, focus, and contrast guarantees apply uniformly.

Patterns & Boundaries

Concern / SurfaceArchitectural ApproachResponsibility BoundaryKey Trade-off
Shared UI PrimitivesCentralized component library wrapping accessible headless primitives and utility tokensDomain UI layer owns reusable primitives; feature slices own domain compositionChanges to core primitives affect all three surfaces and require cross-app regression checks
Customer ShellShared header, footer, mobile navigation, and basket badge across Storefront and CommerceDomain shell layer owns chrome; Storefront and Commerce inject page contentCouples customer shell releases across both customer zones
Theming & ContrastSemantic design tokens for surfaces, text, borders, and status statesDesign tokens enforce 4.5:1 normal text and 3:1 UI/large text contrastRestricts arbitrary one-off colors in feature components
Validation & FormsSchema-driven form validation paired with explicit field labels and error associationsShared validation layer owns schemas; feature slices own form layoutAdds upfront schema definition before rendering forms

Quality & Operational Impact

  • Visual Continuity: Customers transition seamlessly between Storefront discovery and Commerce checkout with identical chrome and interaction behavior.
  • Engineering Velocity: Teams compose pre-verified, accessible building blocks instead of rebuilding dialogs, tables, and form controls per surface.
  • Inclusive Compliance: Tokenized contrast and headless primitives eliminate entire classes of keyboard and screen-reader defects at authoring time.