Skip to content
Halorav0.1.0

Getting started

Introduction

Halora is the Origin Labs design system: tokens, glass CSS components, and small accessible behaviors that work in any stack.

Why Halora#

Five Origin Labs sites share one look: a near-black and warm-white palette, deep orange fills with white content, glass surfaces, soft page lights, and motion that respects the visitor. For a while that look lived as copied CSS. Halora is that code moved into one package, so a fix lands once and every site gets it.

It is also built to stand on its own. You can adopt it without knowing anything about the five sites: install it, import one stylesheet, and you have the tokens, base styles, and every component.

Three layers#

LayerWhat you getNeeds JavaScript
TokensCSS custom properties prefixed --ha-, tokens.json, TypeScript names, and a Tailwind preset. Light and dark, plus the Origin and Gabarito brands.No
Base and componentsA reset, typography, focus ring, and classes prefixed ha-: button, header, card, chip, dialog, prose, and more.No
BehaviorsTheme, scroll reveal, header scroll state, pause-motion switch, dialog helpers, and optional particles.Yes, about 5 kB gzipped for all of it

Each layer works without the next. A page with only the stylesheet and a data-theme attribute is fully themed.

Principles#

  • Accessible by default. Every text and background pair the components use is checked against WCAG contrast in both themes and both brands, on every CI run.
  • Tokens first. Components contain no raw colors, radii, or easing curves. Changing a token changes everything that uses it.
  • Framework agnostic. Plain CSS and plain JavaScript. Thin wrappers for React or Vue can come later without changing the CSS.
  • Motion is optional. Reduced motion and the pause switch are honored by the CSS and by every behavior.
  • Safe to layer. All CSS sits in @layer ha-tokens, ha-base, ha-components, so your own unlayered styles always win without specificity fights.

Quick start#

  1. Install the release tarball. See Installation for npm, pnpm, yarn, the CDN, and Tailwind.
  2. Import the stylesheet and set a theme attribute on <html>.
  3. Use the classes. Add behaviors only where you need them.
HTML
<!doctype html>
<html lang="en" data-theme="light">
<head>
  <meta name="color-scheme" content="light dark">
  <link rel="stylesheet" href="https://designsystem.lab.mateuseap.com/cdn/halora@0.1.0/halora.min.css">
</head>
<body>
  <div class="ha-page-lights" aria-hidden="true"></div>
  <main class="ha-container">
    <h1 class="ha-display">Hello, <span class="ha-hl">Halora</span></h1>
    <p class="ha-lede">Tokens, components, and behaviors.</p>
    <a class="ha-button ha-button--primary" href="#start">Get started</a>
  </main>
</body>
</html>

Browser support#

Halora targets current evergreen browsers: Chrome and Edge 111+, Safari 16.4+, and Firefox 113+. It relies on cascade layers, color-mix(), the native <dialog> element, and :has() for scroll locking. Subgrid is used as an enhancement for equal-height cards, with a flex fallback.

  • Theming and brands: the theme contract and how to add a brand.
  • Tokens: every color, size, and motion value, with live contrast ratios.
  • Components: demos for every variant with accessibility notes.

Edit this page on GitHub

Type to search.