commitra / commitra/vanilla-verse

Whack-a-Mole: proper UI for dark mode + add light mode

Aperta
#175 6 commenti 0 reazioni 1 assegnatario Rivendicata da @shrreya19 Vedi su GitHub
enhancement hacktoberfest
Lingua principale
JavaScript
Stelle
14
Fork
60
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Project slug (e.g., snake, todo)

whack-a-mole

### Summary

The Whack-a-Mole game currently lacks a polished dark theme and has no light mode toggle. Implement a full UI polish for dark mode (typography, contrast, animations) and add a light mode with a theme toggle that persists user choice.

### Details / Acceptance criteria

Dark mode UI looks polished: readable contrast, consistent card/background colors, visible focus states, and smooth mole hit animations.

Light mode implemented and matches overall app design language.

Theme toggle available on the game page and in global header (if present).

Theme choice persists across refreshes (localStorage or equivalent).

Accessibility: meets basic contrast ratio for text/buttons and supports keyboard controls for hitting moles.

Checklist
Design color tokens for dark & light themes.
Implement theme toggle component.
Apply theme tokens to WhackAMole layout (board, moles, HUD, buttons).
Persist theme selection.
Test keyboard controls + contrast.

### Scope

- [x] UI changes
- [ ] Logic changes
- [ ] Accessibility
- [ ] Tests (manual)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.