-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
tailwind.config.typography.js
92 lines (90 loc) · 3.49 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
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
//--------------------------------------------------------------------------
// 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 colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
module.exports = {
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
'--tw-prose-body': theme('colors.neutral.DEFAULT'),
'--tw-prose-headings': theme('colors.neutral.DEFAULT'),
'--tw-prose-lead': theme('colors.neutral.DEFAULT'),
'--tw-prose-links': theme('colors.neutral.DEFAULT'),
'--tw-prose-bold': theme('colors.neutral.DEFAULT'),
'--tw-prose-counters': theme('colors.neutral.DEFAULT'),
'--tw-prose-bullets': theme('colors.neutral.DEFAULT'),
'--tw-prose-hr': theme('colors.neutral.DEFAULT'),
'--tw-prose-quotes': theme('colors.neutral.DEFAULT'),
'--tw-prose-quote-borders': theme('colors.primary.DEFAULT / 1'),
'--tw-prose-captions': theme('colors.neutral.DEFAULT'),
'--tw-prose-code': theme('colors.neutral.DEFAULT'),
'--tw-prose-pre-code': theme('colors.white'),
'--tw-prose-pre-bg': theme('colors.neutral.DEFAULT'),
'--tw-prose-th-borders': theme('colors.neutral.DEFAULT'),
'--tw-prose-td-borders': theme('colors.neutral.DEFAULT'),
'--tw-prose-invert-body': theme('colors.white'),
'--tw-prose-invert-headings': theme('colors.white'),
'--tw-prose-invert-lead': theme('colors.white'),
'--tw-prose-invert-links': theme('colors.white'),
'--tw-prose-invert-bold': theme('colors.white'),
'--tw-prose-invert-counters': theme('colors.white'),
'--tw-prose-invert-bullets': theme('colors.white'),
'--tw-prose-invert-hr': theme('colors.white'),
'--tw-prose-invert-quotes': theme('colors.white'),
'--tw-prose-invert-quote-borders': theme('colors.white'),
'--tw-prose-invert-captions': theme('colors.white'),
'--tw-prose-invert-code': theme('colors.white'),
'--tw-prose-invert-pre-code': theme('colors.neutral.DEFAULT'),
'--tw-prose-invert-pre-bg': theme('colors.white'),
'--tw-prose-invert-th-borders': theme('colors.white'),
'--tw-prose-invert-td-borders': theme('colors.white'),
lineHeight: '1.5em',
'ul > li > p, ol > li > p': {
marginTop: '0em !important',
marginBottom: '0em !important',
lineHeight: '1.5em'
},
':where(.prose > div > :first-child)': {
marginTop: '0 !important',
},
':where(.prose > div > :last-child)': {
marginBottom: '0 !important',
}
}
},
sm: {
css: {
lineHeight: '1.5em',
}
},
lg: {
css: {
lineHeight: '1.5em',
}
},
xl: {
css: {
lineHeight: '1.5em',
}
},
'2xl': {
css: {
lineHeight: '1.5em',
}
}
}),
}
},
plugins: [
require('@tailwindcss/typography')({
modifiers: [],
}),
]
}