Add Dark Mode Support with Three-State Theme Toggle#78
Merged
chriselsen merged 2 commits intomasterfrom Feb 17, 2026
Merged
Conversation
- Add three-state theme toggle (auto/light/dark) following mkdocs-material pattern - Support automatic OS-based theme switching with prefers-color-scheme - Apply responsive font sizes to dark theme - Fix masthead background color in dark mode - Force FontAwesome icons to inherit color in dark mode - Create and swap dark logo version (white text) automatically - Override SVG colors to use currentColor in dark mode - Add white background to content images for visibility in dark mode - Fix search icon color to white in dark mode - Remove focus outline from theme toggle button - Add tooltips showing next action on theme toggle hover - Fix theme toggle reliability across page navigation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Implements dark mode support for the Jekyll website with a three-state theme toggle (auto/light/dark) that respects OS preferences and persists user choice across sessions.
Changes
Theme Toggle System
prefers-color-schemepreferencelocalStorageedgecloud.png(light) andedgecloud-dark.png(dark)<head>applies theme before page renderDark Mode Styling
Files Modified
assets/js/theme.js: Theme toggle logic with three-state systemassets/css/dark.scss: Dark theme stylesheet with responsive typography_includes/head/custom.html: FOUC prevention script_includes/masthead.html: Theme toggle button with three icons_sass/minimal-mistakes/_theme-toggle.scss: Theme toggle button styling_config.yml: Logo configurationassets/images/edgecloud-dark.png: Dark mode logo variant_includes/search/algolia-search-scripts.html: Upgraded to InstantSearch.js v2.10.4Algolia Search Upgrade
Known Issues
Testing