Skip to content

Dark mode support

This library supports dark-mode out of the box.

You may either put "dark" or "light" class to the html tag, to enforce a mode. Otherwise this library respects the user system preference. No javascript required.

Body classSystem preferenceResulting mode
(unspecified)lightlight
(unspecified)darkdark
"light"-light
"dark"-dark