Skip to content

fix: improve contrast and background gradients for light and dark themes - #192

Open
toufiq00007 wants to merge 5 commits into
arzoo0511:mainfrom
toufiq00007:feature/smooth-hero-gradient
Open

fix: improve contrast and background gradients for light and dark themes#192
toufiq00007 wants to merge 5 commits into
arzoo0511:mainfrom
toufiq00007:feature/smooth-hero-gradient

Conversation

@toufiq00007

@toufiq00007 toufiq00007 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring / Style update

Summary: fix(landing): improve theme toggle contrast and background gradients

Resolves background rendering blockages and low-contrast accessibility issues on the landing page when switching between light and dark themes.

Key Changes

  • fix(canvas): restored light-mode fallback colors and refined dark emerald-slate gradient inside AnimatedBackground.tsx
  • fix(theme): removed stray text/debug logs from ThemeToggle.tsx that were breaking layout alignment
  • refactor(landing): converted global container on line 354 from hardcoded opaque cyan styles to dynamic theme classes (from-emerald-50... to dark:from-[#0B1528]...)
  • style(hero): mapped headings to high-contrast text-slate-900 / text-slate-600 under light mode to prevent text wash-out
  • style(badges): enhanced visibility of "Gamified Environmental Education" and bottom feature cards using frosted-glass background cards (bg-white/60) and high-contrast text tags

Testing Guide

  1. Launch the local workspace (npm run dev).
  2. Toggle the theme switch button in the navbar.
  3. Verify that all typography, hero sections, and badge indicators transition smoothly and remain perfectly legible in both light and dark modes.
1 2

closes #191

@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown

@toufiq00007 is attempting to deploy a commit to the arzoorai0207-5745's projects Team on Vercel.

A member of the Team first needs to authorize it.

… voids

Swapped rigid layout tags for responsive width limits, restored the absolute theme toggle positioning, and integrated the premium animated background canvas layer.
@arzoo0511

Copy link
Copy Markdown
Owner

good work ! fix conflicts please and lmk if you need any help

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enhancement: Smooth out landing page background gradient for better visual flow

2 participants