Skip to content

fix: use theme-aware CSS classes in 404 page for dark mode support - #594

Merged
gopaljilab merged 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/404-page-dark-mode-support
Jun 2, 2026
Merged

gopaljilab merged 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/404-page-dark-mode-support

Conversation

@nyxsky404

@nyxsky404 nyxsky404 commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Replaces hardcoded gray color classes in the 404 page with theme-aware CSS custom property classes so the page respects dark mode. Also adds document.title and changes the link from /dashboard to /.

Related Issue

Fixes #585

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 would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🎨 Style / UI improvement
  • ♻️ Refactor (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test addition or update
  • 🔧 Chore / Tooling / Config

Changes Made

  • bg-gray-50 → bg-background
  • text-gray-900 → text-foreground
  • text-gray-600 → text-muted-foreground
  • text-red-500 → text-destructive
  • bg-blue-600 → bg-primary, text-white → text-primary-foreground
  • Link href changed from /dashboard to /
  • Added document.title for WCAG 2.4.2 compliance

Testing

  • I have tested these changes locally
  • All existing tests pass

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have updated the documentation if needed

@gopaljilab
gopaljilab merged commit 35feaf2 into gopaljilab:main Jun 2, 2026
3 of 7 checks passed
@github-actions github-actions Bot added gssoc:approved level:intermediate Requires standard familiarity with the codebase. type:bug Something isn't working or throwing errors. labels Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved level:intermediate Requires standard familiarity with the codebase. type:bug Something isn't working or throwing errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 404 page uses hardcoded colors — does not respect dark mode theme

2 participants