Darkmode.js is a native JavaScript to check and set browser/OS dark mode in an easy way.

Dark mode: ???

Browser dark mode: ???