Automagically use dark mode detection on your website
Example in react:
const darkModeCode = require('dark-mode-code')
//...
<script dangerouslySetInnerHTML={{ __html: darkModeCode }} />
//...
<body class="dark">
if the client OS is in dark mode.window.__toggleDarkMode()
Pablo Varela |