-
Notifications
You must be signed in to change notification settings - Fork 20
/
tailwind.config.js
112 lines (111 loc) · 3.22 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
const uiPreset = require('./preset/preset')
module.exports = {
darkMode: 'class',
presets: [require('@medusajs/ui-preset'), uiPreset],
content: [
'./src/app/**/*.{js,ts,jsx,tsx}',
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/modules/**/*.{js,ts,jsx,tsx}',
'./node_modules/@medusajs/ui/dist/**/*.{js,jsx,ts,tsx}',
],
theme: {
extend: {
transitionProperty: {
width: 'width margin',
height: 'height',
bg: 'background-color',
display: 'display opacity',
visibility: 'visibility',
padding: 'padding-top padding-right padding-bottom padding-left',
},
keyframes: {
ring: {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' },
},
'fade-in-right': {
'0%': {
opacity: '0',
transform: 'translateX(10px)',
},
'100%': {
opacity: '1',
transform: 'translateX(0)',
},
},
'fade-in-top': {
'0%': {
opacity: '0',
transform: 'translateY(-10px)',
},
'100%': {
opacity: '1',
transform: 'translateY(0)',
},
},
'fade-out-top': {
'0%': {
height: '100%',
},
'99%': {
height: '0',
},
'100%': {
visibility: 'hidden',
},
},
'accordion-slide-up': {
'0%': {
height: 'var(--radix-accordion-content-height)',
opacity: '1',
},
'100%': {
height: '0',
opacity: '0',
},
},
'accordion-slide-down': {
'0%': {
'min-height': '0',
'max-height': '0',
opacity: '0',
},
'100%': {
'min-height': 'var(--radix-accordion-content-height)',
'max-height': 'none',
opacity: '1',
},
},
enter: {
'0%': { transform: 'scale(0.9)', opacity: 0 },
'100%': { transform: 'scale(1)', opacity: 1 },
},
leave: {
'0%': { transform: 'scale(1)', opacity: 1 },
'100%': { transform: 'scale(0.9)', opacity: 0 },
},
'slide-in': {
'0%': { transform: 'translateY(-100%)' },
'100%': { transform: 'translateY(0)' },
},
},
animation: {
ring: 'ring 2.2s cubic-bezier(0.5, 0, 0.5, 1) infinite',
'fade-in-right':
'fade-in-right 0.3s cubic-bezier(0.5, 0, 0.5, 1) forwards',
'fade-in-top': 'fade-in-top 0.2s cubic-bezier(0.5, 0, 0.5, 1) forwards',
'fade-out-top':
'fade-out-top 0.2s cubic-bezier(0.5, 0, 0.5, 1) forwards',
'accordion-open':
'accordion-slide-down 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards',
'accordion-close':
'accordion-slide-up 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards',
enter: 'enter 200ms ease-out',
'slide-in': 'slide-in 1.2s cubic-bezier(.41,.73,.51,1.02)',
leave: 'leave 150ms ease-in forwards',
},
},
},
plugins: [require('tailwindcss-radix')()],
}