Skip to content
refs
History
19.0 KBRaw

name: refs description: Quiet Line. A calm ink interface for a Git forge where people and agents share the line of decisions. colors: ground: "#0e0e10" rail: "#0a0a0c" panel: "#151517" raised: "#1d1d20" sunken: "#09090b" control: "#1a1a1d" control-hover: "#232326" field: "rgb(255 255 255 / 0.035)" hover: "rgb(255 255 255 / 0.06)" hairline: "rgb(255 255 255 / 0.07)" line: "rgb(255 255 255 / 0.13)" ink: "#f2f2f3" muted: "#a3a3ab" faint: "#83838c" primary: "#f2f2f3" primary-hover: "#ffffff" on-primary: "#111113" accent: "#3d69f2" accent-hover: "#6a90ff" accent-text: "#92adff" on-accent: "#ffffff" needs: "#f5b83d" needs-text: "#f7c85f" success: "#45c287" danger: "#f26a63" caution: "#d9a85a" porcelain: "#d8d8dc" ochre: "#d0a455" sage: "#7db892" light-ground: "#fafafa" light-rail: "#f4f4f5" light-panel: "#ffffff" light-raised: "#ffffff" light-sunken: "#f3f3f4" light-control: "#ffffff" light-control-hover: "#f5f5f6" light-field: "#ffffff" light-hover: "rgb(0 0 0 / 0.05)" light-hairline: "rgb(0 0 0 / 0.07)" light-line: "rgb(0 0 0 / 0.13)" light-ink: "#18181b" light-muted: "#5c5c66" light-faint: "#6c6c76" light-primary: "#18181b" light-primary-hover: "#2e2e33" light-on-primary: "#ffffff" light-accent: "#2f5bf0" light-accent-hover: "#2449d6" light-accent-text: "#2449d6" light-needs: "#d99a0b" light-needs-text: "#8a5d00" light-success: "#1c8551" light-danger: "#cc3a34" light-caution: "#8f6a1f" light-porcelain: "#3a3a40" light-ochre: "#a77b2a" light-sage: "#4f7d5b" typography: body: fontFamily: "Inter Variable, ui-sans-serif, system-ui, sans-serif" fontSize: "14px" fontWeight: 400 lineHeight: 1.5 letterSpacing: "-0.006em" control: fontFamily: "Inter Variable, ui-sans-serif, system-ui, sans-serif" fontSize: "13px" fontWeight: 500 lineHeight: 1.5 title: fontFamily: "Inter Variable, ui-sans-serif, system-ui, sans-serif" fontSize: "24px" fontWeight: 600 lineHeight: 1.2 letterSpacing: "-0.022em" caption: fontFamily: "Inter Variable, ui-sans-serif, system-ui, sans-serif" fontSize: "12px" fontWeight: 500 lineHeight: 1.35 letterSpacing: "0" code: fontFamily: "Geist Mono Variable, ui-monospace, SF Mono, monospace" fontSize: "12px" fontWeight: 400 lineHeight: 1.65 rounded: chip: "6px" control: "8px" panel: "12px" sheet: "16px" round: "9999px" spacing: xs: "6px" sm: "8px" md: "16px" lg: "28px" rail: "240px" content-max: "1280px" components: button-primary: backgroundColor: "{colors.primary}" textColor: "{colors.on-primary}" typography: "{typography.control}" rounded: "{rounded.control}" height: "28px" padding: "0 10.5px" button-primary-hover: backgroundColor: "{colors.primary-hover}" button-secondary: backgroundColor: "{colors.control}" textColor: "{colors.ink}" typography: "{typography.control}" rounded: "{rounded.control}" height: "28px" padding: "0 10.5px" button-ghost: textColor: "{colors.muted}" rounded: "{rounded.control}" height: "28px" input: backgroundColor: "{colors.field}" textColor: "{colors.ink}" rounded: "{rounded.control}" height: "28px" padding: "0 9px" layer-card: backgroundColor: "{colors.panel}" rounded: "{rounded.panel}" padding: "14px" badge: backgroundColor: "{colors.hover}" textColor: "{colors.muted}" typography: "{typography.caption}" rounded: "{rounded.chip}" height: "20px" padding: "0 7px" avatar-human: backgroundColor: "{colors.accent}" textColor: "{colors.on-accent}" rounded: "{rounded.round}" size: "24px" avatar-agent: textColor: "{colors.porcelain}" rounded: "{rounded.round}" size: "24px"

Design System: refs

Overview

Creative North Star: "Quiet Line"

