| name | CodeXray | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Architecture decisions, checked against the code, with every claim one click from its evidence. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| colors |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typography |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| rounded |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spacing |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| components |
|
Creative North Star: "The Evidence Ledger"
CodeXray reads like a well-kept ledger: black ink on white paper, ruled with hairlines, every entry traceable to its source. It is a working tool for a CTO on a projector and a developer on a laptop, so density is moderate and alignment is strict. Swiss editorial restraint carries the brand: a disciplined grid, a clear type hierarchy and generous whitespace, with no decoration doing a job that structure can do.
Colour is evidence, not mood. The single accent, vermilion, means exactly one thing: code that goes against a decision. Status colours come from the Okabe-Ito palette and always travel with their own glyph shape, so no meaning rests on hue alone. The interface rejects the KPI-card dashboard with a brand-coloured primary button. Content sits on hairlines and whitespace, never in cards.
Every sentence declares its origin. Text a model wrote carries a solid black "AI" badge; every number, ranking and template sentence carries an outlined "Computed" badge.
Key Characteristics:
- White ground, cool grey shell, black ink for headlines, buttons and selection.
- One accent (vermilion) reserved for exceptions to a decision.
- Status shown by glyph shape plus colour, never colour alone.
- Hairline-ruled tables and lists; no cards, no nested containers.
- Monospace only for code, paths, hashes and rule expressions.
- One motion moment: an opened finding settles in.
A near-monochrome ink-on-paper palette with one reserved accent and a colour-blind-safe status set.
- Exception Vermilion (#d55e00): the glyph and marker for code that goes against a decision. It appears on the "Broken" status glyph and wherever an exception is drawn (grid cells against the grain, highlighted code).
- Exception Vermilion Text (#a84300): the same meaning set as text, darkened for 4.5:1 contrast on white, used for an exception count above zero.
- Ink (#000000): headlines, the verdict, primary buttons, the active tab underline, focus rings, selection.
- Body Ink (#1f2328): running text.
- Muted Ink (#5b636d): secondary text, table headers, zero counts, legend descriptions.
- Paper (#ffffff): the page ground.
- Shell Grey (#f4f5f7): the legend bar, an open finding's panel, tags, the selected row.
- Shell Grey Hover (#f8f9fa): row hover.
- Hairline (#e3e6ea): row rules and dividers.
- Hairline Strong (#cbd0d6): control borders, the repository pill, evidence rules.
- Holding (#009e73), filled circle.
- Mostly holding (#3a9bd9), half-filled circle.
- Spreading (#0072b2), ringed dot.
- Slipping (#b97f00), downward triangle. Darkened from pure Okabe-Ito orange to hold contrast on a projector.
- Broken (#d55e00), diamond. Shares the exception hue on purpose: a broken decision is exceptions at scale.
The One Meaning Rule. Vermilion marks code that goes against a decision and nothing else: never a button, link, selection, focus ring or emphasis. If you reach for it to draw attention, use weight or size instead.
The Glyph-and-Hue Rule. A status is never shown by colour alone. Use StatusGlyph or Status, which pair the Okabe-Ito colour with its own shape.
Display Font: Hanken Grotesk Variable (with system-ui, sans-serif) Body Font: Hanken Grotesk Variable Label/Mono Font: JetBrains Mono Variable (with ui-monospace)
Character: One grotesk carries every role through weight and size steps alone, which keeps the page quiet and lets the verdict dominate. The mono marks machine-truth: paths, line numbers, hashes and rule expressions.
- Display (600, 2.75rem, 1.08, -0.022em): the verdict sentence, one per screen, balanced across lines with a 17em measure. 2.125rem on phones.
- Headline (600, 1.25rem, 1.25): section titles such as "Decisions" and "Fix first".
- Title (600, 1rem, 1.3): a finding's title in the fix-first list.
- Body (400, 1rem, 1.45): running text; measure capped near 62–70ch.
- Label (500, 0.8125rem): table headers, the legend, chips, footnotes.
- Code (400, 0.8125em, -0.01em):
path:line, hashes, rule expressions.
The Tabular Numbers Rule. All numerals are tabular (font-variant-numeric: tabular-nums) so counts, scores and percentages line up in columns.
The No Costume Mono Rule. Monospace is for code, paths and measurements. Never use it to make prose look technical.
Content sits in a centred column up to 1344px wide with 32px side padding. The opening screen splits into the verdict (flexible, about two thirds) and a status list (300–380px), which wrap onto one column when space runs out. Sections are separated by 64px; inside a section, rows are ruled by hairlines and padded 12–16px vertically.
Tables and the fix-first list share one grid per row type, so the header and every row align. Spacing follows a 4px base scale (4, 8, 12, 16, 20, 24, 32, 40, 48, 64).
Responsive behaviour:
- Below 1024px: the top bar becomes two rows, with all tabs on their own scrollable row. Decision rows and fix-first rows stack into labelled blocks instead of scrolling sideways. Side padding drops to 24px.
- Below 761px: the snapshot date leaves the top bar (it repeats under the verdict). The legend keeps only symbols and badges. The verdict drops to 2.125rem, the primary button spans the full width, and side padding is 16px.
The system is flat. Depth comes from tone and rules, not shadow: the shell grey sets the legend bar and an open finding apart from the white page, and hairlines separate rows. No surface carries a shadow at rest.
The Flat Ledger Rule. No drop shadows on content. When something needs to stand apart, give it the shell grey ground or a stronger hairline.
Corners are gently rounded and stay small: 3px for badges, 6px for chips and tags, 8px for buttons and the repository pill, and 12px only for a dashed empty-state panel. Lines do the structural work: 1px hairlines between rows, a 1px ink rule under each table header, and a 1.5px ink rule above the status list. Icons are drawn SVG at 16px with a 1.75–2px round stroke.
- Shape: gently rounded (8px), 40px tall.
- Primary: ink ground with paper text, 600 weight. It is the one call to action per view, such as "Open the top exception". A trailing arrow icon nudges 2px right on hover.
- Hover / Focus: the primary darkens to #2b2f35. Every control shows a 2px ink focus ring offset 2px. Pressing shifts the button down 1px.
- Secondary: paper ground, strong hairline border, ink text; hover turns it shell grey.
- AI: a solid ink block with paper text, 11px bold, 3px corners.
- Computed: paper with an inset strong hairline and muted text. Every sentence on screen carries one of the two.
- Chip: a fact as label and value ("Weak links 1 link"), on paper with a hairline border and 6px corners. The value is set in 600-weight ink.
- Tag: a finding's type, on shell grey with 6px corners.
- Tabs: 500-weight muted text that turns ink on hover. The active tab is ink with a 2px ink underline. Below 1024px the tabs sit on their own row and scroll sideways without a visible scrollbar.
- Legend bar: on shell grey under the top bar, on every view.
A full-width button laid out on a six-column grid: rank, title with type tag and decision, verdict with its origin badge, simulation status, priority score, and a chevron. Arrow keys, Home and End move between rows. Opening a row turns it shell grey, rotates the chevron, and reveals a two-column panel (why it matters, facts, fix; evidence, origin, priority). The panel settles in over 0.28s with an expo ease-out, and does not animate when reduced motion is set.
The status list is a ruled list of the five statuses, with large counts on the right; zero rows fall back to muted ink. The sparkline is 120×28 with a 1.5px ink line and a dot at the newest snapshot. A dashed grey rule marks 1 March 2025 when it falls inside the range.
- Do reserve vermilion (#d55e00, text #a84300) for exceptions to a decision.
- Do pair every status colour with its glyph.
- Do put an AI or Computed badge on every sentence.
- Do write "no AI signal" for code without an explicit marker.
- Do rule content with hairlines (#e3e6ea) and separate sections with 64px of space.
- Do keep one primary (ink) button per view.
- Do stack rows into labelled blocks below 1024px instead of scrolling tables sideways.
- Don't use vermilion for buttons, links, selection, focus or emphasis.
- Don't wrap content in cards or add drop shadows.
- Don't use monospace for prose.
- Don't write "written by a human", "AI caused" or "X% AI-written".
- Don't rank or name individual developers anywhere.
- Don't add motion beyond the finding reveal without a reason the user can name.