Skip to content

Design system

Calm, on purpose.

The tokens and components behind the dashboard. This page uses the real stylesheet, so what you see here is what ships.

Principles

Four rules decide most design questions in this product.

Color

Tokens are CSS custom properties with a light and a dark set. Switch the theme above and the values and ratios below update.

Contrast, measured live

Text needs 4.5 to 1. Control borders need 3 to 1. The numbers are computed in your browser from the current theme.

UsePairRatioResult
Body text--ink on --surface
Secondary text--ink-muted on --surface
Secondary text on cards--ink-muted on --surface-raised
Tertiary text--ink-faint on --surface
Links, KPI accent--accent on --surface
Filled button--on-accent on --accent
Info tag--accent on --accent-soft
Calm tag--calm on --calm-soft
Closed tag--closed on --closed-soft
Caution tag, callout--caution on --caution-soft
Control borders (non-text)--line-strong on --surface

Type

Two families, both from the system, so the page makes no font requests. Display for headings and numbers, sans for everything else, mono for dates and code.

h1 / --t-xlThe search, in numbers.
KPI number94
h2 / --t-lg 28Funnel
--t-md 18Search for free, from new sources, or check a link.
--t-base 15Body text. Line height 1.55, at most 70 characters wide.
--t-sm 13Label and caption text
--mono2026-03-16

Space and shape

Space follows a 4 point scale. Corners are soft: pills for controls, rounded squares for cards.

--s-14px
--s-28px
--s-312px
--s-416px
--s-524px
--s-632px
--s-748px
--s-864px
--r-sm
12
--r-md
22
--r-lg
28
--r-pill
--shadow-pop
menus

Motion

Motion is short and only confirms an action. Two durations: 120 ms for controls, 250 ms for bars that change width. Everything is switched off when the system asks for reduced motion.

TokenValueUsed for
--dur-1120 msHover, press and selection on buttons, chips and tags
--dur-2250 msBars in the funnel, gates and fit charts
--easeeaseAll transitions

Components

Each component shows the real markup, when to use it, and what it does for accessibility.

Button

The one thing to do on this page is a filled button. Everything else is ghost. Use small for dense rows, caution only for actions that lose data.

Markup
<button class="btn" type="button">Add listing</button>
<button class="btn ghost" type="button">Download CSV</button>
<button class="btn ghost sm" type="button">Edit</button>
<button class="btn caution" type="button">Clear data</button>
<button class="btn" type="button" aria-disabled="true">Save</button>
<button class="btn ghost" type="button" aria-pressed="true">Done</button>

Accessibility. Real <button> elements. Minimum height 40 px (WCAG 2.2 target size asks for 24). Disabled uses aria-disabled so it stays focusable and explainable. Toggles use aria-pressed and change their text, not only their colour.

Tag

A status the reader needs at a glance. Always has text. Colour only adds emphasis.

Waiting Interview Closed Steady Check this
Markup
<span class="tag">Waiting</span>
<span class="tag accent">Interview</span>
<span class="tag closed">Closed</span>
<span class="tag calm">Steady</span>
<span class="tag caution">Check this</span>

Accessibility. Text carries the meaning, so the tag still works in forced-colors mode and for colour-blind readers. Contrast is checked in both themes on the table above.

Chip filter and segmented control

Chips filter a list. A segmented control switches between two or three modes of the same view.

Markup
<div class="chips" role="group" aria-label="Filter">
  <button class="chip" type="button" aria-pressed="true">All</button>
  <button class="chip" type="button" aria-pressed="false">Waiting</button>
  <button class="chip" type="button" aria-pressed="false">Interview</button>
</div>
<div class="seg" role="group" aria-label="Language" style="max-width:160px;margin-top:12px">
  <button type="button" aria-pressed="true">EN</button>
  <button type="button" aria-pressed="false">ES</button>
</div>

Accessibility. A group with an aria-label, each button with aria-pressed. Arrow keys are not needed because every option is a tab stop. The pressed state has a fill and a heavier weight.

