Skip to content

Commit d8f6347

Browse files
Base typography
1 parent 124baf0 commit d8f6347

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

public/typography.css

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
body,
2+
input,
3+
button {
4+
-webkit-font-smoothing: antialiased;
5+
}
6+
7+
body {
8+
-webkit-font-smoothing: antialiased;
9+
}
10+
11+
/* This tells the browser that, whenever possible, it should strive to render the additional font features to improve readability */
12+
body {
13+
text-rendering: optimizeLegibility;
14+
}
15+
16+
p {
17+
-moz-osx-font-smoothing: grayscale;
18+
}
19+
20+
html {
21+
font: 100%/1.5 Arial, sans-serif;
22+
}
23+
24+
/* HEADINGS */
25+
h1 {
26+
font-size: 2em;
27+
/* 2*16 = 32 */
28+
}
29+
30+
h2 {
31+
font-size: 1.5em;
32+
/* 1.5*16 = 24 */
33+
}
34+
35+
h3 {
36+
font-size: 1.17em;
37+
/* 1.17*16 = 18.72 */
38+
}
39+
40+
h4 {
41+
font-size: 1em;
42+
/* 1*16 = 16 */
43+
}
44+
45+
h5 {
46+
font-size: 0.83em;
47+
/* 0.83*16 = 13.28 */
48+
}
49+
50+
h6 {
51+
font-size: 0.75em;
52+
/* 0.75*16 = 12 */
53+
}
54+
55+
p {
56+
line-height: 1.5;
57+
margin: 0 0 1em;
58+
}
59+
60+
/* For indenting paragraphs */
61+
.indent p {
62+
margin: 0;
63+
}
64+
65+
.indent p+p {
66+
text-indent: 2em;
67+
}
68+
69+
/* Anchors */
70+
a:active {
71+
color: tomato;
72+
}
73+
74+
a:focus {
75+
border: 1px dotted tomato;
76+
}

0 commit comments

Comments
 (0)