-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
318 lines (288 loc) · 8.68 KB
/
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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Commoncolors.css | A lightweight css color scheme at your fingertips.</title>
<meta name="description" content="A small, intuitive css color scheme at your fingertips">
<meta name="keywords" content="Color names,css colors, design system">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="css/min/commoncolors-lib.min.css">
</head>
<style>
html {
font-size: 100%;
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
font-family: sans-serif;
font-size: 1em;
line-height: 1.4;
color : #222;
margin: 0 auto;
padding: 1em;
width: 100%;
max-width: 60em;
}
@media screen and (min-width: 40em) {
body { font-size: 1.15em; } }
@media screen and (min-width: 60em) {
body { font-size: 1.4em; } }
@media screen and (min-width: 90em) {
body { font-size:1.5vw; } }
a { color: blue; }
a:hover { text-decoration: underline; }
header { margin : 2em 0; }
header h1 { margin : 1em 0; font-size: 1.2em;}
header p { margin: 0 }
.border { border-width: 1px; border-style: solid;}
.column { width: 100%; margin-bottom: 1em;}
@media only screen {
.row { margin: 1.5em -1em; }
.row:after {
content: "";
clear: both;
display: table;
}
.column {
float: left;
width: 100%;
padding: 0 1em;
}
}
@media only screen and (min-width: 40em) { .column { width: 50%; } }
@media only screen and (min-width: 60em) { .column { width: 25%; } }
.color-grid {
font-size: 0.875rem;
width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
}
.color-grid h2 {
margin-top: 1em;
font-size: 1rem;
}
.color-name {
font-size: .875em;
font-weight: 550;
text-transform:uppercase;
}
.color-background {
width: 100% ;
height: 5em;
margin-bottom: .2em;
}
footer { font-size: 1rem; margin: 1.5em 0; text-align: right;}
</style>
<body>
<header>
<h1>Commoncolors.css</h1>
<p> A simple, lightweight CSS color palette at your fingertips. <a href="https://github.com/juytter/commoncolors.css" title="github project" >Project / doc.</a> → </p>
<p>
<span title="downloads">⤓</span> <a href="css/commoncolors--vars.css" title="CSS3 color variables" target="_blank"> Variables</a> |
<a href="css/commoncolors-lib.css" target="_blank " title="CSS color utilities library">Library</a> (<a href="css/min/commoncolors-lib.min.css" title="minifed version" target="_blank">min.</a>)
</p>
</header>
<article class="color-grid">
<div class="row">
<div class="column">
<div class="color-background bg-gray-1"></div>
<span class="color-name">gray-1</span>
</div>
<div class="column">
<div class="color-background bg-gray-2"></div>
<span class="color-name">gray-2</span>
</div>
<div class="column">
<div class="color-background bg-gray"></div>
<span class="color-name">gray gray-3</span>
</div>
<div class="column">
<div class="color-background bg-gray-4"></div>
<span class="color-name">gray-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-red-1"></div>
<span class="color-name">red-1</span>
</div>
<div class="column">
<div class="color-background bg-red-2"></div>
<span class="color-name">red-2</span>
</div>
<div class="column">
<div class="color-background bg-red"></div>
<span class="color-name">red red-3</span>
</div>
<div class="column">
<div class="color-background bg-red-4"></div>
<span class="color-name">red-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-orange-1"></div>
<span class="color-name">orange-1</span>
</div>
<div class="column">
<div class="color-background bg-orange-2"></div>
<span class="color-name">orange-2</span>
</div>
<div class="column">
<div class="color-background bg-orange"></div>
<span class="color-name">orange orange-3</span>
</div>
<div class="column">
<div class="color-background bg-orange-4"></div>
<span class="color-name">orange-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-yellow-1"></div>
<span class="color-name">yellow-1</span>
</div>
<div class="column">
<div class="color-background bg-yellow-2"></div>
<span class="color-name">yellow-2</span>
</div>
<div class="column">
<div class="color-background bg-yellow"></div>
<span class="color-name">yellow yellow-3</span>
</div>
<div class="column">
<div class="color-background bg-yellow-4"></div>
<span class="color-name">yellow-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-green-1"></div>
<span class="color-name">green-1</span>
</div>
<div class="column">
<div class="color-background bg-green-2"></div>
<span class="color-name">green-2</span>
</div>
<div class="column">
<div class="color-background bg-green"></div>
<span class="color-name">green green-3</span>
</div>
<div class="column">
<div class="color-background bg-green-4"></div>
<span class="color-name">green-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-cyan-1"></div>
<span class="color-name">cyan-1</span>
</div>
<div class="column">
<div class="color-background bg-cyan-2"></div>
<span class="color-name">cyan-2</span>
</div>
<div class="column">
<div class="color-background bg-cyan"></div>
<span class="color-name">cyan cyan-3</span>
</div>
<div class="column">
<div class="color-background bg-cyan-4"></div>
<span class="color-name">cyan-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-blue-1"></div>
<span class="color-name">blue-1</span>
</div>
<div class="column">
<div class="color-background bg-blue-2"></div>
<span class="color-name">blue-2</span>
</div>
<div class="column">
<div class="color-background bg-blue"></div>
<span class="color-name">blue blue-3</span>
</div>
<div class="column">
<div class="color-background bg-blue-4"></div>
<span class="color-name">blue-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-violet-1"></div>
<span class="color-name">violet-1</span>
</div>
<div class="column">
<div class="color-background bg-violet-2"></div>
<span class="color-name">violet-2</span>
</div>
<div class="column">
<div class="color-background bg-violet"></div>
<span class="color-name">violet violet-3</span>
</div>
<div class="column">
<div class="color-background bg-violet-4"></div>
<span class="color-name">violet-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-magenta-1"></div>
<span class="color-name">magenta-1</span>
</div>
<div class="column">
<div class="color-background bg-magenta-2"></div>
<span class="color-name">magenta-2</span>
</div>
<div class="column">
<div class="color-background bg-magenta"></div>
<span class="color-name">magenta magenta-3</span>
</div>
<div class="column">
<div class="color-background bg-magenta-4"></div>
<span class="color-name">magenta-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background bg-pink-1"></div>
<span class="color-name">pink-1</span>
</div>
<div class="column">
<div class="color-background bg-pink-2"></div>
<span class="color-name">pink-2</span>
</div>
<div class="column">
<div class="color-background bg-pink"></div>
<span class="color-name">pink pink-3</span>
</div>
<div class="column">
<div class="color-background bg-pink-4"></div>
<span class="color-name">pink-4</span>
</div>
</div>
<div class="row">
<div class="column">
<div class="color-background border bd-gray"></div>
<span class="color-name">white</span>
</div>
<div class="column">
<div class="color-background bg-black"></div>
<span class="color-name">black</span>
</div>
</div>
</article>
<footer>
<p> <a href="https://github.com/juytter/commoncolors.css" title="github project page">commoncolors.css</a> <small><a href="LICENSE.md" title="MIT License">©</a></small> <a href="https://github.com/juytter" title="author">juytter</a> </p>
</footer>
</body>
</html>