Visual direction

Life's visual direction — clean, minimal and precisely aligned. Soft canvas, hairline-bordered surfaces, grey trays, shared alignment lines, consistent row rhythm, one grey for utility icons and colour only where it identifies a thing. Elevation is flat by default, with a very subtle shadow only where one layer sits above another. Maps the moodboard onto existing --sv-* tokens. Use when building, polishing, plating or prototyping any Life component or screen, or when the user asks how UI should look, feel or be styled.

Production-ready: PRODUCTION_READY.md · Index. This skill decides how a surface looks. It does not replace token rules in DESIGN.md, greyscale focus, Hugeicons Standard, or the light + dark bar.

The direction comes from fourteen reference screens in assets/. Open the closest one before styling a new surface; references/moodboard.md says what to take from each. Take their alignment, rhythm, radii, type, icon use and restraint. Apply the rules below in both themes using existing semantic tokens only. A new primitive token requires the Figma sync in AGENTS.md and is out of scope for a styling pass.

The look in one paragraph

Clean, quiet and exact. A near-white canvas with work on surfaces defined by a hairline and large rounded corners. Related controls sit in a grey tray. Everything lines up: icons in one column, labels on one shared line, trailing meta on one right edge. Rows keep one height and one gap; groups are separated by a bigger gap and a muted label. Hover and selection are a flat grey fill that bleeds past the text. Text is regular weight; hierarchy comes from tone, size and spacing, not bold. Utility icons are one grey. Colour appears only where it identifies something: an entity glyph, a brand logo, a status, a destructive action. Layers are flat; a very faint shadow appears only when one layer genuinely sits above another.

Surface roles

RoleTokenUse for
Ground--sv-background-canvasPage and pane background.
Surface--sv-background-primary + 1px --sv-border-defaultComposer, sheets, cards, popovers, menus, content pane.
Tray--sv-background-chromeSidebar column, segmented-control wells, palette shells, card header bands, footer bands inside a surface.
  • Shared fills are allowed. A product may set the sidebar, centre pane and right pane to one plane (canvas or primary). Then the panel borders alone separate them: one --sv-border-default edge per panel, drawn by the panel, never doubled. Record the choice; do not mix fills panel by panel.
  • Never stack more than two planes in one place: ground → surface, tray → surface, or surface → tray band.
  • Grouped white lists inside a tray are allowed when the groups are real (grouped palette, image 12; card with header band, image 13). Otherwise rows sit directly on their plane, grouped by spacing and a muted label.
  • A footer band (helper text, legend) inside a surface uses the tray fill and a hairline above it (image 11).

Alignment

The single most important rule. Before shipping, draw the vertical lines and check every element sits on one.

  • Icon column. Every row in a list puts its icon in the same fixed-width column (16px glyph, or a 20–24px tile). Rows without an icon still align their label to the label line, not the icon line.
  • Label line. Labels, section labels, header titles and inline descriptions share one left edge. Section labels align to the label line in icon-less lists (image 8) and to the icon line in icon lists (image 14); pick one per list and keep it.
  • Right edge. Trailing meta (dates, counts, kbd hints, switches, badges, chevrons, overflow buttons) ends on one shared right edge. Numbers use font-variant-numeric: tabular-nums.
  • Bleed, don't shift. A row's hover or selected fill extends past its content by the row's inline padding (negative margin or a padded row inside a narrower content box). The text never moves when a row is highlighted.
  • Menu separators. Use a one-pixel line separator, not blank space, and put at most one between an add-action and the list. Add-actions sit at the top of a menu.
  • Control heights. A button beside a field takes the field's height (36px); do not mix 32px buttons with 36px fields in one row.
  • Dividers either run full-bleed across the surface or inset exactly to the row padding. Never somewhere in between.
  • Shared widths. A field and the popover it opens share a left edge and a width (image 11). A header row and the list below it share the same insets.

Spacing and rhythm

  • 8px grid. Surface inset 12px (8px when the content has its own padding, such as a textarea). Popover and menu inset 6px.
  • One row height per list: 32px for menus, dense lists and catalog-style navigation; 36px for palette rows and short app sidebars. Gap between rows 2px or 0, never mixed.
  • Group gap ≥ 2× row gap. A section label sits 16–24px below the previous group and 4px above its own rows.
  • Group with whitespace and muted labels before reaching for a divider. Use a divider only between groups inside one popover, menu or card.
  • Leave generous space around surfaces.

Shape

