Reference

Design system

Every building block in the app, rendered live from the real components. If a screen needs something that is not here, add it here first.

<x-brand.logo>

Logo

headhouse headhouse headhouse
headhouse

packages/ui/resources/css/skins/headhouse.css

Color tokens

Read from the token file at render time. Components use the role names, never the hex.

Surfaces and text

canvas

#f4f1ea

surface

#fffdf8

sunken

#ece8de

line

#e2dccf

line-strong

#cdc5b4

fg

#1f2a24

fg-muted

#56615b

fg-subtle

#858d87

Brand and actions

brand

#c0623b

primary

#1f2a24

primary-hover

#2e3b34

on-primary

#f4f1ea

rail

#1f2a24

rail-fg

#f4f1ea

Status tones

ok

#4e7a5a

ok-soft

#e3ece3

ok-text

#35583f

watch

#d9a441

watch-soft

#f6ebd1

watch-text

#7a5513

risk

#b8532f

risk-soft

#f6e2d9

risk-text

#933f20

neutral

#a9b8ae

neutral-soft

#e8ebe5

neutral-text

#4a5650

Type

Barlow Semi Condensed for headings, IBM Plex Sans for the interface, IBM Plex Mono for figures and tags.

Page title

x-ui.page-header

Card title

x-ui.card title

Body text for sentences and table cells.

base

Muted supporting text.

text-fg-muted

Eyebrow label

eyebrow

$84,300 · 41.2 lb

figure

Engine\Ui\Support\Tone

Status tones

The only four status colors. Every badge, dot, meter and signal picks one by name.

ok

Ok With dot

watch

Watch With dot

risk

Risk With dot

neutral

Neutral With dot

<x-ui.button>

Buttons

One primary per screen. Secondary for everything else. Ghost inside cards and toolbars.

<x-ui.stat> and <x-ui.stat-grid>

With delta
41.2 lb
+8.4% Plan 38.0 lb
Risk value
$84,300
9 lots
Falling
92%
−3% Target 95%
Linked tile
3
Hover me

<x-ui.bars>

Bars

Nov 16
Nov 23
Nov 30
Retail Wholesale

<x-ui.segments>

Segments

0 to 30 days
$212.4k
31 to 60
$138.9k
61 to 90
$71.2k
91 to 120
$46.8k
Over 120
$84.3k

<x-ui.signal>

Signals

Something is wrong

The detail line says why it matters.

Something needs watching

Without a link, there is no chevron.

Something went well

Good news goes last.

<x-ui.callout>

Callouts

One conclusion, stated plainly.

Ok callout

The explanation sits under the headline.

Watch callout

The explanation sits under the headline.

Risk callout

The explanation sits under the headline.

Neutral callout

The explanation sits under the headline.

<x-ui.empty>

Empty state

No data sources yet

Drop in a spreadsheet to get started.

<x-ui.table>

Table

Columns are data: key, label, format. Figures right-align and use the mono face on their own.

Strain METRC tag Weight Value Action
Night Orchard
Eighths
1A4FF0300002C00000040312 9.6 lb $17,400 Discount
Copper Haze
Bulk flower
1A4FF0300002C00000041499 15.0 lb $13,600 Extract
Gas Lantern
Eighths
1A4FF0300002C00000042686 6.6 lb $11,500 Discount

<x-ui.drawer> <x-ui.field>

Drawer

Edit a record without leaving the page.

<x-ui.inline-edit>

Inline edit

One field, edited where it sits. Enter saves, Esc cancels.

<x-ui.segmented> <x-ui.switch> <x-ui.chip>

Choices

<x-ui.dropdown> <x-ui.menu-item> toast

Menus and toasts

<x-ui.illustration>

Illustrations

Drawn in tokens, so they follow dark mode.