# Backyard Singularity design guide (v1)

How to make anything look and feel like Backyard Singularity. Read this before designing a screen.

Published at `https://brand.backyardsingularity.co.za/v1/DESIGN.md`. The values themselves live in `/v1/tokens.css` (and `/v1/tokens.json`); this page explains how to use them. If this page and the tokens ever disagree, the tokens are right.

## The brand in one paragraph

**Backyard Singularity.** Slogan: **Embrace the chaos.** Sub-line: We embrace the chaos so you don't have to. A small studio with a backyard feel: warm, plain-spoken, a little playful, never corporate. Tools are named after things you would find in a yard or a garden (the Yard, Jot, Groundwork, Toolshed, Porch Light, Sundial). The look is calm and mostly neutral, with one bright orange spark.

## Rules that always apply

1. **Tokens only.** In `<head>`, link `/v1/tokens.css` before your own CSS. App code uses `var(--bs-...)` for every colour, font and radius. No hex colours and no font names in app code.
2. **No italics, anywhere.** Use weight or colour for emphasis.
3. **One font family:** Plus Jakarta Sans, loaded by `tokens.css`. Weights 400, 500, 600 and 700.
4. **The bright orange is a spark, not a paint.** `--bs-color-accent` is for large text (24px or more), the logo spark, fills and decoration. Orange text smaller than 24px uses `--bs-color-accent-text`.
5. **Light and dark both work.** Dark mode follows the visitor's system; `data-theme="light"` or `"dark"` on `<html>` overrides it. Load `/v1/ui/theme.js` in `<head>` so the right theme is set before the page paints. Never hard-code a colour for one theme.
6. **Text contrast is at least 4.5:1**, and 3:1 for large text and meaningful outlines. The build script in `bs-brand` checks the listed pairs and refuses to publish if one fails.
7. **Touch targets are at least 44px** (`--bs-target`). Every interactive thing has a visible focus ring (`--bs-focus-ring`, 3px).
8. **Motion is optional.** Anything that moves has a still equivalent, and everything stops under `prefers-reduced-motion`. Nothing animates forever in the corner of your eye.
9. **Logos and tab icons are linked, never copied:** `/v1/logo/...` and `/v1/icons/...`.
10. **Renaming or removing a token is a breaking change** and goes in a new `v2/` folder. Adding a token is fine in `v1`.

## Colour

### Neutrals and surfaces

| Token | Use |
|---|---|
| `--bs-color-page` | The page behind everything (warm off-white; near-black in dark) |
| `--bs-color-panel` | Cards and panels on the page |
| `--bs-color-panel-sunk`, `--bs-color-panel-sunk-2` | Wells, inset areas, quiet buttons |
| `--bs-color-edge` | Panel borders |
| `--bs-color-line`, `--bs-color-control-line` | Dividers and control borders |
| `--bs-color-field-line`, `--bs-color-outline` | Text-box borders and outlines that carry meaning (3:1) |
| `--bs-color-ink` | Main text |
| `--bs-color-ink-soft` | Secondary text |
| `--bs-color-muted` | Labels, hints, small print |
| `--bs-color-on-ink` | Text on an ink-coloured fill |
| `--bs-color-scrim` | The dim layer behind a sheet or dialog |

The older names `--bs-color-bg`, `--bs-color-surface` still work and mean white and off-white.

### The orange

| Token | Use |
|---|---|
| `--bs-color-accent` | Large text, fills, the spark, decoration |
| `--bs-color-accent-text` | Orange text and links under 24px |
| `--bs-color-on-accent` | Text on an orange fill |
| `--bs-color-accent-strong` | A deeper orange for emphasis on light backgrounds |
| `--bs-color-accent-tint` | A soft orange wash |
| `--bs-color-accent-ring`, `--bs-color-accent-glow`, `--bs-color-accent-glow-calm` | Rings and glows |

Use one orange action per view. If everything is orange, nothing is.

### The anchor panel

A dark panel that stays dark in both themes (Quick Jot on the Yard uses it): `--bs-color-anchor`, `-edge`, `-raised`, `-line`, `-field`, with text in `--bs-color-anchor-text`, `--bs-color-anchor-heading` and `--bs-color-anchor-muted`.

### Status

| Token | Use |
|---|---|
| `--bs-color-success` | A quiet "done" or "saved" |
| `--bs-color-rag-red`, `-amber`, `-green` (each with `-tint`) | Red, amber, green status. Always pair the colour with a word or an icon; never rely on colour alone. |

### The garden palette

Seven extra hues and a night sky, for illustration, playful moments, charts and categories. They are tuned to sit beside the orange and the warm neutrals: slightly muted, never neon. They are **not** for ordinary interface chrome; buttons, links and body text stay neutral and orange.

**The night field** is a deep indigo panel that stays dark in both themes, like the anchor panel. Use it as a window onto the sky.

| Token | Use |
|---|---|
| `--bs-color-night` | The night field itself |
| `--bs-color-night-raised` | A raised area or a far hill on the night field |
| `--bs-color-night-edge` | Border of the night field (visible in dark mode, where the field sits on a near-black page) |
| `--bs-color-night-line` | Faint lines, orbits and constellations |
| `--bs-color-night-text`, `--bs-color-night-muted` | Text on the night field |
| `--bs-color-night-star` | Stars and small lights: a warm white |