refs is a calm ink interface. Linear gives the density and the quiet lists. Apple gives the materials, the type discipline and the motion rules. The line of decisions is refs' own: a branch is a line, a decision is a station, a merge is an interchange.

Almost everything is neutral ink on graphite or on white. Color has three jobs only. Blue is a person. Amber needs you now. Green is merged.

Key Characteristics:

  • The theme follows the system. The reader can pick System, Light or Dark in the account menu.
  • Cards sit on soft shadow rings, not on borders and not on tonal steps alone.
  • Chrome that floats over content (header, menus, popovers) is a translucent material. Content is never glass.
  • The primary action is an ink button. Blue stays for people.
  • One signature: the line diagram. One authored motion moment: the line draws itself.

Colors

Components read semantic tokens, never raw hex. Dark values are listed first in the frontmatter. Light values carry the light- prefix and map to the same role.

Roles

  • Ground, Rail, Panel, Raised, Sunken: page, sidebar, card, floating layer, well. Dark mode uses a dimmer base and brighter elevated layers.
  • Control, Field: the fill of a secondary button and of a text field.
  • Hover, Hairline, Line: translucent, so they work on every surface. Hairline divides rows. Line outlines fields.
  • Ink, Muted, Faint: text from strong to quiet.
  • Primary: the ink fill of the one primary button on a surface.
  • Accent (blue): a person. It fills the human avatar, links, the focus ring, checked controls and the steered mark on the line.
  • Needs (amber): what waits for the reviewer. Success (green): merged and done. Danger (red): errors and destructive actions. Caution: an assumption or a warning in text.
  • Porcelain, Ochre, Sage: the main line and the two branch line inks.

Named Rules

The Colour Jobs Rule. Blue is a person. Amber needs you now. Green is merged. Do not use a color for decoration.

The Ink Primary Rule. A surface has one primary button, and it is ink. Secondary actions sit on the control fill with a ring.

The Needs-You Rule. Amber appears only on items that wait for the reviewer.

The Contrast Rule. faint is the quietest text allowed. It is 4.5:1 or more on ground, panel and sunken in both themes. Use needs-text, not needs, for amber text.

Typography

Sans: Inter Variable, with optical sizing on. Mono: Geist Mono Variable.

Hierarchy

  • Page title (600, 24px, 1.2, -0.022em): a page, a pull request or a task.
  • Section title (600, 15 to 16px): commit and decision headings.
  • Body (400, 14px root, 1.5, -0.006em). Long prose (.markdown) uses 15px, 1.65 and a 74ch maximum.
  • Page tabs (500, 14px): the underline tabs below the header.
  • Control (500, 13px): buttons, segmented tabs, fields, table cells, breadcrumbs.
  • Caption (500, 12px, sentence case): the label of a row, a field or a group.
  • Code (Geist Mono, 12px, 1.65): diffs, paths, branch names, commit hashes.

Named Rules

The Tracking Rule. Tracking follows size. Large text tightens. Text of 12px and smaller stays at 0. Do not set one letter-spacing for all sizes.

The Caption Rule. A caption names the data beside it or below it. Do not put it above a heading as a kicker.

The Mono For Machines Rule. Anything a machine wrote or reads (path, ref, hash, agent handle) is set in the mono font.

The Weights Rule. Use 400, 500 and 600. Do not use light weights.

Layout

A 240px rail holds the wordmark, the workspace switcher and the navigation. It collapses into a drawer below md. On wide screens the reader can hide it with the sidebar button in the header; the choice is remembered. The header, the tabs and the content share one column at the full width of the page, with the same side padding on every page. So the tabs and the content do not move when the reader changes pages. The page always keeps space for the scroll bar.

Cards give a page its structure. Every list, table, file, comment and form sits in a LayerCard: a header row that names the content, then rows divided by hairlines. Do not strip the frame from a list to make a page look simpler.

The root font size is 87.5%, so the interface is 14px by default and follows the reader's text size. On a phone the root is 100%: body text is 16px and a button is 40px tall. All sizes are in rem. The named sizes are text-title (24), text-heading (22), text-headline (16), text-callout (15), text-base (14), text-compact (13) and text-xs (12). No text is smaller than 12px.

On a pull request the order is: title, status and meta row, view tabs, the decisions card, then the commits card. What the reader must judge comes first. The decisions card lists only the decisions that still hold, one row for each. A row is closed at first and shows the decision, the short hash of its commit, and in amber the number of assumptions. One row is open at a time: it shows the reasons, the cost of a later change and Steer. The commits card looks like the History page: one row for each commit on a vertical rail, oldest first. The mark on the rail is a hollow ring for an agent and a filled blue dot for a person, with the number of decisions inside. A row opens to show the commit story, its decisions as one line each linked to the decisions card, and its files. The pull request page has no line diagram. Sign-in pages have two columns: the form, and the product at work.

