Skip to content

Add Dark Mode Toggle With Persisted Preference#62

Open
imashiksarkar wants to merge 1 commit into
mailhog:masterfrom
imashiksarkar:feat/dark-mode
Open

Add Dark Mode Toggle With Persisted Preference#62
imashiksarkar wants to merge 1 commit into
mailhog:masterfrom
imashiksarkar:feat/dark-mode

Conversation

@imashiksarkar
Copy link
Copy Markdown

This PR introduces a dark mode option to the MailHog UI. Users can toggle themes from the navbar; the choice is saved in localStorage and defaults to the system preference on first load. Dark theme styles cover the main UI surfaces for consistent readability.

Changes

Theme state + toggle + persistence in assets/js/controllers.js
Navbar toggle UI in assets/templates/layout.html
Dark theme styles in assets/css/style.css

Manual Testing

make bindata
go run .
Open UI, click the “Dark/Light mode” toggle
Refresh and confirm the selected theme persists

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.

1 participant