Skip to content

feat(website): give the five SVG figures a dark scheme - #8

Merged
CassieFox23 merged 6 commits into
rehearsalfrom
feat/website-dark-figures
Oct 11, 2026
Merged

CassieFox23 merged 6 commits into
rehearsalfrom
feat/website-dark-figures

Conversation

@CassieFox23

Copy link
Copy Markdown
Owner

Rehearsal PR on my own fork, into the rehearsal branch. The issue stays open for feedback.

TL;DR: The five figures on the site now turn dark too. In light mode they look exactly the same as before. The colors are the same Catppuccin Mocha set as the pages.

Summary

The five SVG figures follow the system color setting. Refs #1.

Problem and expected behavior

PR #5 made the pages dark, but the figures still showed bright white panels. Pages load them with <img>, so page CSS can't reach inside. With the system set to dark, the figures should be dark too. In light mode, nothing should change.

Change and scope

  • Each figure gets one @media (prefers-color-scheme: dark) block. It maps every light color to a Mocha color.
  • All five share one color map. The accent goes to blue, text to text, muted text to subtext0, borders to surface1 and white to mantle.
  • No markup, labels, shapes or positions change. Nothing uses !important.
  • Four figures paint a dark canvas, so "Open figure" works on its own. analyst-thinking.svg stays clear, since it sits on the page.
  • This was a blind pass. The agent saw only upstream's figures, the style guide and the palette.

Contract and boundary impact

  • Semantic owner and earliest changed stage: website only.
  • CLI and MCP/tool-catalog contract: none.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Process execution, authorization, cleanup, or containment impact: none.
  • Generated metadata, package, or installation impact: none.

Evidence and regression coverage

  • Tests added or updated: none. The site check covers SVG XML.
  • Light renders match the old ones pixel for pixel, in all five files.
  • In dark, all 94 text elements are 5.97:1 or higher against what sits behind them.
  • Taking the new block out gives back the old file, byte for byte.
  • Remaining proof gaps: the blog page's inline arrows and the dino game are still light.

Validation performed

  • python3 scripts/website.py check: exit 0, run by Opus on this branch.
  • npm run check:fast: passed in the pre-push hook (typecheck and lint).

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: no scripts. It is CSS inside the SVG files.

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

Claude Sonnet 5.5 and others added 6 commits October 11, 2026 00:36
The site was light only, so a reader with a dark system still got a white
page. Add one prefers-color-scheme: dark block to the stylesheet that swaps
the six color variables to Catppuccin Mocha and overrides the fixed colors
that would break on a dark page: selection, buttons, tinted highlights,
flow nodes and arrows, and a visible border on the agent terminal.

Add a dark theme-color tag beside the light one in the page template and
the 17 pages, and a Dark column to the style guide's color table.

The light theme is unchanged. The SVG figures, the blog page's inline
strokes, the dinosaur game and the social card are left for a second pass.

Refs #1

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊
From the layout audit on the dark-mode build (both schemes share this
geometry):

- Long terminal prompts and code-header buttons wrap instead of being
  cut off at 320px (WCAG 1.4.10). The worst cut was 29px.
- Headings and table cells break long words, so the 1.4.12 text-spacing
  test no longer widens three pages past 320px.
- Header and footer links get a 24px minimum height (2.5.8), up from
  23.1px.
- Labels that rendered at 9.6-11.5px now render at 12px or more, and
  inline code never drops under 0.75rem.

Measured on the preview after the change: no overflow, smallest text
12px, smallest nav/footer link 24px on the six sampled page widths.

Refs #1

🤖 Generated with Claude Code (Opus 5.5) 🦊
From a measured pass over the home page at about 1080px, in both schemes:

- The hero and "What is reverse engineering" rows share one column gap
  (3.5rem) and align on the first baseline. The second column was 4px
  apart between rows, and first lines sat 4.7px and 7px apart.
- The thought card starts level with the assembly listing (it sat 1.6px
  lower).
- Terminals and step tabs use the site's 5px corner, so stacked boxes no
  longer mix 4, 5 and 6px.
- The assembly listing's title bar matches the terminal title bars
  (43.2px to 49.6px).
- The hero's setup column uses one 16px gap, and the One prompt terminal
  gets the same 1rem margins as the hero terminal. The old
  .home-analysis-terminal margin never applied, since .agent-terminal
  came later.
- Sibling accent labels share 12px, the One prompt heading uses the
  heading weight (650), and 13.6px and 14px text folds into the 14.4px
  the stylesheet already uses.

No horizontal overflow at 1080, 768 or 320px after the change.

Refs #1

🤖 Generated with Claude Code (Opus 5.5) 🦊
From Cassie's look at the home page in dark mode:

- Highlight chips get room around the text (0.08em 0.35em) and 4px
  corners, in both schemes.
- The active run in a step listing is one band (inline-block, full
  width) instead of a box per line, in both schemes. Listing heights
  are unchanged.
- In dark, terminals use Mocha mantle #181825 instead of the slate
  #202933, with surface0 for the header rule and the copy hover. Text
  in them stays 9.2:1 or higher.
- In dark, "One prompt." uses the ink color instead of the accent.
- In dark, the primary button uses subtext1 #bac2de (9.3:1 for its
  text) and subtext0 #a6adc8 on hover (7.4:1).

No horizontal overflow at 1280 or 320px on the six pages that use
these parts.

Refs #1

🤖 Generated with Claude Code (Opus 5.5) 🦊
Pages load the figures with <img>, so page CSS cannot reach inside them.
Each figure now carries its own @media (prefers-color-scheme: dark)
block of attribute-selector overrides that map every light color to a
Catppuccin Mocha color, with one shared map across all five (accent
#294f82 to blue, text to text, muted to subtext0, borders to surface1,
white grounds to mantle). No markup, labels, shapes or positions
change, and nothing uses !important.

Light renders are pixel-identical to before in all five. In dark, all
94 text elements are 5.97:1 or higher against what sits behind them.
Four figures also paint a mantle canvas so "Open figure" works on its
own; analyst-thinking.svg stays transparent, since it sits on the page
rather than in a figure box.

Done blind: the agent worked from upstream's figures, the style guide
and the palette only, without the earlier dark-mode notes.

Refs #1

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊
Rehearsal holds the squash of PR #5, whose tree equals d455f5b, the
dark-mode commits this branch sits on. Merging it makes the rehearsal
PR show only the figures change.

🤖 Generated with Claude Code (Opus 5.5) 🦊
@CassieFox23
CassieFox23 merged commit 4965224 into rehearsal Oct 11, 2026
@CassieFox23 CassieFox23 self-assigned this Oct 11, 2026
@CassieFox23 CassieFox23 linked an issue Oct 11, 2026 that may be closed by this pull request
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] REA's website blinds me at night: add a dark mode

1 participant