LearnHub icon indicating copy to clipboard operation
LearnHub copied to clipboard

CSS Refactor: Theme-Specific Contrast Fix for Highlighted Text

Open RiyaRani23 opened this issue 1 year ago • 2 comments

** 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 **

  1. Updated CSS/Tailwind configuration to define theme-specific colors.

  2. Application of the new color variable/class to the highlighted text in the hero section.

  3. Confirmation that text contrast passes the accessibility check for both themes.

Image

RiyaRani23 avatar Oct 06 '25 06:10 RiyaRani23

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!

github-actions[bot] avatar Oct 06 '25 06:10 github-actions[bot]

can you assign me this issue @souvikpramanikgit

Dhanwantisatone avatar Oct 17 '25 18:10 Dhanwantisatone