---
name: hq-product-ui
description: "HQ's product UI guidelines: monochrome tokens, Instrument Sans type scale, components, motion, dark mode and a Tailwind v4 starter. Use when building internal tools, dashboards, admin screens, data views or client portals for HQ, meaning anything people work in rather than read."
---

# HQ Brand: Building UI vs. Marketing Material

HQ has two visual modes that share one identity:

- **Marketing:** websites, decks, social posts, proposals. This follows the main HQ brand guide: Deep Sea, Sky Blue, Orange, Tan and Sand; Instrument Sans (Nib Pro for marketing headings); square corners; wave patterns.
- **Product UI:** internal tools, dashboards, apps, and anything people *work in* rather than *read*. This follows the guidelines below, first set in HQ Workflows (workflows.builtbyhq.com).

The reasoning: marketing needs to catch the eye and carry the brand's warmth. UI needs to stay out of the way. Someone scanning 100 cards needs meaning to jump out, and brand color everywhere turns into noise. So the UI is almost entirely black, white and gray. Color is saved for a few small indicators that mean something.

## Which mode to use

| Building… | Mode |
|---|---|
| Website pages, landing pages, case studies | Marketing |
| Proposals, pitch decks, one-pagers | Marketing |
| Social graphics, email campaigns | Marketing |
| Internal tools, dashboards, admin screens | UI |
| Data views, tables, maps, flows, trackers | UI |
| Client-facing portals or apps people use repeatedly | UI, with brand touches (see below) |
| Login or password screens for tools | UI |

**If you're unsure,** ask whether someone will use the thing for more than a few minutes at a time. If yes, use UI.

## What both modes share

