-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
47 lines (45 loc) · 1.04 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
/**
* Tailwind configuration for local pattern library styles
*/
import tailwindPreset from './src/tailwind.preset.js';
export default {
presets: [tailwindPreset],
content: ['./src/**/*.{js,ts,tsx}', './templates/**/*.html'],
// Pattern library specific config
theme: {
extend: {
animation: {
'slide-in-from-right': 'slide-in-from-right 0.3s forwards ease-in-out',
'slide-out-to-right': 'slide-out-to-right 0.3s forwards ease-in-out',
},
keyframes: {
'slide-in-from-right': {
'0%': {
opacity: '0',
left: '100%',
},
'80%': {
left: '-10px',
},
'100%': {
left: '0',
opacity: '1',
},
},
'slide-out-to-right': {
'0%': {
left: '0',
opacity: '1',
},
'20%': {
left: '-10px',
},
'100%': {
opacity: '0',
left: '100%',
},
},
},
},
},
};