Field

A label above, a hint below, an error as text. The error never relies on colour alone.

Used only in the follow-up drafts you copy.
Add https:// at the start.
Markup
<div class="field">
  <label class="label" for="ds-name">Your name</label>
  <input class="input" id="ds-name" type="text" aria-describedby="ds-name-h">
  <span class="hint" id="ds-name-h">Used only in the follow-up drafts you copy.</span>
</div>
<div class="field" style="margin-top:16px">
  <label class="label" for="ds-link">Portfolio link</label>
  <input class="input" id="ds-link" type="url" value="joselblas" aria-invalid="true" aria-describedby="ds-link-e">
  <span class="err" id="ds-link-e">Add https:// at the start.</span>
</div>

Accessibility. The label is a real label element. The hint and the error are linked with aria-describedby. Invalid fields get a thicker border plus the message.

Callout

A short note inside a page. Info explains, calm reassures, caution asks for care.

Sample data. Nothing here is real until you connect your folder.

Stays on your computer. The dashboard makes no network requests.

Small sample. 26 applications is a hint, not a result.

Markup
<div class="callout info"><i aria-hidden="true">i</i><p><strong>Sample data.</strong> Nothing here is real until you connect your folder.</p></div>
<div class="callout calm" style="margin-top:12px"><i aria-hidden="true">&#10003;</i><p><strong>Stays on your computer.</strong> The dashboard makes no network requests.</p></div>
<div class="callout caution" style="margin-top:12px"><i aria-hidden="true">!</i><p><strong>Small sample.</strong> 26 applications is a hint, not a result.</p></div>

Accessibility. The icon is decorative and hidden from assistive tech, the first word does the work. Use role="status" only for a note that appears after an action.

Card and KPI

A card groups one idea. A KPI is one number and one label, never a number alone.

37
Logged
26
Applied
2
Interview or better
Markup
<div class="kpis" style="grid-template-columns:repeat(auto-fit,minmax(120px,1fr))">
  <div class="card kpi"><div class="n">37</div><div class="label">Logged</div></div>
  <div class="card kpi"><div class="n">26</div><div class="label">Applied</div></div>
  <div class="card kpi accent"><div class="n">2</div><div class="label">Interview or better</div></div>
</div>

Accessibility. Cards are sections with a heading. KPI numbers use tabular figures so they do not jump. The label is always visible text.

Checklist row

One step with a state and, when it needs it, one action. Used on Proof.

  • Positioning sentence written
  • Six-second signal check done
Markup
<ul class="chk" style="max-width:460px">
  <li class="ok"><i aria-hidden="true">&#10003;</i><span>Positioning sentence written</span><button class="btn ghost" type="button" aria-pressed="true">Done</button></li>
  <li><i aria-hidden="true"></i><span>Six-second signal check done</span><button class="btn ghost" type="button" aria-pressed="false">Mark done</button></li>
</ul>

Accessibility. The circle is decorative. State is in the button text (Mark done, Done) and in aria-pressed.

More menu

One primary action and the rest tucked away. Built on a native details element.

More
Markup
<div class="actions" style="min-height:190px;align-items:flex-start">
  <button class="btn" type="button">Add listing</button>
  <details class="more"><summary class="btn ghost">More</summary>
    <div class="more-menu"><button class="btn ghost" type="button">Load tracker.csv</button><button class="btn ghost" type="button">Sample data</button><button class="btn ghost" type="button">Download CSV</button></div>
  </details>
</div>

Accessibility. Works without JavaScript. The app closes it on a choice and on Escape, and returns focus to the summary.

Empty state

Say what is missing and what to do next, in one line.

Nothing loaded yet. Try the sample data to see how it works, or load your own files.

Markup
<p class="proof-empty">Nothing loaded yet. Try the sample data to see how it works, or load your own files.</p>

Accessibility. Plain text next to the primary action, not an illustration alone.