forked from studio1902/statamic-peak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.typography.js
66 lines (64 loc) · 1.86 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
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
//--------------------------------------------------------------------------
// Tailwind Typography configuration
//--------------------------------------------------------------------------
//
// Here you may overwrite the default Tailwind Typography (or prosé) styles.
// Some defaults are provided.
// More info: https://github.com/tailwindlabs/tailwindcss-typography.
//
const plugin = require('tailwindcss/plugin')
module.exports = {
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.neutral.DEFAULT'),
'[class~="lead"]': {
color: theme('colors.neutral.DEFAULT'),
},
a: {
color: theme('colors.primary.DEFAULT'),
'&:hover': {
color: theme('colors.primary.DEFAULT'),
},
},
'a.no-underline': {
textDecoration: 'none',
},
'h1, h2, h3, h4': {
color: theme('colors.primary.DEFAULT'),
},
blockquote: {
borderColor: theme('colors.primary.DEFAULT'),
},
hr: {
borderColor: theme('colors.neutral.DEFAULT'),
},
'ul > li::before': {
backgroundColor: theme('colors.neutral.DEFAULT'),
},
'ol > li::before': {
color: theme('colors.neutral.DEFAULT'),
},
'ul > li p, ol > li p': {
marginTop: '0em !important',
marginBottom: '0em !important',
},
pre: {
whiteSpace: 'pre-wrap',
},
strong: {
color: theme('colors.neutral.DEFAULT'),
},
}
}
}),
}
},
plugins: [
require('@tailwindcss/typography')({
modifiers: [],
}),
]
}