Check 360, 768 and 1280px. No horizontal scroll. Small icon-only controls keep a 40px target through .hit-area.

Elevation & Depth

  • Card (shadow-card): a 1px ring. In light mode it also has a tight lift and an ambient layer. In dark mode it has a top edge highlight.
  • Control (shadow-control): the ring of a secondary button.
  • Surface (shadow-surface): menus, popovers, dialogs and the drawer. Only these have a drop shadow.
  • Materials: .material-chrome (header) and .material-popup (menus, popovers, selects) are translucent with a blur. Dialogs are opaque, because they hold long text.
  • Scroll edge: the header hairline shows only when content is under it (.scroll-edge).
  • prefers-reduced-transparency and prefers-contrast: more make the materials solid.

The Two Layers Rule. Blur belongs to the functional layer that floats. Cards, rows and content never get glass. Do not stack glass on glass.

The Structure Rule. Use shadow rings for depth. Use hairlines for dividers between rows.

Shapes

Radii are concentric. A 12px panel with 4px padding holds 8px controls. An 8px control holds a 6px chip. Dialogs and large showcase panels use 16px. Avatars, rings and station dots are circles. Branch lines split from the main line at 45° and end in a bar. Line strokes are 3px with round caps.

Components

All components come from @refs/design-system on Base UI.

  • Button: heights sm, base and lg. Primary is ink. Secondary is the control fill with a ring. Ghost is muted text with a hover fill. Press scales to 0.96. A button that starts work shows its loader inside.
  • Field: field fill, 1px line ring, 8px radius. Focus shows an accent ring and a 3px accent tint. Fields are 16px on touch screens so the page does not zoom.
  • Tabs: underline tabs mark the active view with a 2px ink line. Segmented tabs sit in a sunken track; the active segment is a control.
  • Layer card: panel fill on shadow-card. The header row is 13px medium ink with a hairline under it.
  • Badge: a 20px chip in caption type. Status uses tint backgrounds. Label colors show as a dot.
  • Empty state: an icon tile, what is missing, and a button for the next step.
  • Loading: one language, the shimmer (Shimmer, PageSkeleton). There is no progress bar. On a navigation the current page stays for 150ms, then dims, then at 450ms gives way to a skeleton in the shape of the page to come. A fast navigation shows no loading state. The control the reader pressed (rail row, tab) is marked current at once. A submitted form shows its work in its button, not in the page.
  • Dialog: a destructive confirmation has no default button, so Return cannot confirm by accident. Focus goes to the dialog's field, or to the dialog. The confirm button of a delete the reader chose is not red. On a phone a dialog is a bottom sheet.
  • Forms: a form's main button is available only when the required fields have a value. A Save button is available only after a change. A button that needs more input ends with an ellipsis ("Branch from here…").
  • Line diagram (signature): the pull request line, on the landing page. In the product the line is the vertical rail of a commit list. Stations are hollow rings with a number. The selected station has a halo. A steered station carries a blue dot. A waiting last station carries an amber ring. The end interchange is green when merged.
  • Avatars: a person is a filled blue circle. An agent is a hollow ring. Do not swap them.
  • Menus and popovers: translucent material, 12px radius, 8px rows. They grow from their trigger.
  • Theme: ThemeChoices in the account menu, ThemeMenu on pages without one. The swap cross-fades.
  • Code: the file view and the diff view share one highlighter and the same light and dark themes. The server sends plain text; the colors arrive in the browser and change no layout. Unknown languages and files over 5,000 lines stay plain.
  • Code map: one canvas of blocks inside blocks (folder, file, declaration) on the rail fill. Zoom sets the level: Architecture, Package, Module and Code. Names of folders and files sit in screen space and a name that would cover another is left out, so names stay readable. Below the map, the trace is the line: one hollow numbered station per card, a halo on the card in view, and a 3px porcelain line from the line that names a declaration to its card. A dashed porcelain beam joins the card in view to its block. On a pull request, a changed block shows its + and − counts and the Changes list marks the current change with the control fill. Color stays to its jobs: green and red only for added and removed lines.
  • Label picker: a popover with one field that filters the labels. A name that no label has can be created in place, with a color, and is applied at once. The reader does not leave the task to make a label.
  • Icons: every icon comes from @refs/design-system/icons. The glyphs are Lucide outlines in currentColor. The stroke is 1.5px at every size. weight="bold" is 2px, for emphasis such as the current rail row. weight="fill" is the solid form of a status mark (done, warning, folder).

