Skip to content

feat: Added toggle for light and dark mode#2301

Open
Mayank-2-16 wants to merge 1 commit into
piyushgarg-dev:mainfrom
Mayank-2-16:feat/dark-light-toggle
Open

feat: Added toggle for light and dark mode#2301
Mayank-2-16 wants to merge 1 commit into
piyushgarg-dev:mainfrom
Mayank-2-16:feat/dark-light-toggle

Conversation

@Mayank-2-16

Copy link
Copy Markdown

What does this PR do?

Fixes: #2286

This PR adds a dark/light mode toggle to the Home page at the top-right corner and introduces a small theme system based on global CSS variables, so the existing UI can switch cleanly between modes without changing any underlying logic or page behavior. It also persists the user’s theme preference in local storage and initializes the saved theme early on page load to avoid flicker, while updating the Home page surfaces like the header, cards, contact form, and terminal to respond consistently to the selected theme.

Fixes #(issue)

image

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

@vercel

vercel Bot commented May 18, 2026

Copy link
Copy Markdown

@Mayank-2-16 is attempting to deploy a commit to the Piyush Garg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Mayank-2-16 Mayank-2-16 changed the title Feat: Added toggle for light and dark mode feat: Added toggle for light and dark mode May 18, 2026
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 Dark / Light Mode Toggle

1 participant