feat: Implement theme toggle, enhance CSS smoothness, and update prim…#3
Open
feat: Implement theme toggle, enhance CSS smoothness, and update prim…#3
Conversation
…ary color This commit introduces a dark/light theme toggle switch and includes general CSS improvements. Key features and changes: - Added an SVG-based theme toggle switch to the navbar. - Implemented JavaScript logic to toggle a 'dark-theme' class on the body and persist your preference in local storage. - Defined light and dark theme color variables in CSS. - Integrated the new toggle switch with these themes, including icon changes (sun/moon). - Enhanced site-wide CSS to improve smoothness of transitions for various elements (links, cards, backgrounds, hover effects). - Addressed potential "twitching" by ensuring smoother visual updates. - Updated the primary color variable to #415169 for a new site accent color. The theme toggle allows you to switch between light and dark modes, and your preference is saved for subsequent visits. CSS transitions have been added or refined for a more polished user experience.
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.
…ary color
This commit introduces a dark/light theme toggle switch and includes general CSS improvements.
Key features and changes:
The theme toggle allows you to switch between light and dark modes, and your preference is saved for subsequent visits. CSS transitions have been added or refined for a more polished user experience.