AuroraDesign System
1.0
Components

Tally

A few numbers side by side, for comparison. Each sits on a rule with its label beneath; at most one carries light, and that one is ours.

Status
Stable
Highlight
At most 1

Overview

  • 21
    Booking.com
  • 16
    Airbnb
  • 15
    Zomato
  • 1
    Aurora
Screens to reserve one thing

Anatomy

  • 21
    Booking.com
  • 1
    Aurora
  1. 1
    Rule
    A strong hairline over each figure, at least 74px wide.
    --au-border-strong
  2. 2
    Figure
    Serif, 27px, lining and tabular so numbers compare cleanly.
    --au-font-serif
  3. 3
    Label
    What the number counts.
    .au-type-label
  4. 4
    Highlight
    The one figure that is ours: its rule becomes light and its number bone.
    --au-light

Usage

  • 21
    Booking.com
  • 16
    Airbnb
  • 1
    Aurora
Do

Compare two to five figures of the same kind, and highlight the one the argument is about.

  • 21
    Booking.com
  • 16
    Airbnb
  • 1
    Aurora
Don’t

Don’t highlight more than one. Two lit figures cancel each other out.

Props

PropTypeDefaultDescription
items*{ value: string | number; label: string; highlight?: boolean }[]—Two to five figures.

Tokens

TokenValueUsed for
--au-border-strong→ night.700 · #2A2D33Hover, and controls that need a visible edge.
--au-text-tertiary→ stone.400 · #8B8981Details and metadata. 5.7:1.
--au-text-primary→ stone.50 · #EDEBE5What Aurora says. 16.7:1 on ground.
--au-light-lo→ aurora.mint · #7FD9C0Start of the aurora.
--au-light-hi→ aurora.violet · #A78BE0End of the aurora.

Code

<Tally items={[
  { value: 21, label: 'Booking.com' },
  { value: 16, label: 'Airbnb' },
  { value: 1, label: 'Aurora', highlight: true },
]} />