# Design

The rules that always hold for every pixel of Blossom; the approved values, components and layouts are in [the design system](../../design/README.md), and behavior is in [The notch](notch.md).

![A brush, an ink stone and swatches beside a cherry blossom](/docs/design.jpg)

## Rules

- **Theme only.** Colors, type, spacing, sizes, radii and motion come from `apps/macos/sources/presentation/theme/`. Views use no literal values; a view that needs a value the theme lacks adds the token first.
- **Type.** SF Pro, the system font, with tabular numbers. Geist Mono is bundled for code only.
- **No glow, no shadows.** State color lives only in badges, chips and borders. The app icon is the one exception: it has depth.
- **Identity is not state.** An agent's colors come from its adapter and identify it. They never express state.
- **State colors.** Amber: needs you. Red: failed. Green: done.
- **Accessibility.** Respect Reduce Motion. Every interactive element is reachable by keyboard and labeled for VoiceOver.
- **Language.** English only, and every user-facing string goes through the String Catalog.

> [!IMPORTANT]
> **Focus is part of the design.** A panel that opens by itself never takes the keyboard, and single-letter shortcuts answer only after a hover, a click or the global shortcut. See [Panels](panels.md) and [../decisions/focus.md](../../decisions/focus.md).

## Craft

- **Motion** uses the springs defined in the theme and runs at ProMotion refresh rates.
- **Sounds** are subtle and optional: request, done and failure.
- **Trackpad haptics** (`NSHapticFeedbackManager`) on open and approve.
- **Themes.** Light and dark, with a configurable accent.

**Built so far:** motion for the ear, the toast and the request panel; the light and dark themes with the accent, in the settings window; the sound and the trackpad tap of a cue, for a toast and for a request that arrives; and the tap alone when you approve a request or the pointer opens peek, which is counted apart from the cues.

## The theme and the design

**No placeholder value is left.** Colors, type, spacing, sizes and radii of everything built — the ear, the request panel, the state colors, the settings window — use the values of the design. A token the code does not use yet is not in the theme: it arrives with the view that needs it. The few values the design does not give are listed as built choices in [../design/tokens.md](../../design/tokens.md).

**Motion, as drawn.** The ear and the request panel each arrive with a light bounce and leave sooner, their height before their width, and what appears in them fades in over 150 ms once a third of the arrival has passed.

> [!TIP]
> With Reduce Motion nothing moves: a shape cross-fades to its new size in 100 ms, and what appears in it or leaves it fades with it.

When code and [../design/tokens.md](../../design/tokens.md) disagree, the document is right and the code is to be brought to it.
