CSS Refactor: Theme-Specific Contrast Fix for Highlighted Text
** Problem Description **
The website currently fails to maintain proper contrast for accent colors when the user switches to the dark theme. Specifically, the red text highlights in the hero section ("Full Stack Development" and "30 Days") look good in the light theme, but become very low contrast against the dark background. This fails to meet WCAG 2.1 Level AA accessibility standards (minimum 4.5:1 contrast).
The underlying issue is that the text color is defined without considering the change in the background color.
** Proposed Solution **
-
Updated CSS/Tailwind configuration to define theme-specific colors.
-
Application of the new color variable/class to the highlighted text in the hero section.
-
Confirmation that text contrast passes the accessibility check for both themes.
Thanks for creating the issue in LearnHub! Before you start working on your PR, please make sure to:
- ⭐ Star the repository if you haven't already.
- Pull the latest changes to avoid any merge conflicts.
- Attach before & after screenshots in your PR for clarity.
- Include the issue number in your PR description for better tracking. Don't forget to follow @souvikpramanikgit – Project Admin – for more updates!
We're excited to see your contribution as part of GSSOC 2025 . 🎉
Happy open-source contributing!