Skip to content

feat: add Dark Mode support#560

Open
NobleResearch wants to merge 1 commit intoHuxpro:masterfrom
NobleResearch:master
Open

feat: add Dark Mode support#560
NobleResearch wants to merge 1 commit intoHuxpro:masterfrom
NobleResearch:master

Conversation

@NobleResearch
Copy link
Copy Markdown

Summary

This PR introduces a modular Dark Mode toggle to the navigation bar.

Key Changes

  • Modular Assets: Created css/darkmode.css and js/darkmode.js to keep the core theme clean.
  • Persistence: Uses localStorage to remember user preference across sessions.
  • UI Integration: Added a moon icon (fa-moon-o) to the navbar consistent with the existing Material Design icons.
  • Performance: Leverages CSS Variables for smooth transitions and high-performance rendering.

Testing

Verified locally using jekyll serve. Tested on Chrome/Firefox with active session persistence.

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