Development only

Style guide

Every interface component in one place. This page does not exist when the app runs in production.

Color

Every color is a token in app.css. Each one has a single job.

  • --color-bg #0e110c Page background. Near-black olive.
  • --color-surface #161a13 Panels, the tab bar, the combat log.
  • --color-surface-raised #1f2519 Raised panels and HUD labels.
  • --color-line #3a4331 Dividers and unlit bar segments.
  • --color-line-strong #5d6a4c Input and secondary button borders.
  • --color-text #ebe8dc Smoke white. Story text, headings, focus ring.
  • --color-text-muted #a4a694 Labels, captions, inactive tabs.
  • --color-action #a9451e Rust. The main action button.
  • --color-action-edge #cc5f33 Button edge and the active tab marker.
  • --color-action-pressed #8f3714 The main action button while pressed.
  • --color-action-text #e8824f Rust text: links and highlights.
  • --color-threat #ff6a5c Red. Threats and damage, as text.
  • --color-threat-fill #ff4d3d Red. Enemy bar segments.
  • --color-player #9fbb63 Olive. The player and health.
  • --color-loot #d4b660 Muted gold. Loot and rewards.
  • --color-disabled-bg #22281d Disabled button background.
  • --color-disabled-text #9a9c8b Disabled button label.

Contrast

WCAG AA. Text needs 4.5:1. Bars, borders and the focus ring need 3.0:1. The test suite checks the same pairs, and docs/design.md lists them.

Text

  • Story text and headings on the page color-text on color-bg 15.49:1 Pass
  • Text on panels and the tab bar color-text on color-surface 14.36:1 Pass
  • Text on raised panels and HUD labels color-text on color-surface-raised 12.80:1 Pass
  • Labels and secondary text on the page color-text-muted on color-bg 7.66:1 Pass
  • Inactive tab labels and panel captions color-text-muted on color-surface 7.10:1 Pass
  • Captions on raised panels color-text-muted on color-surface-raised 6.33:1 Pass
  • Main action button label color-text on color-action 4.81:1 Pass
  • Main action button label while pressed color-text on color-action-pressed 6.28:1 Pass
  • Links and rust highlights on the page color-action-text on color-bg 7.01:1 Pass
  • Links and rust highlights on panels color-action-text on color-surface 6.49:1 Pass
  • Threats and damage on the page color-threat on color-bg 6.76:1 Pass
  • Damage in the combat log color-threat on color-surface 6.27:1 Pass
  • Player and health readouts on the page color-player on color-bg 8.84:1 Pass
  • Healing in the combat log color-player on color-surface 8.19:1 Pass
  • Loot on the page color-loot on color-bg 9.65:1 Pass
  • Loot in the combat log color-loot on color-surface 8.95:1 Pass
  • Disabled button label color-disabled-text on color-disabled-bg 5.40:1 Pass
  • Unavailable tab label in the tab bar color-disabled-text on color-surface 6.30:1 Pass

Bars, borders and focus

  • Main action button against the page color-action on color-bg 3.22:1 Pass
  • Button edge and the active tab marker color-action-edge on color-bg 4.76:1 Pass
  • Input and secondary button borders color-line-strong on color-bg 3.29:1 Pass
  • Input borders on panels color-line-strong on color-surface 3.05:1 Pass
  • Keyboard focus ring color-text on color-bg 15.49:1 Pass
  • Lit health segment beside an unlit one color-player on color-line 4.82:1 Pass
  • Lit threat segment beside an unlit one color-threat-fill on color-line 3.15:1 Pass
  • Lit threat segment against the page color-threat-fill on color-bg 5.78:1 Pass
  • Lit loot segment beside an unlit one color-loot on color-line 5.26:1 Pass
  • Lit neutral segment beside an unlit one color-text-muted on color-line 4.17:1 Pass
  • Marker on the holding page chip color-action-edge on color-surface-raised 3.93:1 Pass

Type

Barlow Condensed: headings, labels and buttons

Free Country 0123456789

A third-level heading

Barlow: story text

Story text is 1.125rem: 18px at the default text size. It grows with the phone's text settings and is never below 16px.

Placeholder story line one. The real story text lives in the private content repo.

Placeholder story line two. Each paragraph is one entry in this list.

Placeholder story line three.

JetBrains Mono: numbers, timestamps and the combat log

0853 EST 007/100 +12

Body text is 16px, with a link.

Muted text for captions and help.

Buttons

Big, square and numbered. Each is at least 44px tall. They press in the moment a finger lands.

Scene card

The base of every game screen: art on the feed, story text, then two to four actions where the thumb lands. This one uses the sample event.

Patrol

Sample event title

A county road at night. Power lines run to the horizon.

Placeholder event text. This is what the player reads when the event starts.

Placeholder choice one Placeholder choice two

Feed

Art fills a 16:9 frame with scanlines, corner brackets and a reticle on top. It flickers once as it loads. Players who ask for reduced motion see no flicker.

With HUD chips

A small town at dusk.

Missing art

No signal.

Bars and stats

Bars are rows of square segments with the exact value printed beside them, so color is never the only signal.

One point left still lights one segment. Zero lights none.

Level
01
Day
001
Patrols
18

Combat log

Monospace, newest last. Every value has a sign and a unit as well as a color.

  1. 0853A sample enemy spots you.
  2. 0853You hit the sample enemy. -4 HP
  3. 0853The sample enemy hits you. -3 HP
  4. 0853You patch yourself up. +2 HP
  5. 0853You find a sample item. +1 item

Notices and badges

Every notice starts with a word, so the color is never the only signal.

Done

A success message.

Alert

A warning about danger or a failed action.

Loot

A reward message.

Note

A plain tip or status message.

New Hostile Ally Rare Common

Panels and dialogue

Panel

Tag

Panels group related things, like gear slots or a list of contacts.

Sample Contact

Placeholder greeting line.

Forms

Every form that posts carries a CSRF token. The app checks it before any page code runs.

Sample form

Help text sits under the field.

Error: that code does not exist.

Tab bar

Logged-in screens get the tab bar, pinned to the bottom of this page. Patrol is the active tab here. Map is not yet available, so it is not a link and says so.

Art

Every image loads by name from public/assets/art/. To swap art, drop in a file with the same name.

  • icon-app
  • icon-gear
  • icon-map
  • icon-patrol
  • icon-safehouse
  • icon-town
  • missing
  • portrait-placeholder
  • scene-patrol
  • scene-town

Error pages

Players see a short message and a reference code, never error details.

See the 404 page. The "Send without a token" button above shows the 403 page.