Skip to content

feat: implement dark mode token variants#437

Merged
dev-fatima-24 merged 2 commits into
dev-fatima-24:mainfrom
davidawele3:feat/dark-mode-tokens-277
May 31, 2026
Merged

feat: implement dark mode token variants#437
dev-fatima-24 merged 2 commits into
dev-fatima-24:mainfrom
davidawele3:feat/dark-mode-tokens-277

Conversation

@davidawele3
Copy link
Copy Markdown
Contributor

  • useDarkMode: set data-theme='dark' on instead of class toggle
  • App.jsx: remove duplicate inline nav, delegate to NavBar component
  • index.css: fix light-mode accent (#0369a1) and success (#15803d) to meet WCAG AA 4.5:1 contrast on white
  • Replace all hardcoded colors with CSS variables in: AnalyticsDashboard, PatientDashboard, IssuerDashboard, AdminDashboard, Landing, VerifyPage, FreighterBanner
  • Add darkMode.test.js: data-theme attribute + WCAG AA contrast checks (27 tests passing)

Closes #277

Description

Please include a summary of the changes and related context.

Closes #(issue number)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Changes Made

Testing

Please describe the tests you ran and how to reproduce them:

  • Unit tests pass
  • Integration tests pass
  • Manual testing completed

Test Coverage:

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests passed locally with my changes
  • Any dependent changes have been merged and published
  • If this PR adds a new directory or key file, I have updated docs/folder-structure.md.

Screenshots (if applicable)

If your changes include UI modifications, please add screenshots here.

Additional Notes

Any additional information that reviewers should know.

davidawele3 and others added 2 commits May 30, 2026 22:40
- useDarkMode: set data-theme='dark' on <html> instead of class toggle
- App.jsx: remove duplicate inline nav, delegate to NavBar component
- index.css: fix light-mode accent (#0369a1) and success (#15803d) to
  meet WCAG AA 4.5:1 contrast on white
- Replace all hardcoded colors with CSS variables in:
  AnalyticsDashboard, PatientDashboard, IssuerDashboard, AdminDashboard,
  Landing, VerifyPage, FreighterBanner
- Add darkMode.test.js: data-theme attribute + WCAG AA contrast checks
  (27 tests passing)

Closes dev-fatima-24#277
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@davidawele3 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@dev-fatima-24 dev-fatima-24 merged commit bb70584 into dev-fatima-24:main May 31, 2026
3 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI/UX] Implement dark mode theme

2 participants