-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
88 lines (86 loc) · 2.46 KB
/
tailwind.config.cjs
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
const defaultTheme = require('tailwindcss/defaultTheme')
const serif = 'Zilla Slab'
const sans = 'Noto Sans Variable'
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,ts,tsx}'],
darkMode: 'class',
theme: {
fontFamily: {
sans: [sans, ...defaultTheme.fontFamily.sans],
serif: [serif, ...defaultTheme.fontFamily.serif],
},
extend: {
textColor: {
main: 'var(--color-text-main)',
},
backgroundColor: {
main: 'var(--color-bg-main)',
muted: 'var(--color-bg-muted)',
},
borderColor: {
main: 'var(--color-border-main)',
},
typography: theme => ({
dante: {
css: {
'--tw-prose-body': theme('textColor.main / 100%'),
'--tw-prose-headings': theme('textColor.main / 100%'),
'--tw-prose-lead': theme('textColor.main / 100%'),
'--tw-prose-links': theme('textColor.main / 100%'),
'--tw-prose-bold': theme('textColor.main / 100%'),
'--tw-prose-counters': theme('textColor.main / 100%'),
'--tw-prose-bullets': theme('textColor.main / 100%'),
'--tw-prose-hr': theme('borderColor.main / 100%'),
'--tw-prose-quotes': theme('textColor.main / 100%'),
'--tw-prose-quote-borders': theme('borderColor.main / 100%'),
'--tw-prose-captions': theme('textColor.main / 100%'),
'--tw-prose-code': theme('textColor.main / 100%'),
'--tw-prose-pre-code': theme('colors.zinc.100'),
'--tw-prose-pre-bg': theme('colors.zinc.800'),
'--tw-prose-th-borders': theme('borderColor.main / 100%'),
'--tw-prose-td-borders': theme('borderColor.main / 100%'),
},
},
DEFAULT: {
css: {
a: {
fontWeight: 'normal',
textDecoration: 'underline',
textDecorationStyle: 'dashed',
textDecorationThickness: '1px',
textUnderlineOffset: '2px',
'&:hover': {
textDecorationStyle: 'solid',
},
},
'h1,h2,h3,h4,h5,h6': {
fontFamily: serif,
fontWeight: 500,
},
// blockquote: {
// border: 0,
// fontFamily: serif,
// fontSize: '1.3125em',
// fontStyle: 'italic',
// fontWeight: 'normal',
// lineHeight: 1.4,
// paddingLeft: 0,
// '@media (min-width: theme("screens.sm"))': {
// fontSize: '1.66667em',
// lineHeight: 1.3,
// },
// },
},
},
lg: {
css: {
// blockquote: {
// paddingLeft: 0,
// },
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
}