vCard-personal-portfolio icon indicating copy to clipboard operation
vCard-personal-portfolio copied to clipboard

Added light mode feature with toggle button and localStorage support.

Open sameermuslim opened this issue 5 months ago • 0 comments

Light Mode Feature: Implemented a light mode feature in the project, providing users with the ability to toggle between light and dark modes.

Toggle Button: Added a toggle button (mode-toggle-btn) for seamless switching between light and dark modes. The button ensures a user-friendly experience.

LocalStorage Integration: Utilized localStorage functionality to remember the user's last activated mode, enhancing user convenience across sessions.

CSS Modifications (style.css):

Introduced a new CSS class, .light-mode, to facilitate styling for the light mode. Duplicated and modified variables present in ::root to accommodate the unique styling requirements of the light mode. Added new variables in both :root and .light-mode, resolving conflicts and ensuring a harmonious visual experience.

HTML Enhancements (index.html):

Included all SVGs directly within the HTML file, enabling dynamic color changes based on the selected mode. Added a

element with the class mode-toggle-btn inside the

sameermuslim avatar Jan 13 '24 13:01 sameermuslim