**The hues.** Each comes in three forms:

- `--bs-color-<hue>`: deep on light pages, bright on dark pages. Passes 4.5:1 as text on `panel` and `page`.
- `--bs-color-<hue>-bright`: always the bright version. Use this on the night field, the anchor panel or any dark fill. Passes 4.5:1 there.
- `--bs-color-<hue>-tint`: a soft wash of the hue for backgrounds and chips.

| Hue | Token | Character |
|---|---|---|
| Violet | `--bs-color-violet` | Deep space, the far and strange |
| Blue | `--bs-color-blue` | Sky, water, calm |
| Teal | `--bs-color-teal` | Fresh growth, cool light |
| Moss | `--bs-color-moss` | Leaves and stems |
| Bloom | `--bs-color-bloom` | Flowers, a warm pink |
| Gold | `--bs-color-gold` | Pollen, starlight, reward |
| Soil | `--bs-color-soil` | Earth, bark, pots |

How to combine them:

- The orange stays the hero. Use it for the single most important light in a scene; use gold for lesser lights.
- Pick two or three hues for a picture, not all seven.
- Violet, blue and teal are the sky; moss, bloom, gold and soil are the ground. Orange belongs to both.
- For a set of categories in a chart, use them in this order: violet, teal, gold, bloom, blue, moss, soil. Label every series; do not rely on colour alone.

## Type

- Family: `var(--bs-font-body)` and `var(--bs-font-display)` (both Plus Jakarta Sans). Monospace: `var(--bs-font-mono)`, used for small uppercase section labels and for code.
- Body text 16px, line height 1.5. Small text 14px; never smaller than 12px.
- Headings are bold (700) with a line height of about 1.2. Section labels on the Yard are small, uppercase, monospace and muted.
- The wordmark: "Backyard" regular 400, "Singularity" bold 700.
- No italics. No underlined text that is not a link.

## Shape and space

| Token | Value | Use |
|---|---|---|
| `--bs-space-1` to `--bs-space-7` | 4, 8, 12, 16, 24, 32, 48px | All spacing |
| `--bs-radius-sm`, `-md`, `-lg` | 6, 10, 16px | Small controls, inputs and buttons, cards |
| `--bs-radius-icon-sm`, `--bs-radius-icon` | 8, 14px | Icon tiles |
| `--bs-radius-tile`, `--bs-radius-card-sm` | 20, 22px | Tool tiles and small cards |
| `--bs-radius-panel`, `--bs-radius-box` | 24, 28px | Panels and large boxes |
| `--bs-radius-pill` | 999px | Chips and pills |
| `--bs-shadow-sm`, `--bs-shadow-md`, `--bs-shadow-raise` | | Shadows are light, and `raise` disappears in dark mode, where borders do the work |

Corners are generous and soft. Panels have a one-pixel border in `--bs-color-edge` rather than a heavy shadow.

## Layout

- Breakpoints: phone up to 560px (`--bs-bp-phone`), tablet from 1024px (`--bs-bp-tablet`), desktop from 1280px (`--bs-bp-desktop`).
- Header height 64px, 60px on phone (`--bs-size-header`, `--bs-size-header-phone`).
- Design the phone layout as carefully as the desktop one. Nothing scrolls sideways.

## Icons

- Line icons, drawn on a 24px grid with a stroke of `--bs-icon-stroke` (1.75), round caps and joins, coloured with `currentColor`.
- Each tool has an icon in `/v1/icons/` and a tab-icon set in `/v1/logo/` (`favicon_<tool>_32.svg`, `_64.svg`, `_180.svg` and PNG versions).

## Shared pieces

| Piece | What it is |
|---|---|
| `/v1/base.css` | Optional ready-made styles built only from tokens: `.bs-btn`, `.bs-btn-quiet`, `.bs-input`, `.bs-textarea`, `.bs-select`, `.bs-card`, `.bs-wordmark`, and the light/dark logo swap |
| `/v1/ui/theme.js` | Sets the theme before first paint from the `bs-theme` cookie; `bsTheme.set('dark')` changes it for every BS site |
| `/v1/ui/bs-header.js` | The shared `<bs-header tool="...">` bar |
| `/v1/ui/fallback.js` | Copied into each app: a plain bar shown if the shared header cannot load |

## Voice

- Plain language. Short sentences. Say what a thing does.
- Buttons are verbs: "Save", "Add a note", "Sign out".
- Warm and a little dry; never salesy, never shouting. One exclamation mark is usually one too many.
- British and South African spelling: colour, organise, programme.
- Dates read like "Thu 5 Nov". Times are Johannesburg time unless stated.

## Checklist before you ship a screen

1. Only `var(--bs-...)` values in the CSS.
2. Looks right in light and in dark.
3. Works at 375px wide and at 1280px wide.
4. Every control reachable by keyboard, with a visible focus ring.
5. Text contrast passes; colour is never the only signal.
6. Nothing in italics.
7. Still fine with motion turned off.
