-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
53 lines (51 loc) · 1.18 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
import Typography from '@tailwindcss/typography';
import Forms from '@tailwindcss/forms';
import colors from 'tailwindcss/colors';
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts,svx}'],
theme: {
extend: {
colors: {
gray: colors.stone
},
typography: (theme) => ({
DEFAULT: {
css: {
fontFamily: 'Baskerville, serif',
fontSize: '1.25rem',
lineHeight: '1.75rem',
color: theme('colors.gray.950 dark:gray.50'),
blockquote: {
fontStyle: 'normal',
'& p::before': {
content: 'none'
},
'& p::after': {
content: 'none'
}
},
'code::before': {
content: 'none'
},
'code::after': {
content: 'none'
},
code: {
color: 'inherit',
backgroundColor: 'transparent',
borderRadius: theme('borderRadius.DEFAULT'),
paddingLeft: theme('spacing[1.5]'),
paddingRight: theme('spacing[1.5]'),
paddingTop: theme('spacing.1'),
paddingBottom: theme('spacing.1'),
fontSize: '0.875rem'
}
}
}
})
}
},
plugins: [Typography, Forms],
darkMode: 'class'
};