-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
65 lines (61 loc) · 1.37 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss'
import typography from '@tailwindcss/typography'
import defaultTheme from 'tailwindcss/defaultTheme'
const colors = [
'cyan',
'green',
'blue',
'purple',
'red',
'pink',
'orange',
'indigo',
'yellow',
]
const safelist = [
...colors.map(v => `text-${v}-500`),
...colors.map(v => `ring-${v}-500`),
...colors.map(v => `shadow-${v}-500/20`),
...colors.map(v => `hover:bg-${v}-500/10`),
...colors.map(v => `hover:text-${v}-500`),
]
export default <Partial<Config>>{
safelist,
theme: {
fontFamily: {
sans: ['DM Sans', defaultTheme.fontFamily.sans],
serif: ['DM Serif Display', defaultTheme.fontFamily.serif],
mono: ['DM Mono', defaultTheme.fontFamily.mono],
},
extend: {
gridColumn: {
'2/3': '2 / 3',
},
keyframes: {
swing: {
'20%': {
transform: 'rotate3d(0, 0, 1, 15deg)',
},
'40%': {
transform: 'rotate3d(0, 0, 1, -10deg)',
},
'60%': {
transform: 'rotate3d(0, 0, 1, 5deg)',
},
'80%': {
transform: 'rotate3d(0, 0, 1, -5deg)',
},
'to': {
transform: 'rotate3d(0, 0, 1, 0deg)',
},
},
},
animation: {
swing: 'swing 1s linear 1',
},
},
},
plugins: [
typography(),
],
}