ElementRadius
Surface (composer, sheet, palette, card)--sv-radius-20 (hero: --sv-radius-24)
Popover, menu--sv-radius-16
Row or inset tile inside a surfaceconcentric: outer radius − inset − 1px hairline (16 − 6 − 1 ≈ 10)
Row in a tray--sv-radius-10
Glyph tile, date cell, segment--sv-radius-8
Chips, pills, avatars, icon buttons, send--sv-radius-full
Kbd hint--sv-radius-6

Keep corners concentric: derive the inner radius from the outer radius and inset.

One-radius override. When a product states a single corner radius (for example 12px), it replaces the table above for lists, buttons, fields and dialogs together. Rows inside a boxed list stay square so dividers run straight; only the first and last row follow the list's corners. Do not keep concentric rounding on rows in that case.

Depth

Flat by default. Elevation is a signal that one layer sits above another, never decoration, and always very subtle. Every elevated layer also keeps its hairline.

LevelShadowUse for
0 · In flownoneGround, trays, surfaces in the page (composer, sheet in a pane, content cards), rows, buttons, chips.
1 · Raised in place--sv-elev-cardThe selected segment of a segmented control, a white group on a tray, an inner surface under a card's header band.
2 · Floating--sv-elev-2Popovers, menus, dropdowns, date pickers, hover cards, toasts.
3 · Modal--sv-elev-3 + scrimDialogs and the command palette.
  • Do not use --sv-elev-5, --sv-mat-composer-shadow or a custom box-shadow for depth.
  • Nothing lifts or gains a shadow on hover, press or focus. Hover is a fill change only.
  • box-shadow is otherwise allowed only for focus rings and inset hairlines that avoid a layout shift.
  • Focus changes the border to --sv-border-focus (greyscale ring rules still apply to controls).

States

StateTreatment
HoverFlat grey fill, --sv-background-hover.
Selected / current rowThe same flat fill, --sv-background-selected (equal to hover), with the label in --sv-content-primary. No weight change.
Single choice in a set (date, segment)A distinct tile: inverse (--sv-background-action + --sv-content-inverse) for a picked value, or a white raised segment (level 1) in a tray.
Today / now markerA hairline outline tile, no fill.
Active icon buttonGrey tile behind the glyph.
Reveal on hoverSecondary actions (row ⋮, inline edit) appear on hover or focus at the right edge; they keep their space so the row does not reflow.

Inside a surface or tray where the grey tokens sit too close to the plane (dark theme), use an ink tint instead: color-mix(in srgb, var(--sv-content-primary) N%, transparent); 7% rest / 11% hover inside a surface (CodeComposer --cc-control), 5% hover / 8% current on a tray (Sidebar --sb-row-hover / --sb-row-current).

Type and tone

  • One body size per surface: 14px for rows, menus and sidebar labels. 13px for section labels, meta and chips. Titles are the exception, not the rule.
  • Regular weight (--sv-weight-regular) for labels, rows and prompts. Medium only for a card, popover or page title.
  • Tone ladder: primary for the thing itself, secondary for supporting labels and utility rows, tertiary for section labels, meta, placeholders, timestamps and out-of-range values.
  • Section labels ("Recents", "Playbooks"): 13px, tertiary, sentence case, no uppercase, no letter-spacing, no bold. An optional disclosure caret sits right after the text.
  • Secondary information sits inline after the primary label in tertiary ("brooklyn_simmons · Just now", "Wei Chan @weichan") and truncates, or on a second line in tertiary for a title + description pair.
  • Footer meta lines are tertiary and joined with ·.
  • A single coloured qualifier is allowed in a label (a tier name such as "Ultra", a category label on a card) using a --sv-viz-series-* token. One per row or card.

Icons

  • Hugeicons Stroke Standard for every utility icon; Solid Standard only for a filled or active state.
  • One size per list (16px in rows and menus, 20px only in larger touch targets) and one tone: --sv-content-secondary, rising to primary with the row on hover or selection.
  • Every row in a menu gets an icon, or none does.
  • Navigation groups may each own one --sv-viz-series-* colour, shared by the group heading glyph and the stroke icons beneath it, so groups are told apart at a glance. Colour never changes on hover or selection.
  • Entity glyphs (a playbook, a tool, a model, a data source) may carry colour: a --sv-viz-series-* glyph or a brand logo, optionally on a small tinted tile (--sv-radius-8). Single utility rows (Home, Inbox, Settings) stay grey.
  • Destructive actions colour only the icon with --sv-content-danger; the label stays neutral.
  • Do not hand-write SVG icons to imitate the references (brand logos excepted).

