fixed FAQ light theme
Description
Theme toggle not working for FAQ section. Issue number- #75
What problem are you solving?
The FAQ section was not updating correctly in light mode. The cards remained dark because they used hardcoded inline style in tailwind css class.
How i resolve this issue?
Replaced hardcoded inline styles with Tailwind utility classes:
- Added proper light mode base styles (tw-bg-white, tw-text-gray-800)
- Added dark mode variants using dark: (dark:tw-bg-[#1e1e1e], dark:tw-text-gray-100)
Checklist
- [ ] Attach Proof of Work -
Before:
After:
-
[ ] Explain Your Approach
-
Replaced hardcoded inline styles in the FAQ section with Tailwind utility classes and added dark: variants. This allows the component to correctly respond to theme changes in both light and dark modes.
-
[ ] PR links to the issue - This PR is linked to an issue #75
@vaishnavi791 is attempting to deploy a commit to the Piyush Patel's projects Team on Vercel.
A member of the Team first needs to authorize it.