Skip to content

feat(profile): add dark mode support to profile page#864

Open
abdullahilateefat03-boop wants to merge 2 commits into
rinafcode:mainfrom
abdullahilateefat03-boop:feat/profile-dark-mode-support
Open

feat(profile): add dark mode support to profile page#864
abdullahilateefat03-boop wants to merge 2 commits into
rinafcode:mainfrom
abdullahilateefat03-boop:feat/profile-dark-mode-support

Conversation

@abdullahilateefat03-boop

@abdullahilateefat03-boop abdullahilateefat03-boop commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

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

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

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.

feature: Profile Page : Dark Mode Support

1 participant