@htmx/htmx-dark-mode
v0.2.0
Published
A custom element for adding a toolbar to a textarea for markdown editing.
Readme
🥪 HTMX Dark Mode
This is a simple HTMX element that can be used to toggle the dark mode on a site.
Usage
<htmx-dark-mode>
<input type="checkbox" value="synthwave" />
</htmx-dark-mode>Attributes
dark-theme- The name of the dark theme (default: dark)light-theme- The name of the light theme (default: light)
Installation
npm install @htmx/htmx-dark-modeUse as a module in your application:
<script src="https://unpkg.com/@htmx/htmx-dark-mode@latest/dist/index.js" type="module"></script>