Skip to content

UI: Implement Dark Mode toggle - #245

Merged
soomtochukwu merged 3 commits into
DXmakers:mainfrom
Johnpii1:main
Apr 24, 2026
Merged

UI: Implement Dark Mode toggle#245
soomtochukwu merged 3 commits into
DXmakers:mainfrom
Johnpii1:main

Conversation

@Johnpii1

Copy link
Copy Markdown
Contributor

close #153

Description
Update the ThemeToggle component to add dynamic aria-label, aria-pressed, a screen-reader label, explicit icon aria-hidden flags, and a 150ms transition for micro-interactions.
Wire the app theme through Providers by switching defaultTheme to system and adding a persistent storageKey (lance-theme).
Harden RootLayout by adding suppressHydrationWarning and applying semantic theme classes on body (bg-background text-foreground).
Replace and expand globals.css with explicit light/dark CSS variables, focus-visible styling, global transition timing, and a reusable .glass-surface utility; add vitest config and a unit test for the toggle, and add a test script plus test devDependencies in package.json.

Testing
npm run lint (in apps/web) completed successfully after the component refactor.
npm install (in apps/web) failed due to a 403 Forbidden from the registry, preventing installation of test dependencies so tests could not be executed in this environment.
npm run test (in apps/web) could not run because vitest was not available in the runtime (vitest not found) due to the blocked dependency install, but unit test files for ThemeToggle were added and mock the next-themes hook for expected toggle behavior.

@Johnpii1
Johnpii1 requested a review from soomtochukwu as a code owner April 24, 2026 09:09
@drips-wave

drips-wave Bot commented Apr 24, 2026

Copy link
Copy Markdown

@Johnpii1 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

@soomtochukwu
soomtochukwu merged commit efed45e into DXmakers:main Apr 24, 2026
3 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: Implement Dark Mode toggle

2 participants