-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
96 lines (96 loc) · 3.13 KB
/
tailwind.config.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
87
88
89
90
91
92
93
94
95
96
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
fontFamily: {
sans: 'system-ui',
serif: 'system-ui',
mono: 'monospace',
logo: 'cursive',
},
extend: {
typography: ({ theme }) => ({
DEFAULT: {
css: {
maxWidth: '70rem',
h1: {
fontWeight: '500',
marginTop: '1rem',
},
h2: {
color: theme('colors.black'),
},
h3: {
color: theme('colors.black'),
},
pre: {
padding: '16px',
borderRadius: '16px',
fontSize: '0.8rem',
fontFamily: 'monospace',
},
'code::before': {
content: ' ',
},
'code::after': {
content: ' ',
},
code: {
color: '#d14',
background: '#f6f6f6',
border: '1px solid #e1e1e8',
wordWrap: 'break-word',
boxDecorationBreak: 'clone',
padding: '2px 4px',
borderRadius: '.2rem',
fontWeight: 400,
fontSize: '0.8rem',
},
blockquote: {
background: '#f8ffaa',
fontWeight: 600,
fontStyle: 'normal',
padding: '0.4rem',
},
'blockquote p:first-of-type': { margin: 0 },
'blockquote p:first-of-type::before': { content: 'none' },
'blockquote p:first-of-type::after': { content: 'none' },
'--tw-prose-body': theme('colors.black'),
'--tw-prose-headings': theme('colors.gray[100]'),
'--tw-prose-lead': theme('colors.black'),
'--tw-prose-links': theme('colors.blue[900]'),
'--tw-prose-bold': theme('colors.black'),
'--tw-prose-counters': theme('colors.black'),
'--tw-prose-bullets': theme('colors.black'),
'--tw-prose-hr': theme('colors.black'),
'--tw-prose-quotes': theme('colors.black'),
'--tw-prose-quote-borders': theme('colors.black'),
'--tw-prose-captions': theme('colors.black'),
'--tw-prose-code': theme('colors.black'),
'--tw-prose-pre-code': theme('colors.black'),
'--tw-prose-pre-bg': theme('colors.black'),
'--tw-prose-th-borders': theme('colors.black'),
'--tw-prose-td-borders': theme('colors.black'),
'--tw-prose-invert-body': theme('colors.black'),
'--tw-prose-invert-headings': theme('colors.white'),
'--tw-prose-invert-lead': theme('colors.black'),
'--tw-prose-invert-links': theme('colors.blue[900]'),
'--tw-prose-invert-bold': theme('colors.white'),
'--tw-prose-invert-counters': theme('colors.black'),
'--tw-prose-invert-bullets': theme('colors.black'),
'--tw-prose-invert-hr': theme('colors.black'),
'--tw-prose-invert-quotes': theme('colors.black'),
'--tw-prose-invert-quote-borders': theme('colors.black'),
'--tw-prose-invert-captions': theme('colors.black'),
'--tw-prose-invert-code': theme('colors.white'),
'--tw-prose-invert-pre-code': theme('colors.black'),
'--tw-prose-invert-pre-bg': 'rgb(0 0 0 / 50%)',
'--tw-prose-invert-th-borders': theme('colors.black'),
'--tw-prose-invert-td-borders': theme('colors.black'),
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
};