Skip to content

Add a new yellow colour palette - #24

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/add-yellow-palette
Open

Add a new yellow colour palette#24
Copilot wants to merge 2 commits into
mainfrom
copilot/add-yellow-palette

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown

Closes #23

Summary

  • Adds a new warm, yellow-hued colour palette as an alternative theme, activated via data-theme="yellow" on the <html> element (see src/styles.css).
  • Adds src/theme.js to apply and persist the selected theme in localStorage.
  • Adds a palette toggle button (🎨) in the header so users can switch between the default and yellow palettes; the choice persists across reloads.

Verification

  • npx parcel build public/index.html succeeds.
  • npx eslint src reports no issues.
  • Verified visually with headless Chrome screenshots: default palette renders unchanged, yellow palette applies correctly on toggle, and the choice persists after reload.

GitHub Copilot and others added 2 commits August 7, 2026 15:48
- Add data-theme="yellow" CSS variables in styles.css for a warm,
  yellow-hued alternative palette (success/warning/error/gray scale)
- Add src/theme.js helper to apply/persist the selected theme via
  localStorage
- Add a palette toggle button in the Header to switch between the
  default and yellow themes

Closes #23

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add data-theme="red" CSS variables in styles.css for a bold,
  red-hued alternative palette (success/warning/error/gray scale)
- Add THEME_ORDER and getNextTheme() helper in theme.js so the
  palette toggle cycles default -> yellow -> red -> default
- Update Header toggle button label/tooltip to reflect the next
  theme in the cycle

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 yellow hues

2 participants