use-dark-hook
Version:
A light-weight and straight forward library that adds 'dark mode' in your web app using React Hook.
15 lines (14 loc) • 402 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>use-dark-hook example</title>
<link rel="stylesheet" href="./css/normalize.css" />
<link rel="stylesheet" href="./css/main.css" />
</head>
<body>
<div id="app"></div>
<script src="./js/index.js"></script>
</body>
</html>