Skip to content

Add purple color palette - #22

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/purple-color-palette
Open

Add purple color palette#22
Copilot wants to merge 2 commits into
mainfrom
copilot/purple-color-palette

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown

Closes #20

Adds a purple-toned alternate color palette and a toggle button in the header to switch between the default and purple themes. The chosen theme persists across reloads via localStorage.

Changes

  • src/styles.css: new [data-theme='purple'] block defining purple variants of --color-success, --color-warning, --color-error, and the --color-gray-* scale, plus styling for the new toggle button.
  • src/components/Header/Header.js: adds a theme toggle button (palette/purple-circle emoji) that flips document.documentElement.dataset.theme between default and purple, persisting the choice in localStorage.

Verification

  • npm run build succeeds.
  • Manually verified in a headless browser: toggling switches all colors (board borders, correct/incorrect/misplaced cell backgrounds) to the purple palette, and the choice persists across reloads.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Adds a purple-toned alternate color palette (#20) via CSS custom
properties under [data-theme='purple'], and a toggle button in the
header that switches between the default and purple themes, persisting
the choice to localStorage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Author

This also resolves duplicate issue #21 ("Add a new colour palette with purple tones"), which has the same title/request as #20.

Adds a beige-toned alternate color palette under [data-theme='beige']
and updates the theme toggle button to cycle through default, purple,
and beige themes, persisting the choice in localStorage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Add a new colour palette with purple tones

2 participants