Verifux Design
System v2.1
The authoritative source of truth for every Verifux surface - landing page, dashboard, report, and the AI Agent Audit toolkit. All tokens, components, and guidelines documented here are production-verified and mirrored in verifux-tokens.json for Figma import.
The mark.
A red circle with a white calligraphic check. The wordmark is "Verif" in Geist 800 followed by italic-red "ux". Never alter the proportions, colours, or type treatment.
Compact
Default
Featured
Hero
Keep minimum 8px clear space around the mark.
Use SVG or font-rendered at all sizes.
Stretch or distort any part of the logo.
Use a rasterised PNG below 2x resolution.
The palette.
A clean triad drives the core product: red for MX, violet for BX, blue for AIX - plus a fourth, deliberately distinct gold for DX (Design Excellence & Craft), an entirely separate module never blended into the MX/BX/AIX score. Everything else is a neutral or semantic colour. Click any swatch to copy the hex value.
--red (#FF0033 — Verifux brand red) measures ~4.0:1 on white — below the 4.5:1 body threshold, so use it only for logo, decoration, icons, large display text, and borders.
--red-dk (#CC0029 — Verifux deep red) measures ~5.8:1 on white —
AA-safe for body-size text and for any red fill carrying white text (buttons, badges, pills).
node test-contrast.js, which renders every page and measures
the real computed foreground/background of each text node. Run it after any colour change.
Type system.
One typeface: Geist - headings, body, labels, eyebrows, scores and tokens. System monospace (SF Mono / Menlo) is used only for genuine code, URLs and data readouts - never as a label style.
The grid.
4px base unit. All spacing values are multiples of 4. Use these tokens consistently - never use arbitrary pixel values.
Rounded correctly.
Consistent radius at every tier. Pills for all interactive CTAs - it's a Verifux signature. Never mix pill and square buttons on the same surface.
--r-xs
Badges
--r-sm/2
Tags
--r-sm
Inputs
--r
Cards
--r-lg
Big cards
--r-xl
Modals
--r-pill
Buttons
Logo
Depth system.
Ink-tinted, never pure black. Three levels of elevation. The brand shadow (red tint) is used only for the primary CTA hover state and the logo mark.
Easing & timing.
One primary easing curve used everywhere. Spring feel - snappy entry, relaxed exit. Never animate decorative elements; only animate in response to user interaction.
Buttons.
All buttons use pill radius (100px). The red primary is the only true CTA. Use ghost for secondary actions. Use dark for export and destructive actions. Never mix button styles in the same visual tier.
Chips & badges.
Pill chips with a coloured dot. Used for severity levels, framework layer labels, and status. All Geist, uppercase, 10px.
Cards.
White background, 1px border (#E5E7EB), 16px radius, shadow-sm. Content inside uses card-label (mono eyebrow) then h3 then desc. Never use box shadow alone without the border.
The Scorecard
Score each dimension 0 to 10 from your probe results. Weights reflect how much each area affects customer trust.
Form inputs.
Labels in Geist, 11px, uppercase. Inputs in Geist 14px. Focus state: red border + 3px red shadow at 10% opacity. Placeholder in --g4.
Score ring.
SVG circle, rotated -90deg. Stroke colour driven by score function. Score number in Geist 800 with tight tracking. Denominator "/100" in system mono --g4.
≥ 65 #84CC16 — Good
≥ 50 #F59E0B — Moderate
≥ 40 #FB923C — Poor
< 40 #FF0033 — Critical
Pillar rows.
Used in both the main Verifux report and the Agent Audit toolkit. Track fill colour driven by score function. Name column is 200px fixed. Score is mono, right-aligned.
Findings.
Redesigned 2026-09-24 (report + app kept in step). Card has a 1px border with a 4px left bar coloured by severity. The header reads pillar/layer on the left, severity on the right. Title at 17px. "What we found" and "Recommended fix" are full-width, stacked (not two columns) - the fix carries a light red tint with a 3px red left bar. Only Critical and Major get full cards; Minor findings are compact one-line rows.
- Header order: layer/pillar chip + pillar name (left), severity chip pushed right with
margin-left:auto. - What we found / Recommended fix: full-width stacked, 15px body at 1.75 line-height.
- Acceptance criteria & User story are de-boxed - a hairline top divider, no fill or border. The app deliberately omits them - they're the PDF's paid value.
- Minor findings never get a full card - one-line row: severity dot, name, one-line fix, layer chip on the right.
- Text is escaped once in
generateAC()/generateUserStory().
PDF report layout.
The audit PDF is generated by report-template.js and rendered through Puppeteer. This section is the single source of truth for its page anatomy, margins, and repeating chrome - keep it in sync whenever the template changes.
Dark, full-bleed. Score ring, verdict, severity chips.
Verdict, counts, score as a ring, pillar breakdown table.
All actionable findings, one table, sorted by severity.
Critical + Major full cards; Minor as compact rows. Multi-page.
Composite ring, sub-scores, craft observations. Optional module.
Framework, checkpoint count, model. No Dev Checklist / Notes blocks (removed).
Detailed Findings is one long HTML block that Chromium auto-paginates across many physical PDF pages. Padding on the outer .page div only applies once, so every page generated purely by overflow previously had zero margin and no header/footer. The fix is the JS-level page.pdf() margin option (Chromium applies it to every physical page, including overflow), plus Puppeteer's displayHeaderFooter with header/footer templates - so the brand bar and "Page X of Y" now repeat on every physical page. CSS @page is not used for margins.
interior: format:'A4', margin { top:16mm, bottom:16mm, left:14mm, right:14mm }, displayHeaderFooter:true
cover: format:'A4', margin 0 (full-bleed), displayHeaderFooter:false
| Zone | Value | Applies to |
|---|---|---|
| Top / Bottom | 16mm | Interior pages (page.pdf margin option) |
| Left / Right | 14mm | Interior pages (page.pdf margin option) |
| Cover | 0 (full-bleed) | 14mm internal padding; rendered as its own single-page document |
| Running chrome | header + footer | Puppeteer displayHeaderFooter - repeats on every physical page incl. overflow |
- Card padding 24-28px; 4px severity left bar. What we found / Recommended fix are full-width stacked, 15px / 1.75.
- Acceptance criteria + User story are de-boxed - hairline
border-top, no fill. Generated bygenerateAC()/generateUserStory()(renamed from generateBacklog). - Removed entirely: the ruled Notes blocks and the Developer Checklist (each finding was repeated 3x). Minor findings are compact rows only.
- Dynamic text is escaped exactly once at construction time - never re-escape at render, or "&" renders as "&".
- Body sets
font-variant-ligatures:none+font-feature-settings:"liga" 0,"clig" 0. Ligature glyphs (fi/fl) embed with no ToUnicode map and paste as boxes. - Do NOT use tabular figures (
font-variant-numeric:tabular-nums) - they are OpenType alternates and reintroduce the same unmapped-glyph bug. Use normal Geist figures. - No bare
font-family:monospacein the PDF templates - it embeds unmapped. Everything is Geist.
Headless Chromium in the Railway container resolves font-family:'Geist' against installed system fonts, not the page's webfont - so Geist must be installed in the Docker image (see Dockerfile) or text falls back to Liberation and the copy-paste layer breaks (~635 unmapped glyphs), even though a local render looks perfect. As of this writing the container is still not matching the installed Geist and the fix is in progress. Always verify unmapped-glyph count on a PROD-rendered PDF (GET /api/evaluation/<id>/pdf) with pdfjs - a local render cannot reproduce the container's font resolution.
- Cover shows the machine-check ratio as a ring (N of M checks passed, coloured by band: Strong / Mixed / Weak / Poor) - never a score out of 100.
- Finding rows: index number on the left (bold, #4B5563), pillar name, severity chip on the right.
- Design & Craft (preview): a gold card (
#FBF3E1 / #EAD9AE / #7A5F16) renderingdesign_preview(3 quick checks), never counted in the pass total. - Same font/ligature rules as the report; 3-page prospecting layout.
Icons.
Lucide-style stroke icons. 1.8px stroke width. Round linecap and linejoin. Used at 16px, 18px, 20px, and 24px. Always inherit currentColor from parent. Never fill icons.
The triad, plus DX.
Three questions. Three colours. Nine pillars. Fifty-four checkpoints. Every Verifux surface reflects this architecture - never break the colour-to-layer association. DX (Design Excellence & Craft) is a fourth, entirely separate module in its own gold - never blended into the MX/BX/AIX score, verdict, or checkpoint counts. See CLAUDE.md's DX entry for the full isolation guarantee.
How Verifux speaks.
Expert and direct. Never corporate or vague. Findings land with confidence. Fixes are actionable. The tone is a senior UX professional talking to another professional - not a support bot talking to a customer.
Never use "ML" or "UX+AI".
Not "Behavioral" (US spelling). Not "BX Pillar".
Not High/Medium/Low. Not Blocker/Critical/Moderate.
Never em dashes or en dashes in copy.
Not Veri-fux. Not VERIFUX.
BX: "Will people act?"
AIX: "Can AI use it?"
Breakpoints & grid.
Mobile-first. The sidebar collapses at 880px to a top bar with pill tabs. Content padding scales down. Grid columns reduce. Score ring and summary band stack vertically.
| Token | Value | Behaviour |
|---|---|---|
| sm | 640px | Mobile landscape - 1 col grids, reduced font sizes |
| md | 768px | Tablet - compact cards, 2 col where possible |
| lg (sidebar) | 880px | Sidebar collapses to sticky top bar with pill tab switcher |
| xl | 1280px | Wide desktop - content maxes out at 1060px |
- Content max-width: 1060px. Report sheet max-width: 820px.
- Sidebar: 252px fixed. Below 880px: display:none, replaced by mobile top bar.
- Content padding: 36px 40px desktop; 22px 16px mobile.
- Grid columns: 2-col meta grid collapses to 1 on mobile.
- Summary band (score ring + verdict) stacks to column on mobile.
- Pillar note column (rightmost) hides on mobile.
- Font sizes: use clamp() for page titles - clamp(24px, 3.5vw, 34px).
Importing to Figma.
The design tokens are packaged in verifux-tokens.json using the Tokens Studio format. Follow these steps to set up Figma variables from this file.
Install Tokens Studio
In Figma, open Plugins and install Tokens Studio for Figma (free tier supports all Verifux tokens). This is the bridge between your JSON file and Figma Variables.
Load the tokens file
Open Tokens Studio plugin. Choose Sync - Local file or paste the contents of verifux-tokens.json directly. You'll see three token sets: global, semantic, component.
Activate all token sets
In Tokens Studio, toggle all three token sets to active. The semantic and component tokens reference global tokens using dot-notation (e.g. {global.color.red.DEFAULT}).
Export to Figma Variables
Click Export to Figma Variables in Tokens Studio. Select colour, number, and string variable types. This creates Figma Variable collections matching the token structure.
Set up text styles
Create Figma Text Styles manually for each type specimen in the Typography section: H1/Hero, H1/Page, H2, H3, H4, Body/Large, Body/Default, Mono/Eyebrow, Mono/Label, Mono/Data.
Naming conventions for components
Name Figma components to match token keys: Button/Primary, Button/Ghost, Card/Default, Chip/Critical, Chip/MX, Nav/Item/Active, Score/Ring, Finding/Critical. Use / for grouping.
"global": {
"color": {
"red": { "DEFAULT": { "value": "#FF0033", "type": "color" } },
"violet": { "DEFAULT": { "value": "#7C3AED", "type": "color" } },
"blue": { "DEFAULT": { "value": "#0099FF", "type": "color" } }
}
}
}
... see verifux-tokens.json for the complete token set