Repository navigation
Share light/dark theme colours and setting with the other calculators - #23
Merged
Merged
Conversation
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
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.
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:
ehcrea.theme, which all tools share on the same origin, so switching in one tool carries over to the others. The oldpec:v1:themeis still read as a fallback, and onlylight/darkvalues are applied.theme-colornow follows the page background for light and dark, like the other tools (it was the accent blue).node tools/build-pages.js.Testing
npm test: 950 passed, 0 failedGenerated by Claude Code