Apple guidelines in use

refs follows the Human Interface Guidelines where they apply to a web product. Each rule names its source page.

  • Loading (loading.md): show a placeholder at once, keep the reader free, keep the indicator in one place.
  • Text and targets (accessibility.md, typography.md): 4.5:1 text contrast, no light weights, sizes that follow the reader's setting, 44px touch targets through .hit-area, larger controls on touch screens.
  • Increase Contrast and Reduce Transparency (accessibility.md, materials.md): prefers-contrast: more strengthens separators, rings and quiet text; both settings make materials solid.
  • Materials (materials.md): blur on the floating functional layer only.
  • Color (color.md, dark-mode.md): one color, one meaning; never color alone; a dim base and brighter raised layers in dark mode; no pure white fills.
  • Layout (layout.md): the most important content first, a readable column width, groups by space and separators, the same functions at every width.
  • Sidebar and toolbar (sidebars.md, toolbars.md): two levels at most, hideable, no controls at the bottom, one prominent action on the trailing side.
  • Segmented controls (segmented-controls.md): segments of equal width.
  • Alerts and sheets (alerts.md, sheets.md): alerts only for rare, irreversible actions; Cancel on the leading side; verb labels, never "OK".
  • Entering data (entering-data.md): the next step is available only when the required data is present.
  • Menus and buttons (menus.md, buttons.md): verb-first labels, an ellipsis when more input follows, unavailable items dimmed and not removed.
  • Pointer and keyboard (pointing-devices.md, accessibility.md): hover feedback on every target, controls that hide show on hover and on focus, a skip link, every action by keyboard.
  • Writing (writing.md): sentence case everywhere, no "we", errors that say how to fix the problem, a next step on every blank screen.
  • Generative AI (generative-ai.md): agent work is always marked, a person approves significant actions, and Steer sits beside each decision.

Known gaps: no global search, no swipe-down on phone sheets, no column sort in tables, and no account deletion. The theme switch stays, by the product's own rule, although Apple advises against an app-only switch.

Do's and Don'ts

Do:

  • Do read semantic tokens, so dark and light stay in step.
  • Do keep one ink primary button on a surface.
  • Do mark a human act with the filled blue circle and agent work with the hollow ring.
  • Do build depth with shadow-card and dividers with hairlines.
  • Do keep radii concentric: 6, 8, 12, 16.

Don't:

  • Don't use blue, amber or green as decoration.
  • Don't put blur on content, or glass on glass.
  • Don't use transition: all, scale(0) or ease-in.
  • Don't animate frequent controls (menu items, tabs, rail rows, checkboxes) on press.
  • Don't draw a commit list without its rail and marks. The rail is the line.
  • Don't import an icon library directly in a route or a component. Add the icon to icons.tsx.

Motion

  • Press: .pressable scales to 0.96 on :active, 150ms, cubic-bezier(0.23, 1, 0.32, 1).
  • Popups: from opacity 0 and scale 0.96, from the trigger origin, 180ms in and 120ms out. Tooltips use 125ms. Dialogs stay centred: 220ms in, 150ms out.
  • Drawer: 300ms with cubic-bezier(0.32, 0.72, 0, 1). It leaves by the side it came from.
  • Line draw: the line draws in 700ms when a pull request opens. Stations follow with a 260ms scale from 0.6.
  • Icon swap: scale 0.25 to 1, opacity, and 4px blur to 0, in 300ms.
  • Theme swap: a cross-fade through the View Transitions API.
  • Reveal: something a click opens in place (.reveal, the steer form) enters from opacity 0, 4px up and scale 0.98, in 180ms.
  • Disclosure: details opens and closes with height and opacity in 200ms, where the browser supports interpolate-size.
  • Entrance: only the landing hero and the sign-in graphic enter in stages (.rise-in). The lead moves the most. Delays get shorter down the group: 0, 110 and 190ms on the hero; 150, 240 and 310ms on the graphic.
  • Merge ring: on a merged pull request, one green ring leaves the interchange after the line arrives (800ms, once).
  • Shimmer: a light sweeps each placeholder in 1.4s, linear. With reduced motion the placeholder rests with a slow fade.
  • No motion: rail rows, tabs, menu items, list rows, the sidebar toggle and page changes do not animate. People use them all day.
  • Reduced motion: scale, draw and pulse are removed. Fades remain.