Style Guide
Spacing, icons, and colors shared by the prototypes.
Chips and surfaces follow the theme toggle. Hex values and contrast ratios in Priority and Status are dark-theme values; the tables below list both themes.
Priority
5.9:1 AA · two chevrons
6.6:1 AA · one chevron
10.7:1 AA · dash-lg
6.6:1 AA
Status
6.9:1 AA · teal
6.6:1 AA
5.9:1 AA
5.6:1 AA
10.7:1 AA · archive
Document / tag hues
Defined per theme on :root and :root[data-theme="light"] in assets/theme.css. Used for tag chips, avatars, and schedule dots.
| Variable | Dark | Light |
|---|---|---|
--tag-purple | #9b85ad | #5b456f |
--tag-blue | #6570a9 | #4a548d |
--tag-green | #6ba965 | #477441 |
--tag-yellow | #a9a465 | #716c35 |
--tag-red | #a96566 | #8a4445 |
Attachment file types
Icon color for each file type in the Ledger's Attachments list. Types not listed fall back to --gray-300.
| File type | Variable | Dark | Light |
|---|---|---|---|
--tag-red | #a96566 | #8a4445 | |
| XLS | --tag-green | #6ba965 | #477441 |
| DOC, RTF | --tag-blue | #6570a9 | #4a548d |
| MD | --tag-blue | #6570a9 | #4a548d |
| DWG | --tag-yellow | #a9a465 | #716c35 |
| PNG, JPG | --tag-purple | #9b85ad | #5b456f |
| MP4, MOV, WEBM | --tag-purple | #9b85ad | #5b456f |
| Other | --gray-300 | #a1a1aa | #52525b |
Spacing
One 4px base unit, --spacing: 0.25rem, based on Tailwind v4.
| Step | CSS variable | Tailwind | Size | Gap |
|---|---|---|---|---|
| 0.5 | --spacing-0-5 |
gap-0.5 |
2px · 0.125rem | |
| 1 | --spacing-1 |
gap-1 p-1 |
4px · 0.25rem | |
| 2 | --spacing-2 |
gap-2 p-2 |
8px · 0.5rem | |
| 3 | --spacing-3 |
gap-3 p-3 |
12px · 0.75rem | |
| 4 | --spacing-4 |
gap-4 p-4 |
16px · 1rem | |
| 6 | --spacing-6 |
gap-6 p-6 |
24px · 1.5rem | |
| 8 | --spacing-8 |
gap-8 p-8 |
32px · 2rem |
Typefaces
Inter sets all interface text. Numbers in aligned columns, such as entry IDs and dates, use tabular figures so their digits share one width. Stratagem is the brand face and is used only where the brand mark appears, today the avatar initials. Each family has a system fallback in case the font fails to load.
| Family | Class | Used for | Source | Fallback |
|---|---|---|---|---|
| Inter | font-sans | All interface text: titles, labels, buttons, fields, metadata. Aligned numbers use tabular-nums | Google Fonts, variable: opsz 14–32, wght 400–700 | ui-sans-serif, system-ui |
| Stratagem | font-brand | Brand mark: avatar initials | Custom WOFF2: assets/fonts/Stratagem.woff2 | ui-monospace, Menlo |
Inter weights
Regular 400 · Repair Air Handlers
Medium 500 · Repair Air Handlers
Semibold 600 · Repair Air Handlers
Bold 700 · Repair Air Handlers
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm 0123456789
Tabular figures
Digits keep one width with tabular-nums, so stacked IDs and dates end at the same edge. Apply it to numbers that sit in a column or list and need to line up.
- Entry IDs in the entry list on default and comfortable cards (
entry-card__id) - Predecessor and successor IDs on the schedule chips
- Entry dates in the entry list (
entry-card__date)
Dates use a two-digit day with a leading zero (Jan 06, not Jan 6), so every date has the same number of digits.
Stratagem
Surface colors
Surfaces are neutral grays. Navy is kept for two jobs: selection (an active entry card) and toolbars, so the blue sits on controls and state rather than on panels. The scale is Tailwind's zinc palette (hue 240, 4–6% saturation), renamed gray and numbered by role: 100 is foreground, 700 is the page, 800 is the inset well. Roles keep their number when the light theme inverts the steps.
Neutral scale
| Step | Used for | Tailwind | Dark | Light |
|---|---|---|---|---|
--gray-100gray-100 | Text primary | zinc-100 | Aa#f4f4f5 | Aa#09090b |
--gray-200gray-200 | Text secondary | zinc-300 | Aa#d4d4d8 | Aa#27272a |
--gray-300gray-300 | Labels, placeholders, icons | zinc-400 | Aa#a1a1aa | Aa#52525b |
--gray-400gray-400 | Strong border, divider, icon hover | zinc-600 | Aa#52525b | Aa#d4d4d8 |
--gray-500gray-500 | Border, hover tint | zinc-700 | Aa#3f3f46 | Aa#e4e4e7 |
--gray-600gray-600 | Panel, raised surface | zinc-800 | Aa#27272a | Aa#f4f4f5 |
--gray-700gray-700 | Page, entry list | zinc-900 | Aa#18181b | Aa#ffffff |
--gray-800gray-800 | Header, menus, tooltip | zinc-950 | Aa#09090b | Aa#f4f4f5 |
--gray-900gray-900 | Scrim (modal backdrop) | black | Aa#000000 | Aa#e4e4e7 |
Surface aliases
Background aliases from the Ledger demo, defined per theme on :root and :root[data-theme="light"]. Each points at a scale step, shown in the second line. Fields sit one step off the panel they live on (dark: zinc-900 on zinc-800), so they read as inset without a hard well. Hover lifts them with a 40% tint instead of a new fill. Status, priority, and document colors are covered in their own sections.
| Variable | Used for | Dark | Light |
|---|---|---|---|
--bg-header--gray-800 | Header, deepest layer | Aa#09090b | Aa#f4f4f5 |
--bg-toolbar--toolbar-background | Ledger toolbars: entry header, list and comments search bars | Aa#202435 | Aa#e4e7f0 |
--bg-field--gray-700 dark · --gray-700 light | Editable and combo fields. Dark: one step darker than the panel. Light: white, one step lighter than the gray panel. Not a hard well in either theme | Aa#18181b | Aa#ffffff |
--bg-page--gray-700 | Page background, entry list, default card | Aa#18181b | Aa#ffffff |
--bg-panel--gray-600 (--panel-background) | Ledger panel, modal | Aa#27272a | Aa#f4f4f5 |
--bg-hover--gray-500 at 40% | Row, field, and card hover; dropdown focus | Aagray-500/40 | Aagray-500/40 |
--bg-dropzone--dropzone-background | Attachment dropzone | Aa#251733 | Aa#f6f1f8 |
Navy: selection and toolbars
Navy is used for two things only. Selection (navy-500 with a navy-400 edge) marks the one thing that is active. Toolbars (--bg-toolbar) give the header bars a dark blue cast. Panels, fields, and lists stay gray.
| Variable | Used for | Dark | Light |
|---|---|---|---|
--bg-selected--navy-500 | Active entry card, pressed toggle | Aa#2e334c | Aa#d4d8e4 |
--bg-selected-edge--navy-400 | Selected card right edge | Aa#565c7a | Aa#b9becd |
Text colors
Foreground aliases from the Ledger demo, defined per theme on :root and :root[data-theme="light"]. Each sample sits on the page background for its theme (gray-700 dark, white light).
| Variable | Used for | Dark | Light |
|---|---|---|---|
--text-primary--gray-100 | Titles, card titles, primary values, input text | Aa#f4f4f5 | Aa#09090b |
--text-secondary--gray-200 | Secondary text, comment bodies | Aa#d4d4d8 | Aa#27272a |
--text-metadata--body | Metadata, entry IDs, copyable labels | Aa#b4b5b7 | Aa#303441 |
--text-label--gray-300 | Field labels, group headings, placeholders, icons | Aa#a1a1aa | Aa#52525b |
--text-action--action-click: --pink-300 dark · --pink-500 light | Focused or open field label, links | Aa#d39dc2 | Aa#910a67 |
--text-accent--icon-accent | Checkmarks, syntax tokens, selected icons | Aa#d39dc2 | Aa#650748 |
--text-action resolves to --action-click. The pink palette is not inverted in light, so the Ledger sets --action-click to --pink-300 in dark and --pink-500 in light (#910a67 on white). Hovered entry and attachment names use --text-link-hover: --pink-200 dark, --pink-600 light.