feat: added Tailwind styles to theme switcher buttons #1171
+6
−4
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.
✨ Improved Theme Switch Button Styling for Light, Dark, and System Modes
This PR enhances the UI of the theme switcher by updating the visual styling of each mode’s button in
ThemeSwitch.tsx
.🌞 Light Mode: The light theme button now uses a bright yellow background (
bg-yellow-300
) with black text for better visibility and a cheerful look.🌙 Dark Mode: The dark theme button now appears with a deep gray background (
bg-gray-800
) and white text, visually aligning with the dark theme’s aesthetic and making it easy to distinguish.🖥️ System Mode: A subtle gradient (
from-gray-300 via-white to-gray-300
) now highlights the system mode, giving it a clean, neutral presence that reflects its adaptive nature.All three buttons maintain consistent padding, rounded corners, and flex styling (
group flex w-full items-center rounded-md px-2 py-2 text-sm
) for a unified layout experience.🎯 Purpose:
These changes aim to:
This is a purely visual improvement and introduces no breaking changes. Happy to iterate further with hover effects or transitions in future PRs if needed! 🙌