feat(profile): add dark mode support to profile page#864
Open
abdullahilateefat03-boop wants to merge 2 commits into
Open
feat(profile): add dark mode support to profile page#864abdullahilateefat03-boop wants to merge 2 commits into
abdullahilateefat03-boop wants to merge 2 commits into
Conversation
|
@abdullahilateefat03-boop Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
closes #360
feat(profile): add dark mode support to profile page
Summary
Implements full dark mode support across the Profile page, wiring the existing ThemeContext (class-based) into all profile UI components and making the Dark Mode toggle in Settings actually apply the theme.
Changes
Config
tailwind.config.js — added darkMode: 'class' to enable Tailwind's dark variant via the .dark HTML class
globals.css — added html.dark CSS variable overrides (--background, --foreground) so token-based colors respond to dark mode
Theme wiring
SettingsPanel.tsx — Dark Mode toggle now calls useTheme() to apply/remove dark mode in real time; toggle stays in sync if theme changes from another source
PreferencesSection.tsx — Light/Dark/System radio buttons now call useTheme() so the edit-profile form also applies the theme immediately on selection
Dark mode styling (all panels updated with dark: Tailwind classes)
page.tsx
— page background
ProfileHeader — header bar, title, user name
ProfileTabs — inactive tab button states
ProfileInfoPanel — panel, labels, all form inputs, selects, textarea
SettingsPanel — panel, text, toggle track colour
AchievementsPanel — panel background, card borders, text hierarchy
CustomerSupportPanel — FAQ accordion, contact option cards, contact form inputs
CertificatesPanel — panel background aligned to consistent gray-800
ProfilePanelSkeleton — skeleton loading states
What was tested
Dark/Light toggle in Settings tab correctly applies and removes the .dark class on
System preference option defers to prefers-color-scheme
Theme persists across page reloads via localStorage and cookie (existing ThemeContext behaviour)
All form inputs, selects, textareas, and interactive elements have visible contrast in both modes
Skeleton loaders match the panel background in dark mode