feat: set dark mode as default and improve dark theme styles#96
Merged
akshay0611 merged 1 commit intoNsanjayboruds:mainfrom Feb 20, 2026
Merged
Conversation
akshay0611
approved these changes
Feb 20, 2026
Collaborator
akshay0611
left a comment
There was a problem hiding this comment.
Code Review - PR #96
Approved
Great work on implementing dark mode as the default theme @udaykiran243 !
What's done well
- Clean implementation with localStorage fallback
- Proper Tailwind
@custom-variantusage - Consistent styling across 14 files
Verified
- Theme toggle works in both light and dark modes
Optional enhancement (not blocking)
- Consider adding
prefers-color-schemesystem preference detection for a more inclusive user experience
Ready to merge!
This was referenced Feb 20, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature: Set Dark Mode as Default & Enhance Theme Support
closes #90
Description
This PR updates the application to use Dark Mode as the default theme for all users. It also improves the dark mode implementation across the entire frontend by leveraging Tailwind CSS v4's theming capabilities and adding dedicated dark styles to key components.
Key Changes:
ThemeContextto default todarkmode if no user preference is found inlocalStorage.index.cssto use Tailwind v4's@custom-variant darkand set the body background to black by default.dark:utility classes to the following components to ensure a consistent and polished dark theme:Home.jsx,Product.jsxCard.jsx,Footer.jsxLatestCollection.jsx,BestSeller.jsxNewLetterBox.jsx,OurPolicy.jsxLogin.jsx,Registration.jsxTitle.jsxvite.config.jsto correctly support the new Tailwind CSS v4 plugin.visual Changes
Modified Files
frontend/src/context/ThemeContext.jsxfrontend/src/index.cssfrontend/vite.config.jsfrontend/src/pages/Home.jsxfrontend/src/pages/Product.jsxfrontend/src/pages/Login.jsxfrontend/src/pages/Registration.jsxfrontend/src/components/Card.jsxfrontend/src/components/Footer.jsxfrontend/src/components/LastestCollection.jsxfrontend/src/components/BestSeller.jsxfrontend/src/components/Title.jsxfrontend/src/components/NewLetterBox.jsxfrontend/src/components/OurPolicy.jsxChecklist
Screen.Recording.2026-02-19.201636.mp4