-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
68 lines (60 loc) · 1.56 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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: [],
theme: {
extend: {
fontFamily: {
sans: [defaultTheme.fontFamily.sans]
},
typography: (theme) => ({
DEFAULT: {
css: {
fontSize: '1.15rem',
fontWeight: 500,
lineHeight: 1.65,
h2: {
marginBottom: '0.75rem'
},
h4: {
fontWeight: 700,
fontSize: '1.25rem'
},
code: {
backgroundColor: theme('colors.yellow.50'),
fontWeight: 400
},
a: {
borderBottomColor: theme('colors.black'),
borderBottomWidth: '1px',
fontWeight: 600,
textDecoration: 'none',
'&:hover': {
color: '#d227c4',
textDecoration: 'none'
}
},
pre: {
fontSize: '14px'
}
}
}
}),
maxWidth: {
'screen-sm': '614px'
},
animation: {
'spin-slow': 'spin 7s linear infinite',
'grow-fade': 'grow-fade 1s linear infinite'
},
keyframes: {
'grow-fade': {
'0%': { opacity: 0.5, transform: 'scale(1)' },
'100%': { opacity: 0, transform: 'scale(2.5)' }
}
}
}
},
plugins: [require('@tailwindcss/typography')]
};