Skip to content

Added Dark Mode Toggle#55

Open
SamyukthaaAnand wants to merge 3 commits intoThe-Purple-Movement:masterfrom
SamyukthaaAnand:feat/dark-mode
Open

Added Dark Mode Toggle#55
SamyukthaaAnand wants to merge 3 commits intoThe-Purple-Movement:masterfrom
SamyukthaaAnand:feat/dark-mode

Conversation

@SamyukthaaAnand
Copy link

Overview

This PR introduces a Dark Mode feature across the TechMyrmidons website with a sun/moon toggle in the navbar.

Changes Made

  • Implemented ThemeToggle component with sun/moon icons.
  • Added theme.css with CSS variables for light and dark themes.
  • Integrated toggle into Navbar.jsx next to the hamburger menu.
  • Updated index.html to prevent flash of incorrect theme on page load.
  • Replaced hardcoded colors in CSS files with theme variables (--bg, --text, --card, --elev, --link).
  • Ensured navbar links, buttons, cards, and sections adapt to the active theme.

Result

  • Users can switch between light and dark mode.
  • Theme preference persists across sessions.
  • All major UI elements (backgrounds, text, buttons, nav links) adapt properly.

Screenshots

Light Mode

Screenshot 2025-10-20 at 4 48 25 PM Screenshot 2025-10-20 at 4 50 40 PM

Dark Mode

Screenshot 2025-10-20 at 4 48 49 PM Screenshot 2025-10-20 at 4 50 21 PM

Notes

  • Future improvement: extend theme variables to any remaining components that still use fixed colors.

@alvin-dennis
Copy link
Member

@SamyukthaaAnand Pls share the public access hosted link of you forked repo

@SamyukthaaAnand
Copy link
Author

@SamyukthaaAnand Pls share the public access hosted link of you forked repo

https://techmyrmidons-web-ten.vercel.app

@alvin-dennis
Copy link
Member

@SamyukthaaAnand Make sure the dark mode is applied to everything. not just the home page

@SamyukthaaAnand
Copy link
Author

SamyukthaaAnand commented Oct 21, 2025

@SamyukthaaAnand Make sure the dark mode is applied to everything. not just the home page

Thanks for pointing that out! I’ve updated the styles so dark mode now applies across all pages. You can verify with the deployed link.

@alvin-dennis
Copy link
Member

@SamyukthaaAnand pls make sure modes are applied to everything
For example year button is still black in dark mode

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.

2 participants