AuroraDesign System
1.0
Start

Getting started

Aurora ships as tokens, React components, and a Figma library, all generated from one source. Pick the entry point that matches how you work.

For designers

Open the Figma library and enable it for your team. Variables and text styles match the code names exactly, so a colour called text/secondary in Figma is --au-text-secondary in CSS.

Start from the principles. Every component page then follows the same order, so once you have read one you know where everything is on the rest.

Tokens only

If you only want the look, use the generated stylesheet. It defines every token as a CSS custom property on :root, plus a class for each type style.

<link rel="stylesheet" href="https://izaias.xyz/aurora/design/tokens/aurora.css" />

<p class="au-type-title">You landed at six.</p>
<p style="color: var(--au-text-secondary)">There are three hours at eleven.</p>

The same values are available as W3C design tokens JSON for your own pipeline, and as Figma variables JSON.

React components

Components are plain React with one CSS file each, in src/components/aurora. They read only semantic tokens, so they follow any change to the source. They are not published to npm yet: copy the folder into your project with the generated tokens.css, or import it directly in a monorepo.

import { SuggestionCard, Gap, Timeline } from './aurora';
import './styles/tokens.css';

export function Afternoon() {
  return (
    <Timeline>
      <Gap time="11.00" span="Three hours">
        <SuggestionCard
          because="Nothing needs you until two."
          what="Contrast and lymphatic recovery, 75 minutes."
          signals={[{ key: 'Calendar', value: 'Clear 11.00 to 14.00' }]}
          onConfirm={book}
        />
      </Gap>
    </Timeline>
  );
}

Fonts are Newsreader and Nunito Sans, both open licence. Install them from Fontsource or Google Fonts; the token stacks fall back to system serifs and sans-serifs until they load.

How the repository is laid out

design-system/
├─ tokens/                 # the source of truth (DTCG JSON)
│  ├─ primitives.json      # raw values: night, stone, aurora, space, easing
│  └─ semantic.json        # named jobs that point at primitives
├─ scripts/
│  ├─ build-tokens.mjs     # writes CSS, TypeScript and Figma variables
│  └─ check-tokens.mjs     # fails the build on contrast or raw colours
├─ src/components/aurora/  # the components, one TSX and one CSS each
└─ src/pages/              # this documentation site