-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypography.js
86 lines (86 loc) · 1.83 KB
/
typography.js
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
module.exports = {
DEFAULT: {
css: {
maxWidth: '65ch',
color: '#334155', // slate-700
p: {
marginTop: '1.25em',
marginBottom: '1.25em',
},
'h1, h2, h3': {
color: '#0f172a', // slate-900
fontWeight: '700',
},
h1: {
fontSize: '2.25em',
marginBottom: '1em',
},
h2: {
fontSize: '1.5em',
marginTop: '2em',
marginBottom: '1em',
},
h3: {
fontSize: '1.25em',
marginTop: '1.6em',
marginBottom: '0.6em',
},
a: {
color: '#2563eb', // blue-600
textDecoration: 'underline',
'&:hover': {
color: '#1d4ed8', // blue-700
},
},
'ul, ol': {
paddingLeft: '1.25em',
},
li: {
marginTop: '0.5em',
marginBottom: '0.5em',
},
blockquote: {
fontStyle: 'italic',
borderLeftWidth: '4px',
borderLeftColor: '#e2e8f0', // slate-200
paddingLeft: '1em',
color: '#64748b', // slate-500
},
code: {
color: '#dc2626', // red-600
'&::before': {
content: '"`"',
},
'&::after': {
content: '"`"',
},
},
pre: {
backgroundColor: '#1e293b', // slate-800
color: '#e2e8f0', // slate-200
padding: '1em',
borderRadius: '0.375rem',
overflowX: 'auto',
},
'pre code': {
color: 'inherit',
'&::before': {
content: '""',
},
'&::after': {
content: '""',
},
},
img: {
marginTop: '2em',
marginBottom: '2em',
borderRadius: '0.375rem',
},
hr: {
borderColor: '#e2e8f0', // slate-200
marginTop: '2em',
marginBottom: '2em',
}
}
}
}