mirror of
https://github.com/shaack/bootstrap-auto-dark-mode.git
synced 2025-12-06 07:42:03 +01:00
README update
This commit is contained in:
parent
295ea00889
commit
134a706312
11
README.md
11
README.md
|
|
@ -4,6 +4,12 @@ This script adds the missing auto-dark mode to the new theme feature of Bootstra
|
||||||
|
|
||||||
It switches the Bootstrap theme automatically between light and dark mode, depending on the system settings, if you set the `data-bs-theme` attribute of your <html> to `auto`.
|
It switches the Bootstrap theme automatically between light and dark mode, depending on the system settings, if you set the `data-bs-theme` attribute of your <html> to `auto`.
|
||||||
|
|
||||||
|
## References
|
||||||
|
|
||||||
|
- [Demo page](https://shaack.com/projekte/bootstrap-auto-dark-mode/)
|
||||||
|
- [GitHub repository](https://github.com/shaack/bootstrap-auto-dark-mode)
|
||||||
|
- [npm package](https://www.npmjs.com/package/bootstrap-auto-dark-mode)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Use it by just including `bootstrap-auto-dark-mode.js` in your header and setting `data-bs-theme` to `auto`.
|
Use it by just including `bootstrap-auto-dark-mode.js` in your header and setting `data-bs-theme` to `auto`.
|
||||||
|
|
@ -17,3 +23,8 @@ Use it by just including `bootstrap-auto-dark-mode.js` in your header and settin
|
||||||
<!-- your code -->
|
<!-- your code -->
|
||||||
<!-- […] -->
|
<!-- […] -->
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Find more high quality modules from [shaack.com](https://shaack.com)
|
||||||
|
on [our projects page](https://shaack.com/works).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue