A warm, tech-dystopian color scheme inspired by corrupted hardware and failing systems. digitalrust.katsuricata.com

Implement Safe Mode and bring the dark theme to the contrast floor

Safe Mode is the light projection of the palette: the accessibility option, not a second scheme. palette.ts holds one role table with a dark and a safe column, and toTokensCss() emits the dark block, the [data-scheme='safe-mode'] block and a prefers-color-scheme: light block from it. Mode selection applies before the first paint, the header carries a toggle, and digital-rust-theme.ts builds both Shiki themes from the same table so the modes cannot drift. The dark theme then met the same floors, because 1.4.11 applies to a control and to a container differently. A control identifies itself by its wall, so --dr-border-color is now the control wall: Rouge Signal #C76C5E on dark at 4.75:1 against a panel, Dark Packet in Safe Mode. A container is identified by its content, so --dr-border-color-container keeps the recessed Dark Packet in both modes and the 55 existing uses of the --dr-border shorthand did not move. Firewall Breach is the first ramp stop that clears 3:1 against a dark panel, at 3.18:1, so it is the floor for a dark control; the six stops below it span 2.04:1 end to end and can never form a 3:1 pair. Well borders were a fill token doing a border's job, at 1.30:1. Muted text is 55% of Phosphor Smoke, which lifts it from 3.98:1 to 4.55:1. The dark scrollbar thumb, the dark ANSI red slot and Konsole's faint red all moved above their floors. Digital Rust measures 3.10:1 on the dark page and 3.32:1 is its ceiling against any colour, so it cannot carry terminal text on a dark surface; it keeps the accent role, where it is a fill rather than text. The specs, DESIGN.md, the /ui/ copy and AGENTS.md now describe the split instead of the single wall. pnpm contrast measures every declared pair in both modes: 97/97 pass in dark, 98/98 in Safe Mode. The recorded deviations are container walls, which the criterion does not cover, and the optional rainbow bracket magenta. The ports and the agent skill still carry dark-only values and need their own pass.


Author katsuricata.com
Date Commit Parent f49d2255