-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
95 lines (95 loc) · 2.38 KB
/
Copy pathtailwind.config.js
File metadata and controls
95 lines (95 loc) · 2.38 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
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
87
88
89
90
91
92
93
94
95
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
typography: {
DEFAULT: {
css: {
maxWidth: 'none',
color: '#374151',
a: {
color: '#2563eb',
'&:hover': {
color: '#1d4ed8',
},
textDecoration: 'none',
},
'h1, h2, h3, h4, h5, h6': {
color: '#111827',
marginTop: '1.5em',
marginBottom: '0.75em',
fontWeight: '600',
},
pre: {
backgroundColor: '#f3f4f6',
color: '#374151',
borderRadius: '0.375rem',
padding: '1rem',
},
code: {
color: '#374151',
backgroundColor: '#f3f4f6',
borderRadius: '0.25rem',
padding: '0.15em 0.3em',
fontWeight: '400',
},
'pre code': {
backgroundColor: 'transparent',
padding: 0,
color: 'inherit',
fontSize: '0.875em',
},
blockquote: {
borderLeftColor: '#e5e7eb',
color: '#4b5563',
},
hr: {
borderColor: '#e5e7eb',
marginTop: '2em',
marginBottom: '2em',
},
table: {
fontSize: '0.875em',
},
thead: {
borderBottomColor: '#d1d5db',
},
'thead th': {
color: '#111827',
fontWeight: '600',
backgroundColor: '#f9fafb',
},
'tbody tr': {
borderBottomColor: '#e5e7eb',
},
'tbody td': {
padding: '0.75em 1em',
},
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
function({ addComponents }) {
addComponents({
'.prose': {
'& img': {
maxWidth: '100%',
height: 'auto',
},
'& table': {
width: '100%',
borderCollapse: 'collapse',
},
'& th, & td': {
border: '1px solid #e5e7eb',
padding: '0.5rem',
},
},
});
},
],
};