Skip to content

[FEATURE] Implement Dark/Light Theme Toggle on Landing Page #675

@CodeMaverick-143

Description

@CodeMaverick-143

The current Landing Page doesn’t support a dark/light theme toggle.
To improve accessibility and user experience, we should add a theme switcher that allows users to switch between Light and Dark modes — without altering the existing layout, animations, or design flow.

Requirements

  • Implement a theme toggle button in the Navbar or top-right corner.
  • Use Tailwind’s dark: variants for styling (e.g., dark:bg-gray-900, dark:text-white).
  • Maintain existing structure and GSAP/Framer animations — no layout or design refactors.
  • Store user preference in localStorage, and sync with the system color scheme if possible (prefers-color-scheme).
  • Apply theme context globally (e.g., ThemeContext or simple React state).
  • Ensure all text, backgrounds, and buttons have sufficient contrast in both themes.

Implementation Notes

  • Update tailwind.config.js → darkMode: "class".
  • Add a new file: src/context/ThemeContext.jsx for managing theme state.
  • Optional: Add src/components/ThemeToggle.jsx for the toggle UI.
  • Test theme switching on the Landing Page only (initial rollout).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions