-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
color.html
441 lines (436 loc) · 19.7 KB
/
color.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
<!DOCTYPE html>
<html lang="en">
<head>
{{> head }}
<style>
.dynamic-color .red,
.dynamic-color .pink,
.dynamic-color .purple,
.dynamic-color .deep-purple,
.dynamic-color .indigo,
.dynamic-color .blue,
.dynamic-color .light-blue,
.dynamic-color .cyan,
.dynamic-color .teal,
.dynamic-color .green,
.dynamic-color .light-green,
.dynamic-color .lime,
.dynamic-color .yellow,
.dynamic-color .amber,
.dynamic-color .orange,
.dynamic-color .deep-orange,
.dynamic-color .brown,
.dynamic-color .grey,
.dynamic-color .blue-grey,
.dynamic-color .black,
.dynamic-color .white,
.dynamic-color .transparent {
height: 55px;
width: 100%;
padding: 0 15px;
font-weight: 500;
font-size: 12px;
display: flex;
justify-content: center;
flex-direction: column;
box-sizing: border-box;
}
.dynamic-color .col {
margin-bottom: 55px;
}
</style>
</head>
<body>
{{> navbar }}
<main>
{{> intro}}
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m1 xl7 offset-xl1">
<div id="color-usage" class="section scrollspy">
<h3 class="header">Usage</h3>
<p class="caption">
Here is a color palette based on the material design base colors. Each of these colors is defined with a base color class and an optional lighten or darken class.
</p>
<section class="section">
<h4>Background Color</h4>
<div class="row">
<div class="col s12 m9">
<p>To apply a background color, just add the color name and light/darkness as a class to the element.</p>
<div class="card-panel teal lighten-2">This is a card panel with a teal lighten-2 class</div>
<pre style="padding-top: 0px">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-html copiedText">
<xmp>
<div class="card-panel teal lighten-2">This is a card panel with a teal lighten-2 class</div>
</xmp>
</code>
</pre>
</div>
</div>
</section>
<section class="section">
<h4>Text Color</h4>
<div class="row section">
<div class="col s12 m9">
<p>
To apply a text color, just append
<code class="languague-markup">-text</code> to the color class like this:
</p>
<div class="card-panel">
<span class="blue-text text-darken-2">This is a card panel with dark blue text</span>
</div>
<pre style="padding-top: 0px">
<span class="copyMessage">Copied!</span>
<i class="material-icons copyButton">content_copy</i>
<code class="language-html copiedText">
<xmp>
<div class="card-panel">
<span class="blue-text text-darken-2">This is a card panel with dark blue text</span>
</div>
</xmp>
</code>
</pre>
</div>
</div>
</div>
</section>
<div id="sass" class="section scrollspy">
<h3 class="header">Sass</h3>
<p>For background colors, you can apply the color simply by extending the classes like the example below.</p>
<pre><code class="language-scss col s12">
.ilike-blue-container {
@extend .blue, .lighten-4;
}
</code></pre>
<p>For changing text color, you can apply the color simply by extending the classes like the example below.</p>
<pre><code class="language-scss col s12">
.ilike-blue-container {
@extend .blue-text, .text-lighten-4;
}
</code></pre>
</div>
<div id="palette" class="section scrollspy">
<h3 class="header">Color Palette</h3>
<div class="row dynamic-color">
<div class="col s12 m6 l4">
<div class="red lighten-5"></div>
<div class="red lighten-4"></div>
<div class="red lighten-3"></div>
<div class="red lighten-2"></div>
<div class="red lighten-1"></div>
<div class="red"></div>
<div class="red darken-1"></div>
<div class="red darken-2"></div>
<div class="red darken-3"></div>
<div class="red darken-4"></div>
<div class="red accent-1"></div>
<div class="red accent-2"></div>
<div class="red accent-3"></div>
<div class="red accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="pink lighten-5"></div>
<div class="pink lighten-4"></div>
<div class="pink lighten-3"></div>
<div class="pink lighten-2"></div>
<div class="pink lighten-1"></div>
<div class="pink"></div>
<div class="pink darken-1"></div>
<div class="pink darken-2"></div>
<div class="pink darken-3"></div>
<div class="pink darken-4"></div>
<div class="pink accent-1"></div>
<div class="pink accent-2"></div>
<div class="pink accent-3"></div>
<div class="pink accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="purple lighten-5"></div>
<div class="purple lighten-4"></div>
<div class="purple lighten-3"></div>
<div class="purple lighten-2"></div>
<div class="purple lighten-1"></div>
<div class="purple"></div>
<div class="purple darken-1"></div>
<div class="purple darken-2"></div>
<div class="purple darken-3"></div>
<div class="purple darken-4"></div>
<div class="purple accent-1"></div>
<div class="purple accent-2"></div>
<div class="purple accent-3"></div>
<div class="purple accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="deep-purple lighten-5"></div>
<div class="deep-purple lighten-4"></div>
<div class="deep-purple lighten-3"></div>
<div class="deep-purple lighten-2"></div>
<div class="deep-purple lighten-1"></div>
<div class="deep-purple"></div>
<div class="deep-purple darken-1"></div>
<div class="deep-purple darken-2"></div>
<div class="deep-purple darken-3"></div>
<div class="deep-purple darken-4"></div>
<div class="deep-purple accent-1"></div>
<div class="deep-purple accent-2"></div>
<div class="deep-purple accent-3"></div>
<div class="deep-purple accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="indigo lighten-5"></div>
<div class="indigo lighten-4"></div>
<div class="indigo lighten-3"></div>
<div class="indigo lighten-2"></div>
<div class="indigo lighten-1"></div>
<div class="indigo"></div>
<div class="indigo darken-1"></div>
<div class="indigo darken-2"></div>
<div class="indigo darken-3"></div>
<div class="indigo darken-4"></div>
<div class="indigo accent-1"></div>
<div class="indigo accent-2"></div>
<div class="indigo accent-3"></div>
<div class="indigo accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="blue lighten-5"></div>
<div class="blue lighten-4"></div>
<div class="blue lighten-3"></div>
<div class="blue lighten-2"></div>
<div class="blue lighten-1"></div>
<div class="blue"></div>
<div class="blue darken-1"></div>
<div class="blue darken-2"></div>
<div class="blue darken-3"></div>
<div class="blue darken-4"></div>
<div class="blue accent-1"></div>
<div class="blue accent-2"></div>
<div class="blue accent-3"></div>
<div class="blue accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="light-blue lighten-5"></div>
<div class="light-blue lighten-4"></div>
<div class="light-blue lighten-3"></div>
<div class="light-blue lighten-2"></div>
<div class="light-blue lighten-1"></div>
<div class="light-blue"></div>
<div class="light-blue darken-1"></div>
<div class="light-blue darken-2"></div>
<div class="light-blue darken-3"></div>
<div class="light-blue darken-4"></div>
<div class="light-blue accent-1"></div>
<div class="light-blue accent-2"></div>
<div class="light-blue accent-3"></div>
<div class="light-blue accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="cyan lighten-5"></div>
<div class="cyan lighten-4"></div>
<div class="cyan lighten-3"></div>
<div class="cyan lighten-2"></div>
<div class="cyan lighten-1"></div>
<div class="cyan"></div>
<div class="cyan darken-1"></div>
<div class="cyan darken-2"></div>
<div class="cyan darken-3"></div>
<div class="cyan darken-4"></div>
<div class="cyan accent-1"></div>
<div class="cyan accent-2"></div>
<div class="cyan accent-3"></div>
<div class="cyan accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="teal lighten-5"></div>
<div class="teal lighten-4"></div>
<div class="teal lighten-3"></div>
<div class="teal lighten-2"></div>
<div class="teal lighten-1"></div>
<div class="teal"></div>
<div class="teal darken-1"></div>
<div class="teal darken-2"></div>
<div class="teal darken-3"></div>
<div class="teal darken-4"></div>
<div class="teal accent-1"></div>
<div class="teal accent-2"></div>
<div class="teal accent-3"></div>
<div class="teal accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="green lighten-5"></div>
<div class="green lighten-4"></div>
<div class="green lighten-3"></div>
<div class="green lighten-2"></div>
<div class="green lighten-1"></div>
<div class="green"></div>
<div class="green darken-1"></div>
<div class="green darken-2"></div>
<div class="green darken-3"></div>
<div class="green darken-4"></div>
<div class="green accent-1"></div>
<div class="green accent-2"></div>
<div class="green accent-3"></div>
<div class="green accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="light-green lighten-5"></div>
<div class="light-green lighten-4"></div>
<div class="light-green lighten-3"></div>
<div class="light-green lighten-2"></div>
<div class="light-green lighten-1"></div>
<div class="light-green"></div>
<div class="light-green darken-1"></div>
<div class="light-green darken-2"></div>
<div class="light-green darken-3"></div>
<div class="light-green darken-4"></div>
<div class="light-green accent-1"></div>
<div class="light-green accent-2"></div>
<div class="light-green accent-3"></div>
<div class="light-green accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="lime lighten-5"></div>
<div class="lime lighten-4"></div>
<div class="lime lighten-3"></div>
<div class="lime lighten-2"></div>
<div class="lime lighten-1"></div>
<div class="lime"></div>
<div class="lime darken-1"></div>
<div class="lime darken-2"></div>
<div class="lime darken-3"></div>
<div class="lime darken-4"></div>
<div class="lime accent-1"></div>
<div class="lime accent-2"></div>
<div class="lime accent-3"></div>
<div class="lime accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="yellow lighten-5"></div>
<div class="yellow lighten-4"></div>
<div class="yellow lighten-3"></div>
<div class="yellow lighten-2"></div>
<div class="yellow lighten-1"></div>
<div class="yellow"></div>
<div class="yellow darken-1"></div>
<div class="yellow darken-2"></div>
<div class="yellow darken-3"></div>
<div class="yellow darken-4"></div>
<div class="yellow accent-1"></div>
<div class="yellow accent-2"></div>
<div class="yellow accent-3"></div>
<div class="yellow accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="amber lighten-5"></div>
<div class="amber lighten-4"></div>
<div class="amber lighten-3"></div>
<div class="amber lighten-2"></div>
<div class="amber lighten-1"></div>
<div class="amber"></div>
<div class="amber darken-1"></div>
<div class="amber darken-2"></div>
<div class="amber darken-3"></div>
<div class="amber darken-4"></div>
<div class="amber accent-1"></div>
<div class="amber accent-2"></div>
<div class="amber accent-3"></div>
<div class="amber accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="orange lighten-5"></div>
<div class="orange lighten-4"></div>
<div class="orange lighten-3"></div>
<div class="orange lighten-2"></div>
<div class="orange lighten-1"></div>
<div class="orange"></div>
<div class="orange darken-1"></div>
<div class="orange darken-2"></div>
<div class="orange darken-3"></div>
<div class="orange darken-4"></div>
<div class="orange accent-1"></div>
<div class="orange accent-2"></div>
<div class="orange accent-3"></div>
<div class="orange accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="deep-orange lighten-5"></div>
<div class="deep-orange lighten-4"></div>
<div class="deep-orange lighten-3"></div>
<div class="deep-orange lighten-2"></div>
<div class="deep-orange lighten-1"></div>
<div class="deep-orange"></div>
<div class="deep-orange darken-1"></div>
<div class="deep-orange darken-2"></div>
<div class="deep-orange darken-3"></div>
<div class="deep-orange darken-4"></div>
<div class="deep-orange accent-1"></div>
<div class="deep-orange accent-2"></div>
<div class="deep-orange accent-3"></div>
<div class="deep-orange accent-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="brown lighten-5"></div>
<div class="brown lighten-4"></div>
<div class="brown lighten-3"></div>
<div class="brown lighten-2"></div>
<div class="brown lighten-1"></div>
<div class="brown"></div>
<div class="brown darken-1"></div>
<div class="brown darken-2"></div>
<div class="brown darken-3"></div>
<div class="brown darken-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="grey lighten-5"></div>
<div class="grey lighten-4"></div>
<div class="grey lighten-3"></div>
<div class="grey lighten-2"></div>
<div class="grey lighten-1"></div>
<div class="grey"></div>
<div class="grey darken-1"></div>
<div class="grey darken-2"></div>
<div class="grey darken-3"></div>
<div class="grey darken-4"></div>
</div>
</div>
<div class="row dynamic-color">
<div class="col s12 m6 l4">
<div class="blue-grey lighten-5"></div>
<div class="blue-grey lighten-4"></div>
<div class="blue-grey lighten-3"></div>
<div class="blue-grey lighten-2"></div>
<div class="blue-grey lighten-1"></div>
<div class="blue-grey"></div>
<div class="blue-grey darken-1"></div>
<div class="blue-grey darken-2"></div>
<div class="blue-grey darken-3"></div>
<div class="blue-grey darken-4"></div>
</div>
<div class="col s12 m6 l4">
<div class="black"></div>
<div class="white"></div>
<div class="transparent"></div>
</div>
</div>
</div>
</div>
<div class="col hide-on-small-only m3 xl3">
<div class="toc-wrapper">
<div style="height: 1px">
<ul class="section table-of-contents">
<li><a href="#color-usage">Usage</a></li>
<li><a href="#sass">Sass</a></li>
<li><a href="#palette">Color Palette</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</main>
{{> footer }}
<script type="module" src="/src/main.ts"></script>
</body>
</html>