Colour

  • Greyscale chrome. Chroma only where it identifies: entity glyphs, brand logos, status, destructive icons, one qualifier per row.
  • Badges (plan tier, counts) are small tinted pills: --sv-background-*-subtle fill with the matching --sv-content-* text.
  • Selected context (a file, a dataset referenced in the prompt) may use the info tint: --sv-background-info-subtle, --sv-border-info, --sv-content-info.
  • Status colours stay on status and always pair with a shape, glyph or label (a percentage with a ring glyph).
  • Never colour a surface, a selection fill, a focus ring, or body text. Selection is grey or inverse, never blue.

Signature patterns

PatternRecipeRef
ComposerHairline surface, 20px radius, level 0. Prompt first. Action row: ink-tinted round +, ghost text triggers with a 16px glyph, model pill, dark round send (--sv-background-action).3, 5
MenuHairline surface, 16px radius, 6px inset, level 2. 32px rows: grey icon, primary label, trailing chevron or kbd on the right edge. Dividers between groups; destructive last with a danger icon.8, 9
Popover with featureLevel 2. Inset media tile (concentric radius), title + tertiary description, list with trailing tertiary dates, full-bleed dividers, footer action with a ↗ glyph.7
Account menu / rowAvatar, name primary, handle inline tertiary, email below, tinted plan badge on the right edge; inset dividers; footer meta line.8, 10
Tray navigationFlat tray column; workspace switcher on top with search on the same row; utility rows with grey icons; tertiary section labels with caret; coloured tiles only for entities; current row grey fill that bleeds.1, 14
History listNo icons; names on the label line; date-group section labels; ⋮ revealed on hover.8
Command paletteLevel 3 in a tray shell. Flat rows by default; grouped white lists (level 1) when results are grouped. Search pill, filter glyphs, right-aligned kbd column, legend at the foot.1, 12
Segmented controlTray well; selected segment is a white level 1 tile; optional info-tint count badge.13
Date pickerField and popover share width; tertiary weekday and out-of-month text; today outlined; selected inverse; tray footer band for helper text.11
Grouped cardTray header band (title, subtitle, avatar right) over a white level 1 inner surface; one coloured category label; rows with inset dividers and trailing meta on one edge.13
ChipsInk-tinted pill, 13px secondary text, optional 16px favicon or glyph, +N more as plain text.4, 6
Kbd hint20px tray-grey tile, 6px radius, 11px mono tertiary glyph. Legend at the foot ("↑↓ Move · ↵ Execute · Esc Exit").1, 12
Trace / timeline6px tertiary dots on a rail; date column right-aligned to the rail; step text in tertiary; source chips under a step.6, 13

Workflow

Copy this checklist when styling a surface:

Visual direction:
- [ ] Opened the closest reference in assets/ and named it
- [ ] Assigned every plane a role: ground / surface / tray
- [ ] Icon column, label line and right edge are shared by every row
- [ ] Hover and selected fills bleed; text does not move
- [ ] One row height, one row gap, group gap at least 2x
- [ ] Radii concentric from the outer surface, or one stated radius applied everywhere
- [ ] One border per panel, shared fills agreed, scrollbars on the container edge
- [ ] Elevation only where a layer sits above another, at the right level
- [ ] Rows regular weight; section labels 13px tertiary, sentence case
- [ ] Utility icons one size and one grey; colour only on entities, status, destructive
- [ ] Selection grey or inverse, never blue
- [ ] Checked the planes in light and dark
- [ ] No new primitive tokens; gaps recorded instead

Record which reference you used and any token gap in the component docs or the PR body.

Do not

  • ❌ Add a shadow to something that is not above another layer, or anything heavier than the level table.
  • ❌ Lift, scale or add a shadow on hover.
  • ❌ Let a highlighted row shift its text, or let rows in one list start on different x positions.
  • ❌ Mix row heights or icon sizes within one list.
  • ❌ Use bold, medium or uppercase for rows and section labels.
  • ❌ Colour utility icons, selection fills, surfaces or body text.
  • ❌ Round rows inside a boxed list when the list is the rounded shape.
  • ❌ Separate every row with a divider line.
  • ❌ Dim a locked or read-only control to 45% when the user wants it readable; keep full ink and block interaction instead.
  • ❌ Add a second border beside a panel that already draws its own edge.
  • ❌ Let a scrollbar float inside padding; it sits on the container edge and is thin.
  • ❌ Put a coloured focus ring on anything, even to match a coloured glyph.

Related skills