Skip to content

feat: Implement theme toggle, enhance CSS smoothness, and update prim…#3

Open
rahunak wants to merge 1 commit intomainfrom
feat/theme-toggle-and-css-improvements
Open

feat: Implement theme toggle, enhance CSS smoothness, and update prim…#3
rahunak wants to merge 1 commit intomainfrom
feat/theme-toggle-and-css-improvements

Conversation

@rahunak
Copy link
Owner

@rahunak rahunak commented May 30, 2025

…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.

…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.
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