/
tailwind.config.js
72 lines (72 loc) · 2.2 KB
/
tailwind.config.js
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
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
purge: ['./src/index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans]
},
animation: {
// If you are using Toast component
left: 'left 0.3s',
right: 'right 0.3s',
// if you are using the animate variant of the modal
modal: 'modal 0.3s',
// if you are using drawer variant right
'drawer-right': 'drawer-right 0.3s',
// if you are using drawer variant left
'drawer-left': 'drawer-left 0.3s',
// if you are using drawer variant top
'drawer-top': 'drawer-top 0.3s',
// if you are using drawer variant bottom
'drawer-bottom': 'drawer-bottom 0.3s'
},
keyframes: {
// if you are using drawer variant right
'drawer-right': {
'0%, 100%': { right: '-500px' },
'100%': { right: '0' }
},
// if you are using drawer variant left
'drawer-left': {
'0%, 100%': { left: '-500px' },
'100%': { left: '0' }
},
// if you are using drawer variant top
'drawer-top': {
'0%, 100%': { top: '-500px' },
'100%': { top: '0' }
},
// if you are using drawer variant bottom
'drawer-bottom': {
'0%, 100%': { bottom: '-500px' },
'100%': { bottom: '0' }
},
// if you are using the animate variant of the modal
modal: {
'0%, 100%': { top: '-500px' },
'100%': { top: '0' }
},
/* If you are using Toast component*/
left: {
'0%, 100%': { transform: 'translateX(-100%)' },
'100%': { transform: 'translateX(0)' }
},
right: {
'0%, 100%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(0)' }
}
}
}
},
variants: {
extend: {
backgroundColor: ['active', 'checked'],
inset: ['checked'],
opacity: ['disabled'],
textColor: ['active']
}
},
plugins: [require('@tailwindcss/forms')]
};