-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
85 lines (84 loc) · 3.68 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
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,ts,tsx}'],
darkMode: 'class',
theme: {
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
serif: ['Newsreader', ...defaultTheme.fontFamily.serif]
},
extend: {
textColor: {
main: 'rgb(var(--color-text-main) / <alpha-value>)'
},
backgroundColor: {
main: 'rgb(var(--color-bg-main) / <alpha-value>)',
muted: 'rgb(var(--color-bg-muted) / <alpha-value>)'
},
borderColor: {
main: 'rgb(var(--color-border-main) / <alpha-value>)'
},
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: theme('fontFamily.serif'),
fontWeight: 500
},
blockquote: {
border: 0,
fontFamily: theme('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')]
};