-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
28 lines (28 loc) · 924 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="author"
content="Tymoteusz Makowski (TymekDev) <[email protected]>"
/>
<meta
name="description"
content="An example of a dark mode toggle without JavaScript. A solution with only HTML and CSS."
/>
<title>HTML+CSS Dark Mode Toggle</title>
<link rel="stylesheet" href="./main.css" />
</head>
<body>
<h1>HTML+CSS Dark Mode Toggle</h1>
<input id="dark" type="checkbox" />
<label id="theme-toggle" for="dark">
<span>Light</span><span>Dark</span> mode
</label>
<footer>
<a href="https://github.com/TymekDev/no-js-dark-mode-toggle">Source</a>
</footer>
</body>
</html>