Components
Button
Four intents at two sizes. Buttons are rare in Aurora: most commitments use the hold button, so a plain button is for proposing, declining, or navigating.
Overview
Anatomy
- 1Container46px tall, the minimum comfortable touch target. 4px radius, the control radius. 1px border so every variant has the same outer size.
--au-radius-sm - 2Label13px sans, semibold. Centred on the cap band, not the ink, so buttons side by side share one baseline.
font-size: 13px
Variants
| Variant | Use for | Never for |
|---|---|---|
| primary | The one forward action on a screen that isn’t a booking. Get started, Continue. | More than one per view. |
| secondary | Proposing or opening something. It has a visible edge because it’s an invitation. | Committing to anything that costs money or time. Use the hold button. |
| quiet | Declining, dismissing, going back. “Not today.” | The action you want people to take. |
| critical | Undoing a real commitment: cancelling a booking. | Warnings. Aurora explains, it doesn’t alarm. |
States and sizes
Hover lifts the border or fill one step. Press scales to 98.5% over 220ms, then glides back. Focus draws the mint ring. Disabled drops to the disabled ink on a plain hairline, and keeps its size so nothing shifts around it.
Usage
Pair the commitment with a quiet way out. The quiet button is as tall as the hold, so the pair reads as one control.
Don’t line up several filled buttons. When everything asks for attention, nothing gets it.
Writing
- A verb, in sentence case. “Open trace”, not “Trace” or “OPEN TRACE”.
- Say what happens, not how it feels. “Cancel booking”, not “Oops, never mind”.
- Declines are gentle and final. “Not today” tells the system to stop asking.
Accessibility
- A real button element, with
type="button"by default so it never submits a form by accident. - Enter and Space activate it. Focus shows the mint ring, 3px out.
- Disabled buttons stay in the tab order only when you pair them with a reason; otherwise use
disabledand explain nearby.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'primary' | 'secondary' | 'quiet' | 'critical' | 'secondary' | The intent. See Variants. |
| size | 'md' | 'sm' | 'md' | 46px for touch, 36px for dense desktop surfaces. |
| block | boolean | false | Fill the width of the container. |
| ...rest | ButtonHTMLAttributes | — | Any native button attribute, including onClick and disabled. |
Tokens
| Token | Value | Used for |
|---|---|---|
| --au-bg-inverse | → stone.50 · #EDEBE5 | Fills that have been committed, like a held button. |
| --au-bg-inverse-hover | → stone.200 · #C9C6BE | Inverse fills under a pointer. |
| --au-bg-raised-hover | → night.850 · #131418 | Raised surfaces under a pointer. |
| --au-border-strong | → night.700 · #2A2D33 | Hover, and controls that need a visible edge. |
| --au-border-hairline | → night.750 · #1E2024 | Default 1px structure. |
| --au-text-label | → stone.500 · #86847D | Uppercase labels. 5.3:1. |
| --au-text-critical | → ember.400 · #E58F80 | |
| --au-radius-sm | 4px | Controls: buttons, inputs. |
| --au-light-focus | → aurora.mint · #7FD9C0 | Focus rings and selection. |
Code
import { Button } from './aurora';
<Button variant="secondary" onClick={openTrace}>Open trace</Button>
<Button variant="quiet" onClick={decline}>Not today</Button><button class="au-button" data-variant="secondary" data-size="md" type="button">
<span class="au-button__label">Open trace</span>
</button>