0.0.5 • Published 15 days ago

dynamic-theme-switcher-library v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

dynamic-theme-switcher-library

A simple library for dynamically switching themes in your web application.

Installation

Run the following command to install dynamic-theme-switcher-library:

npm install dynamic-theme-switcher-library

Usage

To use dynamic-theme-switcher-library, import the switchTheme function and use it to change the theme:

const { switchTheme } = require('dynamic-theme-switcher-library');

// Switch to the 'dark' theme
switchTheme('dark');

// Switch to the 'light' theme
switchTheme('light');

Ensure your CSS is set up to respond to the data-theme attribute changes on the html element.

0.0.5

15 days ago

0.0.2

1 month ago

0.0.4

1 month ago

0.0.1

2 months ago