aboutsummaryrefslogtreecommitdiff
path: root/examples/starlog/src/styles/type.scss
blob: 0bb5a86d1b2fb21cdc6d2053a9491727268ee90e (plain) (blame)
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
@use './colors.scss' as colors;

$baseFont: 'Lato', sans-serif;
$codeFont: 'Source Code Pro', monospace;
$fontSizeSmall: 15px;

body {
	font-family: $baseFont;
	font-size: 18px;
	line-height: 1.65;
	font-weight: 400;
	color: colors.color(gray, 800);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;

	@media (prefers-color-scheme: dark) {
		color: colors.color(gray, 200);
	}
}

h1,
h2,
h3,
h4,
h5 {
	line-height: 1.2;
	margin: 1em 0 0.5em 0;
	color: colors.color(gray, 950);
	font-weight: 700;

	@media (prefers-color-scheme: dark) {
		color: colors.$white;
	}
}

h1 {
	font-size: 3.052em;
}
h2 {
	font-size: 2.441em;
}
h3 {
	font-size: 1.953em;
}
h4 {
	font-size: 1.563em;
}
h5 {
	font-size: 1.25em;
}

p {
	margin: 0 0 1em 0;
}

code {
	font-family: $codeFont;
}

b,
strong {
	font-weight: 700;
	color: #fff;
	color: colors.color(gray, 950);

	@media (prefers-color-scheme: dark) {
		color: colors.$white;
	}
}