-
Notifications
You must be signed in to change notification settings - Fork 0
/
colors.html
130 lines (123 loc) · 6.38 KB
/
colors.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colors Palette</title>
<style>
:root {
/* Light Mode Colors */
--background: hsl(0, 0%, 98%);
--foreground: hsl(210, 20%, 20%);
--card: hsl(0, 0%, 95%);
--card-foreground: hsl(210, 20%, 15%);
--popover: hsl(0, 0%, 93%);
--popover-foreground: hsl(210, 20%, 12%);
--primary: hsl(142.1, 76.2%, 36.3%);
--primary-foreground: hsl(142, 85%, 24%);
--secondary: hsl(240, 15%, 85%);
--secondary-foreground: hsl(240, 20%, 40%);
--muted: hsl(0, 0%, 90%);
--muted-foreground: hsl(210, 15%, 30%);
--accent: hsl(249, 48%, 65%);
--accent-foreground: hsl(32, 89%, 50%);
--destructive: hsl(0, 84.2%, 60.2%);
--destructive-foreground: hsl(0, 0%, 98%);
--border: hsl(240, 10%, 80%);
--input: hsl(0, 0%, 96%);
--ring: hsl(142.1, 76.2%, 36.3%);
}
.dark {
/* Dark Mode Colors */
--background: hsl(20, 14%, 8%);
--foreground: hsl(0, 0%, 85%);
--card: hsl(24, 10%, 15%);
--card-foreground: hsl(0, 0%, 80%);
--popover: hsl(24, 10%, 13%);
--popover-foreground: hsl(0, 0%, 82%);
--primary: hsl(142.1, 70%, 50%);
--primary-foreground: hsl(145, 80%, 20%);
--secondary: hsl(240, 10%, 30%);
--secondary-foreground: hsl(0, 0%, 75%);
--muted: hsl(20, 15%, 12%);
--muted-foreground: hsl(210, 10%, 50%);
--accent: hsl(130, 36%, 17%);
--accent-foreground: hsl(0, 0%, 80%);
--destructive: hsl(0, 65%, 40%);
--destructive-foreground: hsl(0, 0%, 90%);
--border: hsl(240, 10%, 25%);
--input: hsl(24, 10%, 17%);
--ring: hsl(142.1, 70%, 45%);
}
</style>
</head>
<body class="p-10">
<h1 class="mb-10 text-4xl">Color Palette</h1>
<h2 class="mb-6 text-3xl">Light Mode</h2>
<div class="grid grid-cols-2 gap-10">
Light Mode Colors
<div class="relative" style="width:450px;height:450px;background:var(--popover)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Popover</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--popover-foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Popover Foreground</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--primary)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Primary</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--primary-foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Primary Foreground</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--secondary)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Secondary</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--secondary-foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Secondary Foreground</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--muted)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Muted</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--muted-foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Muted Foreground</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--accent)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Accent</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--accent-foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Accent Foreground</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--destructive)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Destructive</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--destructive-foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Destructive Foreground</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--border)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Border</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--input)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Input</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--ring)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-black bg-opacity-60">Ring</span>
</div>
</div>
</div>
<h2 class="mt-10 mb-6 text-3xl">Dark Mode</h2>
<div class="grid grid-cols-2 gap-10 dark">
Dark Mode Colors
<div class="relative" style="width:450px;height:450px;background:var(--background)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-white bg-opacity-60">Background</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-white bg-opacity-60">Foreground</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--card)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-white bg-opacity-60">Card</span>
</div>
<div class="relative" style="width:450px;height:450px;background:var(--card-foreground)">
<span class="absolute bottom-0 left-0 p-4 text-xl bg-white bg-opacity-60">Card Foreground</span>
</div>
</div>
</body>
</html>