-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtailwind.config.mjs
71 lines (69 loc) · 2.34 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'selector',
theme: {
fontFamily: {
'sans': ['Hack'],
},
extend: {
typography: ({ theme }) => ({
DEFAULT: {
css: {
code: {
backgroundColor: theme('colors.stone.200'),
borderRadius: theme('borderRadius.md'),
paddingTop: theme('padding[1]'),
paddingRight: theme('padding[1.5]'),
paddingBottom: theme('padding[1]'),
paddingLeft: theme('padding[1.5]'),
marginLeft: theme('margin[0.5]'),
marginRight: theme('margin[0.5]'),
},
'code::before': {
content: 'normal',
},
'code::after': {
content: 'normal',
},
},
},
invert: {
css: {
'--tw-prose-body': 'var(--tw-prose-invert-body)',
'--tw-prose-headings': 'var(--tw-prose-invert-headings)',
'--tw-prose-lead': 'var(--tw-prose-invert-lead)',
'--tw-prose-links': 'var(--tw-prose-invert-links)',
'--tw-prose-bold': 'var(--tw-prose-invert-bold)',
'--tw-prose-counters': 'var(--tw-prose-invert-counters)',
'--tw-prose-bullets': 'var(--tw-prose-invert-bullets)',
'--tw-prose-hr': 'var(--tw-prose-invert-hr)',
'--tw-prose-quotes': 'var(--tw-prose-invert-quotes)',
'--tw-prose-quote-borders': 'var(--tw-prose-invert-quote-borders)',
'--tw-prose-captions': 'var(--tw-prose-invert-captions)',
'--tw-prose-kbd': 'var(--tw-prose-invert-kbd)',
'--tw-prose-kbd-shadows': 'var(--tw-prose-invert-kbd-shadows)',
'--tw-prose-code': 'var(--tw-prose-invert-code)',
'--tw-prose-pre-code': 'var(--tw-prose-invert-pre-code)',
'--tw-prose-pre-bg': 'var(--tw-prose-invert-pre-bg)',
'--tw-prose-th-borders': 'var(--tw-prose-invert-th-borders)',
'--tw-prose-td-borders': 'var(--tw-prose-invert-td-borders)',
':not(pre) > code': {
backgroundColor: theme('colors.stone.700'),
borderRadius: theme('borderRadius.md'),
paddingTop: theme('padding[1]'),
paddingRight: theme('padding[1.5]'),
paddingBottom: theme('padding[1]'),
paddingLeft: theme('padding[1.5]'),
marginLeft: theme('margin[0.5]'),
marginRight: theme('margin[0.5]'),
},
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
],
}