Skip to content

style(landing): enhance text contrast and readability across hero and feature sections#2820

Open
mahavirb22 wants to merge 4 commits into
Priyanshu-byte-coder:mainfrom
mahavirb22:feat/improve-website-color-contrast
Open

style(landing): enhance text contrast and readability across hero and feature sections#2820
mahavirb22 wants to merge 4 commits into
Priyanshu-byte-coder:mainfrom
mahavirb22:feat/improve-website-color-contrast

Conversation

@mahavirb22

Copy link
Copy Markdown
Contributor

Summary

Resolves severe low-contrast text issues on the landing page that violated WCAG AA accessibility standards. Upgraded the primary stat counters, sub-labels, and feature walkthrough descriptions to readable, high-contrast Tailwind slate/gray utility shades.

Closes #1497


Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that changes existing behavior)
  • 📝 Documentation update
  • ♻️ Refactor / code cleanup (no functional change)
  • ⚡ Performance improvement
  • 🔒 Security fix
  • 🧪 Tests only

What Changed

  • Upgraded the 4 primary numerical stat counters (847+, 43+, etc.) from faint greys to high-contrast bold shades in src/app/page.tsx / landing components.
  • Darkened the descriptive body copy beneath STREAK TRACKING, PR ANALYTICS, and WEEKLY GOALS to ensure legibility against the light card containers.

How to Test

  1. Spin up the app locally (pnpm dev).
  2. Navigate to http://localhost:3000.
  3. Observe the hero statistics numbers and the feature section cards.
  4. Verify all text is easily legible without straining the eyes.

Expected result: Crisp, accessible text hierarchy across the entire landing page viewport.



Checklist

  • Linked the related issue above
  • Self-reviewed my own diff
  • No unnecessary console.log, debug code, or commented-out blocks
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Added or updated tests where applicable
  • Updated documentation / comments if behavior changed

Accessibility (UI changes only)

  • Keyboard navigation works correctly
  • Color contrast meets WCAG AA standard
  • ARIA labels / roles added where needed
  • Tested on mobile / responsive layout

@github-actions github-actions Bot added type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:design GSSoC type bonus: UI/design (+10 pts) type:performance GSSoC type bonus: performance (+15 pts) gssoc26 GSSoC 2026 contribution labels Jun 26, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@mahavirb22 mahavirb22 force-pushed the feat/improve-website-color-contrast branch 3 times, most recently from b600c25 to 93d3985 Compare June 26, 2026 18:09
@github-actions github-actions Bot added the type:testing GSSoC type bonus: tests (+10 pts) label Jun 26, 2026
@mahavirb22 mahavirb22 force-pushed the feat/improve-website-color-contrast branch from cc33f8b to 7d68b23 Compare June 26, 2026 18:44
@mahavirb22 mahavirb22 closed this Jun 27, 2026
@mahavirb22 mahavirb22 reopened this Jun 27, 2026
@mahavirb22

Copy link
Copy Markdown
Contributor Author

Hi! My PR is consistently failing the Playwright workflows with:

ERR_PNPM_LOCKFILE_CONFIG_MISMATCH

I checked my branch against the latest upstream/main, and both package.json and pnpm-lock.yaml match exactly. I also verified that upstream/main itself has an inconsistency: pnpm-lock.yaml contains a postcss override that isn't present in package.json.

Since my PR only changes landing page text contrast and doesn't touch dependencies, it looks like this may be a repository/workflow issue rather than something introduced by my branch. Could you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:design GSSoC type bonus: UI/design (+10 pts) type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts) type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improve color contrast and overall website styling

1 participant