Adding Darkmode functionality with animations and icons #11
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.
This pull request introduces a site-wide dark mode theme toggle for improved accessibility and user experience, along with related styling updates. It adds a toggle button to the header, implements the logic for switching themes, and updates CSS to support both light and dark modes using CSS variables. Additionally, it improves color consistency across navigation and footer elements.
Dark mode feature and theme toggle:
_includes/header.html) and included inline SVG icons for sun and moon in the document head (_includes/head.html). [1] [2]assets/js/script.jsfor toggling between dark and light themes, persisting user choice, and updating the theme icon accordingly.Styling updates for theme support:
assets/css/_global.scssto use CSS variables for background, text, and primary colors, supporting both dark and light modes via media queries and HTML classes.assets/css/_header.scssandassets/css/_footer.scssto use the new CSS variables for better consistency across themes. [1] [2]assets/css/_header.scss.Other changes:
webrickgem to theGemfileto ensure local development compatibility with Jekyll.