Skip to content

Share light/dark theme colours and setting with the other calculators - #23

Merged
ehcrea merged 1 commit into
mainfrom
claude/project-thread-nvfa6y
Nov 19, 2026
Merged

ehcrea merged 1 commit into
mainfrom
claude/project-thread-nvfa6y

Conversation

@ehcrea

@ehcrea ehcrea commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Requested by Eren · project thread

Summary

This app's palette is now the shared palette for every ehcrea calculator (the other seven tools get matching PRs). The colours here stay the same. What changes:

  • The light/dark choice is stored under ehcrea.theme, which all tools share on the same origin, so switching in one tool carries over to the others. The old pec:v1:theme is still read as a fallback, and only light/dark values are applied.
  • theme-color now follows the page background for light and dark, like the other tools (it was the accent blue).
  • Language and calculator pages rebuilt with node tools/build-pages.js.

Testing

  • npm test: 950 passed, 0 failed
  • axe-core colour-contrast: 0 issues in both light and dark

Generated by Claude Code

All ehcrea calculators now share one palette, based on the main
Engineering Calculators app (blue-grey neutrals, accent #1f5ea8 /
#6aa5ec), with every text, button and input border pair checked for
WCAG 2.2 AA contrast in both modes (axe: 0 contrast issues).

The light/dark choice is now stored under one key, `ehcrea.theme`,
so picking dark in one tool carries over to the others on the same
site. The old per-tool key is still read once as a fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSyM96qtSmmuP5vy2Poxh
@ehcrea
ehcrea merged commit 44aed5f into main Nov 19, 2026
2 checks passed
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.

2 participants