-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.typography.js
40 lines (38 loc) · 1.08 KB
/
tailwind.config.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
//--------------------------------------------------------------------------
// Tailwind Typography configuration
//--------------------------------------------------------------------------
//
// Here you may overwrite the default Tailwind Typography (or prosé) styles or configure certain variants.
// More info: https://tailwindcss.com/docs/typography-plugin.
//
const plugin = require('tailwindcss/plugin')
module.exports = {
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
'ul > li p, ol > li p': {
marginTop: '0em !important',
marginBottom: '0em !important',
},
':where(.prose > div > :first-child)': {
marginTop: '0 !important',
},
':where(.prose > div > :last-child)': {
marginBottom: '0 !important',
},
'.not-prose': {
margin: '2rem 0 !important',
}
}
}
}),
}
},
plugins: [
require('@tailwindcss/typography')({
modifiers: [],
}),
]
}