@hagar/ui

@hagar/ui

@hagar/ui is the shared component library for Hagar frontends. Its purpose is twofold:

  1. Out-of-the-box components, themed per brand. Each project defines its own tokens (colors, radius, fonts, …) in its global.css. Components read those tokens and render in brand automatically. Olís gets its green + yellow look, Storkaup its blue, etc., without touching component source.
  2. A consistency baseline for custom designs. When a design needs more than tokens can express, brands extend the components further. The components and their variants stay consistent across brands, even when the visuals diverge.

Pick a component from the sidebar to see it rendered with the default tokens shipped in @hagar/ui/tokens.css. Use the branding playground below to theme every component live — your choice follows you onto each component page.

Branding playground

Pick a brand preset or tweak individual tokens. Every component reacts live — navigate to any component page to see it in the chosen brand.

Brand presets:

Primary chain

Brand colors used by default for emphasis.

Secondary chain

Supporting colors used alongside primary.

Border radius

Controls corner roundness across all components.

10px