Skip to content

feat(website): follow the system dark mode - #5

Merged
CassieFox23 merged 4 commits into
rehearsalfrom
feat/website-dark-mode
Oct 11, 2026
Merged

CassieFox23 merged 4 commits into
rehearsalfrom
feat/website-dark-mode

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 site now turns dark when your system is set to dark. Light mode does not change. The colors are Catppuccin Mocha. Figures and the blog page come in a second pass.

Summary

The website follows the system color setting. Refs #1.

Problem and expected behavior

The site only has a light theme, so it is very bright at night. With the system set to dark, the site should be dark. With it set to light, nothing should change.

Change and scope

  • One @media (prefers-color-scheme: dark) block at the end of styles.css. It swaps the six color variables and sets color-scheme: dark.
  • Fixed colors that would break in dark get dark values. The terminal keeps its own colors and gains a border.
  • A dark theme-color tag in the page template and the 17 pages.
  • A Dark column in the style guide's color table.
  • Not in this pass: the five SVG figures, the blog page's inline arrows, the dino game, and the sharing image.

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 links, metadata and shared HTML.
  • Base reproduction or other evidence: contrast computed with the WCAG formula. Main text is 11.3:1, secondary text 7.4:1 and links 7.8:1.
  • User-visible CLI/MCP output: not applicable.
  • Remaining proof gaps: the figures still show white panels. The look is still under review.

Validation performed

  • python3 scripts/website.py check: exit 0. Run by the build agent, then again by Opus.
  • oxfmt --check .: exit 0.
  • 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 or storage. It is CSS only.

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

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) 🦊
@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
@CassieFox23 CassieFox23 added the accessibility Barrier affecting people with disabilities label Oct 11, 2026
Claude Opus 5.5 added 3 commits October 11, 2026 01:29
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) 🦊
@CassieFox23
CassieFox23 merged commit 2b5b756 into rehearsal Oct 11, 2026
CassieFox23 pushed a commit that referenced this pull request Oct 11, 2026
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 removed the accessibility Barrier affecting people with disabilities label Oct 11, 2026
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