-
Notifications
You must be signed in to change notification settings - Fork 40
/
sample.html
47 lines (43 loc) · 1.29 KB
/
sample.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Material Colors Sample</title>
<link rel="stylesheet" href="dist/colors.css">
<style>
body {
font-family: sans-serif;
}
.sample {
color: #fff;
padding: 10px;
margin: 0
}
</style>
</head>
<body>
<h1>Material Colors</h1>
<p class="sample bg-red-50">Red 50</p>
<p class="sample bg-red-100">Red 100</p>
<p class="sample bg-red-200">Red 200</p>
<p class="sample bg-red-300">Red 300</p>
<p class="sample bg-red-400">Red 400</p>
<p class="sample bg-red-500">Red 500</p>
<p class="sample bg-red-600">Red 700</p>
<p class="sample bg-red-a100">Red A100</p>
<p class="sample bg-red-a200">Red A200</p>
<p class="sample bg-red-a400">Red A400</p>
<p class="sample bg-red-a700">Red A700</p>
<p>Open developer console to see JavaScript example.</p>
<script src="dist/colors.js"></script>
<script>
(function(colors) {
Object.keys(colors.red).forEach(function(key) {
var message = '%c Red ' + key.toUpperCase() + ' ';
var style = 'background: ' + colors.red[key] + '; color: #fff';
console.log(message, style);
});
})(window.materialColors);
</script>
</body>
</html>