---
name: saasframe-lab
description: Build interfaces in the Lab style from SaaSFrame (light serif headlines, mono uppercase labels, ruled panels, halftone dots, one signal color). Use when the project has the Lab pack installed (components/lab) or when asked for a technical, precise, editorial look for a developer or AI product, on a website or inside the app.
---

# Lab, a SaaSFrame style pack

Lab is the look of technical products that want to feel like precision instruments: datasheets, lab equipment, print registration marks. It is distilled from the technical SaaS sites captured on SaaSFrame in the last two years (Speakeasy, Reducto, Parallel, Koyeb, Span, Moss, Datashake, Lightdash). See them at https://www.saasframe.io/packs/lab.

The components live in `components/lab/` and the blocks in `components/lab/blocks/`. Use them before writing new markup. They read every color, font and radius from the theme tokens, so they work in light and dark.

## The five rules

1. **Two voices of type.** Headlines in the light serif (`font-display font-light`, tight tracking `-0.02em` to `-0.04em`, line height 0.95 to 1.05). Every label, eyebrow, button, table header, unit and number in mono (`font-mono`), labels in uppercase at 10.5 to 11px with `tracking-[0.08em]`. Body text in the sans at 14 to 15px, muted. Never set a headline in the sans, never set a label in the sans.
2. **Rules, not cards.** Group content in ruled cells that share their borders (`PanelGrid`: 1px gaps on the border color). No drop shadows, no floating rounded cards, radius 2px at most (`rounded-[var(--radius)]`). Use `Panel marks` (corner registration marks) on the single panel that deserves attention, never on all of them.
3. **One signal color.** `signal` (orange by default) appears on at most three things per screen: the primary call to action, one highlighted word or line, live or current state. Everything else is ink, paper and greys. The primary button text on signal is ink, never white.
4. **Texture from the medium.** Depth comes from `DotField` (halftone dots with a fade), `PixelCluster` (a few hand-placed squares), dotted leaders (`SpecList`), dashed threshold lines and the grid itself. No gradients, no glow, no glass, no stock illustration, no emoji.
5. **Data looks like data.** Figures in mono with `tabular-nums`, right-aligned in tables, units smaller and muted next to them. State is a square marker plus a word (`Status`), never a rounded colored pill. Charts are thin ink bars or lines with one signal mark and a dashed reference line labelled in mono.

## Layout

- Content width `max-w-6xl`, generous vertical space (`py-20` to `py-28` per website section), sections separated by a full-width hairline (`border-b border-border`).
- Headlines are left-aligned or split across the width (first line left, second line right). Center only a single big figure (`Metrics`).
- A section header puts the eyebrow and title on the left seven columns and a short paragraph on the right four (`SectionHeader`).
- Use numbered markers (`Label index="01"`) only for real sequences (steps of a process). Otherwise use a plain or dotted label.
- In the app: a 240px sidebar with mono group labels and counts, a 48px top bar with a slash breadcrumb (`AppShell`), the active nav item inverted (ink background). Pages start with a mono label above a light serif title.
- Settings are ruled rows: explanation on the left third, controls on the right (`Settings` block).
- Empty states teach: halftone field, one sentence, the exact command or snippet, one primary action (`EmptyState` block).

## Copy

- Sentence case for headlines and buttons in the source text; buttons render uppercase through the mono style.
- Short and literal: say what the product does with a number when there is one ("Median eval time 1.8 s"), not adjectives.
- Real units and terms of the domain: trace, run, region, P50, version numbers.

## Do not

- Do not mix in a second accent color, a gradient hero, a purple-to-blue glow or rounded-2xl cards.
- Do not put shadows on panels or buttons.
- Do not use Inter, Geist or a system font for headlines: the light serif is the identity.
- Do not use icons as decoration in every card. Prefer a tiny working diagram made of the same components (labels, status, bordered chips, arrows).
- Do not invert large areas except one band per page (the metric band or the code block).

## Tokens

The theme maps the pack onto the standard shadcn variables (`background`, `foreground`, `card`, `muted`, `primary`, `border`, `ring`...) and adds `signal`, `signal-foreground`, `warning`, `font-display`, `font-sans`, `font-mono`. Existing shadcn components pick up the paper, ink and radius automatically.

Fonts: Newsreader (display, 300 and 400), Instrument Sans (body, 400 to 600) and JetBrains Mono (labels and figures, 400 and 500), all on Google Fonts. In Next.js load them with `next/font/google` and expose them as `--font-newsreader`, `--font-instrument-sans` and `--font-jetbrains-mono` on `<html>`; the theme already points `font-display`, `font-sans` and `font-mono` at those variables with fallbacks.

## Before handing over

Check each screen against the five rules: two type voices, ruled panels without shadows, signal used three times at most, texture only from dots, pixels and rules, figures in tabular mono. Then check dark mode (`class="dark"` on `<html>`).