- **The logo:** the HQ mark in brand colors, Sky Blue (#84D7DC) letters on a Deep Sea Dark (#153439) square, even in otherwise monochrome UI. In UI it sits flush top-left and fills the top bar's full height (48px mark in a 49px bar).
- **The favicon:** the same colored mark.
- **The typeface:** Instrument Sans. Marketing adds Nib Pro for headlines; UI sticks to regular and medium.
- **Voice:** plain, direct, sentence case.
- **Brand colors in UI:** only the logo uses them. Don't tint UI surfaces with Sand, Tan or Sky Blue.

---

# UI guidelines

## Principles

1. **Start minimal.** Don't add elements that aren't needed. Begin with less and add only when something is missing.
2. **Monochrome first.** Black, white and a few grays do the work. Meaning comes from shape, weight, borders and position before hue.
3. **Color only for small indicators.** Dots, star icons, thin edges, minimap marks. Never text, never large surfaces. The one exception is the very light red blocker wash.
4. **Fewer text sizes.** Three (12, 13 and 16px) is generally a good rule of thumb. If you're reaching for a fourth, check whether the hierarchy could be simpler.
5. **Consistent controls.** Where you can, use one style per job: one tag pill, one checkbox row, one segmented control.
6. **Quiet until touched.** Secondary icons stay gray and turn black on hover.
7. **Everything eases.** Nothing snaps open or shut.

## Color

All colors are CSS variables (tokens). Components use the token, never a raw hex value.

### Neutrals

| Token | Light | Dark | Use |
|---|---|---|---|
| `--bg` | #ffffff | #0a0a0a | Page, bars, sidebars, panels |
| `--surface` | #ffffff | #0f0f0f | Cards, tables, list rows |
| `--surface-2` | #f4f4f4 | #1a1a1a | Hover rows, selected rows, active tab, code blocks |
| `--border` | #e6e6e6 | #262626 | Default 1px borders and dividers |
| `--border-strong` | #c9c9c9 | #404040 | Card outlines, dashed idea tags, connector lines |
| `--text` | #0a0a0a | #f5f5f5 | Primary text, and the "ink" for active states |
| `--text-muted` | #6b6b6b | #969696 | Secondary text, labels, counts |
| `--inverse` | #ffffff | #0a0a0a | Text on an ink (black) fill |
| `--icon-faint` | #a3a3a3 | #6e6e6e | Resting icons (app marks); turn `--text` on hover |

### Canvas (map or board views)

| Token | Light | Dark | Use |
|---|---|---|---|
| `--canvas` | #ebebeb | #1b1b1b | Grid background; also the background behind list tables |
| `--canvas-dot` | #b3b3b3 | #444444 | Grid dots |
| `--band` | #f5f5f5 | #141414 | Column backgrounds on the canvas |

Columns sit a step closer to the card color than the grid does, so white cards read as grouped. In dark mode the relationship flips with the cards: the columns are darker than the grid.

### Accent hues (indicators only)

| Token | Light | Dark | Meaning |
|---|---|---|---|
| `--hue-skill` | #16a34a | #4ade80 | Green: has a skill / done by an existing tool |
| `--hue-idea` | #ea580c | #fb923c | Orange: a skill idea / could be automated |
| `--hue-client` | #2563eb | #60a5fa | Blue: needs the client |
| `--hue-gate` | #dc2626 | #f87171 | Red: blocker / work stops |

Each hue marks one meaning across the whole product. Don't reuse a hue for something else, and don't add a fifth without retiring one.

### The blocker wash

Blockers are the one place a hue touches a surface, and only as a very light wash:

| Token | Light | Dark |
|---|---|---|
| `--gate-tag-bg` | #fef2f2 | red at 10% opacity |
| `--gate-tag-border` | #fecaca | red at 30% opacity |
| `--gate-tag-border-hover` | #f87171 | red at 70% opacity |

It's used on blocker tags, and on the expanded blocker card in a detail panel.

## Typography

- **Instrument Sans** (weights 400 and 500) for everything, the same family as marketing.
- **DM Mono** (400) only for machine names: skill names, IDs, file paths, code.
- Google Fonts: `Instrument+Sans:wght@400;500&family=DM+Mono:wght@400`
- Medium (500) is the only emphasis weight. Nothing bold; no italics except "not set" style placeholders.

| Size | Line height | Use |
|---|---|---|
| 16px | 22px | Screen titles, panel titles |
| 13px | 19px | Body: the default for text, buttons, rows, card text |
| 12px | 16px | Tags, labels, counts, hints, section headers, tooltips |

**Sentence case everywhere:** titles, buttons, labels, tabs, card text ("Send deposit invoice", not "Send Deposit Invoice"). Data typed in lowercase gets its first letter capitalized for display.

**Section labels** are 12px muted text in sentence case. Don't use the marketing "preheading" style (uppercase, tracked) in UI.

## Shape and spacing

- **Corner radius: 4px for containers, 3px for small elements inside them.** 4px covers cards, buttons, inputs, dropdowns, panels and segmented-control frames. 3px covers tags and the sliding highlight inside a segmented control, so the inner corner nests neatly inside the outer one. Only dots are round. (Marketing uses 0; UI softens slightly to help small elements read as units.)
- **Borders: 1px.** Use `--border` by default and `--border-strong` for card outlines.
- **No drop shadows** except on overlays that cover content on phones.
- **Spacing** is a 4px grid (4 / 6 / 8 / 12 / 16 / 20px). Cards have an even 12px inset on all sides.
- **Bar heights:** the top bar is 49px (48px plus a 1px border). Secondary toolbars and sidebar headers are 45px, and toolbars side by side must match exactly.

| Element | Size |
|---|---|
| Filter sidebar | 272px open, 44px icon rail when collapsed |
| Detail panel | 380px; 480px when showing a document; full width on phones |
| Map card | 248px wide; height fits the content |
| Tag | 18px tall, 6px side padding |
| Gap between columns | 72px (with an arrow); 160px before side columns |

## Components

### Tags (pills)
One pill style for every tag kind: 18px tall, 1px border, 3px radius, 12px text, a 10px marker on the left. Each kind is told apart by its marker and border, not by fill:

| Kind | Marker | Border | Text |
|---|---|---|---|
| Skill | green star | solid `--border` | ink, **DM Mono** |
| Skill idea | orange star | **dashed** `--border-strong` | muted, **DM Mono** |
| Client need | blue person | solid `--border` | ink, "Client · input" |
| Blocker | red stop sign | blocker wash | ink, "Blocker · action: sign" |
| App | the app's logo mark, gray (no pill) | none | tooltip only |

On cards, tags stack one kind per row in a fixed order: skills, ideas, client or blocker, then apps.

### Cards
White surface, 1px `--border-strong` outline, 4px radius, even 12px inset. Title in 13px sentence case, clamped to 3 lines. Optional items get a **dashed** outline instead of a tag. Selected or highlighted cards get an ink border plus a 1px ink ring.

### Buttons
The secondary style is the default: surface fill, 1px `--border`, 4px radius, 13px text, an optional 13px icon on the left, and a `--border-strong` border on hover. Primary actions are rare. When needed, use an ink fill (black on light, white on dark) with inverse text. Icon-only buttons are borderless, muted, turn ink on hover, and always have a label for screen readers.

### Segmented controls (tabs, view switch, theme)
One pattern: a 1px bordered, 4px-radius container with 2px padding. The active option sits on a 3px-radius highlight that **slides** between options (200ms ease-out). For main screen tabs, the highlight is `--surface-2` with ink text. For compact switches (Flow/List, light/dark), it's an ink fill with inverse text.

### Checkbox rows
The only filter control: a 14px native checkbox tinted ink, then an optional 12px marker (star, person, stop, dashed box), then the 13px label. The whole row is clickable. Every filter is a checkbox, so there are no toggles and no radio lists.

### Dropdowns
A native `<select>` styled as a title: 1px border, 4px radius, 13px medium text, and a chevron on the right. Focus is shown by the border darkening to `--border-strong`, never by a black ring.

### Search
A bordered field with a search icon and a `⌘K` hint on the right. `⌘K` or `/` focuses it from anywhere, and Escape clears it.

### Collapsible sections
A chevron (12–14px) rotates 90° when open. Content eases open and shut (below). A collapsed section shows a count if it holds active filters.

### Side panels
They slide in from the right (detail) or collapse to an icon rail on the left (filters). The header row holds context text on the left and icon buttons on the right (prev, next, close). Documents opened from a panel show inside it with a **Back** button, rather than jumping to another screen.

### Tooltips
Instant (no native delay): an ink pill with inverse 12px text, placed above the element. Use them for icon-only items like app marks. Don't put essential information only in a tooltip.

### Rendered documents (markdown)
13px body with 16px headings, `--surface-2` code blocks with a 1px border, DM Mono at 12px for code, and tables with 1px `--border` cells.

## Icons

- **Stroke icons:** 24×24 viewBox, 2px stroke, round caps and joins, `currentColor`. Shown at 13–16px.
- **Status markers:** a 10px glyph in the matching hue (a star for skills and ideas, a person for client, a stop sign for blockers).
- **Third-party logos:** Simple Icons (CC0) where available. Always one color, drawn in `currentColor`: gray at rest, ink on hover. Never use full-color app logos in UI.

## Motion

| What | How |
|---|---|
| Expand / collapse (sections, list groups, cards) | Height eases from 0 to auto: 200ms, ease-out, with a fade |
| Panels and sidebars | Width eases open and shut: 200ms, ease-out; content stays until closed |
| Segmented highlight | Slides to the active option: 200ms, ease-out |
| Screen or view switch | Content fades in: 180ms |
| Chevron | Rotates 90° |
| Hover color changes | 200ms |

Respect `prefers-reduced-motion`: all durations drop to near zero.

## Interaction

- **Hand cursor** on everything clickable, including checkbox rows and cards.
- **Hover to highlight related items:** hovering a tag outlines every item that shares it (the same skill, the same client need, every blocker).
- **Filtered-out items** hide by default, with an option to dim them to 25% opacity instead.
- **Focus:** a 2px ink outline, offset 2px, for keyboard focus only. Text fields and dropdowns show focus through their border instead.
- **Keyboard:**
  - `⌘K` and `/` focus search.
  - Arrow keys move through lists; Enter opens details.
  - Escape steps back one layer at a time: a document inside a panel, then the panel, then filters.
- **Links reflect state:** filters, the selected item and the open document are all in the URL, so any view can be shared.

## Dark mode

- Light is the default. Dark follows an explicit choice, remembered per person.
- Every token has a dark value. Never hard-code a light color.
- Accent hues shift one step lighter in dark mode so they stay readable.
- Relationships stay the same, not the literal values: whatever sits closer to the cards stays closer to the cards.

## Copy in UI

- Sentence case, short labels, no end punctuation on labels or buttons.
- Name things by what the person cares about: "Blocker", not "Gate"; "Has no skill", not "Uncovered".
- Counts carry their unit: "11 steps", "1 task", "2 blockers", with correct singular and plural.
- Machine names (skills, IDs) stay exactly as written, in DM Mono.

## Avoiding a Claude look

Interfaces Claude generates tend to look alike: busy, decorated and over-explained. When Claude builds a tool for HQ, push it toward less.

- **Few styles.** One card style, one button style, one way to show status. If two things look different, they should mean different things.
- **Less content.** Show what someone needs to act on and put the rest a click away. Skip helper text under every field and a description under every heading.
- **Be minimal.** Start with the fewest elements that work, and add only when something is missing.
- **No colored left border on cards.** The accent stripe is one of the most recognizable AI-generated patterns. Use the card's outline, or a small marker if it needs one.
- **No decorative icons.** No icon in a tinted circle or rounded square next to every heading, stat or list item.
- **Stats only when useful.** Skip rows of stat cards with big numbers and trend arrows unless someone will act on those numbers.
- **No effects.** No gradients, glows, glass effects or large drop shadows.
- **No emoji.** Keep them out of labels, buttons and headings.
- **Badges for attention.** Use them only where something needs attention. A pill on every row stops meaning anything.
- **Flat structure.** No large corner radii or cards nested inside cards. Corners stay at 4px, and a section rarely needs more than one container.
- **Skip the hero.** Tools don't need a welcome banner or a "Welcome back" greeting. Open straight on the work.
- **Sentence-case labels.** No uppercase, letter-spaced section labels. Sentence case at 12px does the job.

## Generally avoid

Things to think twice about. These are guidelines, not hard rules.

- Brand Sand, Tan, Orange or Sky Blue as UI surfaces or text colors (the logo is the exception).
- Accent hues on text, large fills, or decoration.
- A fourth text size, or a bold weight.
- Mixed control styles, like a toggle switch next to checkboxes, or square tabs next to rounded ones.
- The black focus ring on mouse clicks, or on dropdowns.
- Anything that snaps open.

## Tailwind v4 starter

```css
@import "tailwindcss";

:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f4;
  --border: #e6e6e6; --border-strong: #c9c9c9;
  --text: #0a0a0a; --text-muted: #6b6b6b; --inverse: #ffffff;
  --canvas: #ebebeb; --canvas-dot: #b3b3b3; --band: #f5f5f5; --icon-faint: #a3a3a3;
  --hue-skill: #16a34a; --hue-idea: #ea580c; --hue-client: #2563eb; --hue-gate: #dc2626;
  --gate-tag-bg: #fef2f2; --gate-tag-border: #fecaca; --gate-tag-border-hover: #f87171;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --surface: #0f0f0f; --surface-2: #1a1a1a;
  --border: #262626; --border-strong: #404040;
  --text: #f5f5f5; --text-muted: #969696; --inverse: #0a0a0a;
  --canvas: #1b1b1b; --canvas-dot: #444444; --band: #141414; --icon-faint: #6e6e6e;
  --hue-skill: #4ade80; --hue-idea: #fb923c; --hue-client: #60a5fa; --hue-gate: #f87171;
  --gate-tag-bg: rgb(248 113 113 / 0.1); --gate-tag-border: rgb(248 113 113 / 0.3);
  --gate-tag-border-hover: rgb(248 113 113 / 0.7);
}

@theme {
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-xs: 12px; --text-xs--line-height: 16px;
  --text-sm: 13px; --text-sm--line-height: 19px;
  --text-lg: 16px; --text-lg--line-height: 22px;
  --radius: 4px;     /* containers */
  --radius-sm: 3px;  /* tags and segment highlights */
  --color-bg: var(--bg); --color-surface: var(--surface); --color-surface-2: var(--surface-2);
  --color-line: var(--border); --color-line-strong: var(--border-strong);
  --color-ink: var(--text); --color-muted: var(--text-muted); --color-inverse: var(--inverse);
  --color-hue-skill: var(--hue-skill); --color-hue-idea: var(--hue-idea);
  --color-hue-client: var(--hue-client); --color-hue-gate: var(--hue-gate);
}

body { background: var(--bg); color: var(--text); font: 13px/19px var(--font-sans); -webkit-font-smoothing: antialiased; }
:focus-visible:not(input, textarea, select) { outline: 2px solid var(--text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
```

*Reference implementation: HQ Workflows (`hq/hq-workflows`), `src/index.css` and `src/components/ui.tsx`.*
