Skip to content

Add Dark/Light Theme Toggle with Persistent User Preference #89

@rahana-19

Description

@rahana-19

Currently, the Memory Block Game uses a single visual theme. Many users prefer switching between Dark Mode and Light Mode, especially for better visibility and reduced eye strain.

This feature will introduce a theme toggle button that allows users to switch between dark and light themes. The selected theme should persist even after refreshing the page.

Acceptance Criteria
A toggle button (🌙 / ☀️) is visible in the header
Clicking the toggle switches between:
Light Theme (default)
Dark Theme
Selected theme is saved in local Storage
After page refresh, previously selected theme remains active
Smooth transition animation between themes

Why This is Useful
Improves user experience
Reduces eye strain during long gameplay
Makes the UI feel modern and professional
Adds personalization feature
Beginner-friendly enhancement for contributors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions