-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (69 loc) · 4.09 KB
/
index.html
File metadata and controls
97 lines (69 loc) · 4.09 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!doctype html>
<html lang="en">
<head><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Palette</title>
<link rel="stylesheet" href="index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Pacifico&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap" rel="stylesheet">
</head>
<body>
<header>
<h1>Palette</h1>
<div class="theme-btns-container">
<button class="theme-switch" id="light-theme-btn" aria-label="Light theme">
<i class="fa-regular fa-sun"></i>
</button>
<button class="theme-switch" id="dark-theme-btn" aria-label="Dark theme">
<i class="fa-solid fa-moon"></i>
</button>
</div>
<div class="inputs-container">
<input type="color" class="input clr-input" id="clr-input" aria-label="Select a seed colour" value="#46F0DD"></input>
<p id="clr-input-text"></p>
<select class="input scheme-select" aria-label="Select a colour scheme type">
<option class="scheme-option" value="monochrome">Monochrome</option>
<option class="scheme-option" value="monochrome-dark">Monochrome Dark</option>
<option class="scheme-option" value="monochrome-light">Monochrome Light</option>
<option class="scheme-option" value="analogic" selected="selected">Analogic</option>
<option class="scheme-option" value="complement">Complement</option>
<option class="scheme-option" value="analogic-complement">Analogic-Complement</option>
<option class="scheme-option" value="triad">Triad</option>
<option class="scheme-option" value="quad">Quad</option>
</select>
<button class="input get-scheme-btn">Get colour scheme</button>
</div>
<p class="hint">Click anywhere on a colour to copy its hex code!</p>
</header>
<main class="palette">
<div class="clr" id="clr-0">
<span id="clr-0-span"></span>
<p class="clr-hex-code" id="clr-0-text"></p>
</div>
<div class="clr" id="clr-1">
<span id="clr-1-span"></span>
<p class="clr-hex-code" id="clr-1-text"></p>
</div>
<div class="clr" id="clr-2">
<span id="clr-2-span"></span>
<p class="clr-hex-code" id="clr-2-text"></p>
</div>
<div class="clr" id="clr-3">
<span id="clr-3-span"></span>
<p class="clr-hex-code" id="clr-3-text"></p>
</div>
<div class="clr" id="clr-4">
<span id="clr-4-span"></span>
<p class="clr-hex-code" id="clr-4-text"></p>
</div>
</main>
<script type="module" src="./index.js"></script>
<script src="https://kit.fontawesome.com/1f9b885cb6.js" crossorigin="anonymous"></script>
</body>
</html>