Awesome
<img width="100%" src="./banner-dark.gif#gh-dark-mode-only" /> <img width="100%" src="./banner-light.gif#gh-light-mode-only" /> <div align="center"> <br /> <img alt="NPM version" src="https://img.shields.io/npm/v/theme-toggles?style=for-the-badge"> <!-- PROJECT LOGO --> <br /> <h1 >Theme Toggles</h1> <p>Theme toggles is a collection of awesome, easy to use, animated toggles; designed for switching between light and dark modes. It's a modular library which aims to provide an ample customization where needed. Works great utility CSS frameworks such as Tailwindcss.</p> </p> <h2> <a href="https://toggles.dev">Full Documentation</a> </h2> </div>This is the v5 branch. The current release version can be found here. Version 5 is a complete refactor of the library
Installing the latest version
You can install the latest version by using:
npm install theme-toggles@latest
oryarn add theme-toggles@latest
.npm install @theme-toggles/react@latest
oryarn add @theme-toggles/react@latest
.
Packages
Name | Version |
---|---|
theme-toggles | |
@theme-toggles/react |
About
Our project provides you with a quick and effortless way to implement well designed toggles. With more websites supporting both light and dark themes, it's important to ensure sites also have a clean and accessible toggle.
We use SVG’s for each of our toggles, animating them with CSS. Using SVG’s instead of html elements like div’s enables us to have minimal markup whilst maintaining a high quality and scalable icon.
Features
- Tiny ~1.5kb (min and gzip)
- Accessible
- Customizable
Roadmap
New development is currently happening on the v5 branch
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.