Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
55 lines (55 loc) · 1.58 KB
/
Copy pathtailwind.config.js
File metadata and controls
55 lines (55 loc) · 1.58 KB
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/renderer/**/*.{html,js,ts}'],
theme: {
extend: {
fontFamily: {
serif: ['Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
mono: ['Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'monospace'],
},
typography: {
DEFAULT: {
css: {
maxWidth: 'none',
fontFamily: 'Georgia, Cambria, "Times New Roman", Times, serif',
lineHeight: '1.8',
fontSize: '1.125rem',
h1: {
fontWeight: '700',
marginTop: '2em',
marginBottom: '0.8em',
},
h2: {
fontWeight: '600',
marginTop: '1.8em',
marginBottom: '0.6em',
},
h3: {
fontWeight: '600',
marginTop: '1.5em',
marginBottom: '0.5em',
},
p: {
marginTop: '1.25em',
marginBottom: '1.25em',
},
'code::before': { content: '""' },
'code::after': { content: '""' },
code: {
fontFamily: 'Menlo, Monaco, Consolas, "Liberation Mono", monospace',
fontSize: '0.875em',
fontWeight: '400',
},
pre: {
backgroundColor: '#f8fafc',
borderRadius: '0.5rem',
padding: '1rem',
overflowX: 'auto',
},
},
},
},
},
},
plugins: [require('@tailwindcss/typography')],
};