halfmoonui / halfmoon

Halfmoon is a highly customizable, drop-in Bootstrap replacement. It comes with three built-in core themes, with dark mode support for all themes and components.
https://www.gethalfmoon.com
MIT License
3.01k stars 118 forks source link

add "setColorMode" feture #123

Closed makerio90 closed 10 months ago

makerio90 commented 2 years ago

title

you can now use

halfmoon.setColorMode('dark')

to set the page to darkmode, regardless of its current state, and

halfmoon.setColorMode('light')

to set the page to lightmode.