-
Notifications
You must be signed in to change notification settings - Fork 1
/
font-styles.html
65 lines (51 loc) · 1.02 KB
/
font-styles.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
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-styles/typography.html">
<dom-module id="font-styles">
<template>
<style>
/* Material design principles for fonts */
:root {
--secondary-font-family: 'Open Sans', sans-serif;
}
body {
@apply(--paper-font-common-base);
}
h1 {
@apply(--paper-font-display2);
}
h2 {
@apply(--paper-font-display1);
}
h3 {
@apply(--paper-font-headline);
}
h4 {
@apply(--paper-font-subhead);
}
h5, h6 {
@apply(--paper-font-body2);
}
a {
@apply(--paper-font-button);
}
/* Overrides */
body, a {
color: var(--accent-color);
}
h1, h2, h3, h4, h5, h6, p {
color: var(--primary-text-color);
margin: 0 0 20px 0;
}
h1, h2, h3, h4, h5, h6, a {
text-rendering: optimizeLegibility;
}
a {
text-decoration: none;
}
p {
color: var(--secondary-text-color);
font-family: var(--secondary-font-family);
}
</style>
</template>
</dom-module>