Repository navigation
feat(website): follow the system dark mode - #5
Merged
Merged
Conversation
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) 🦊
2 tasks done
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) 🦊
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
@media (prefers-color-scheme: dark)block at the end ofstyles.css. It swaps the six color variables and setscolor-scheme: dark.theme-colortag in the page template and the 17 pages.Contract and boundary impact
Evidence and regression coverage
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
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