-
Notifications
You must be signed in to change notification settings - Fork 28
/
tailwind.config.js
68 lines (67 loc) · 2.57 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
import headlessPlugin from '@headlessui/tailwindcss'
import formsPlugin from '@tailwindcss/forms'
import scrollbarPlugin from 'tailwind-scrollbar'
import radixPlugin from 'tailwindcss-radix'
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{ts,tsx}'],
darkMode: 'class',
plugins: [formsPlugin, headlessPlugin, radixPlugin, scrollbarPlugin],
theme: {
extend: {
animation: {
'slide-down-fade': 'slide-down-fade 200ms ease-in-out',
'slide-left-fade': 'slide-left-fade 200ms ease-in-out',
'slide-right-fade': 'slide-right-fade 200ms ease-in-out',
'slide-up-fade': 'slide-up-fade 200ms ease-in-out',
'toast-hide': 'toast-hide 100ms ease-in forwards',
'toast-slide-in-bottom': 'toast-slide-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1)',
'toast-slide-in-right': 'toast-slide-in-right 150ms cubic-bezier(0.16, 1, 0.3, 1)',
'toast-swipe-out-x': 'toast-swipe-out-x 100ms ease-out forwards',
'toast-swipe-out-y': 'toast-swipe-out-y 100ms ease-out forwards',
},
keyframes: {
'slide-down-fade': {
'0%': { opacity: 0, transform: 'translateY(-2px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
'slide-left-fade': {
'0%': { opacity: 0, transform: 'translateX(2px)' },
'100%': { opacity: 1, transform: 'translateX(0)' },
},
'slide-right-fade': {
'0%': { opacity: 0, transform: 'translateX(-2px)' },
'100%': { opacity: 1, transform: 'translateX(0)' },
},
'slide-up-fade': {
'0%': { opacity: 0, transform: 'translateY(2px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
'toast-hide': {
'0%': { opacity: 1 },
'100%': { opacity: 0 },
},
'toast-slide-in-bottom': {
'0%': { transform: `translateY(calc(100% + 1rem))` },
'100%': { transform: 'translateY(0)' },
},
'toast-slide-in-right': {
'0%': { transform: `translateX(calc(100% + 1rem))` },
'100%': { transform: 'translateX(0)' },
},
'toast-swipe-out-x': {
'0%': { transform: 'translateX(var(--radix-toast-swipe-end-x))' },
'100%': {
transform: `translateX(calc(100% + 1rem))`,
},
},
'toast-swipe-out-y': {
'0%': { transform: 'translateY(var(--radix-toast-swipe-end-y))' },
'100%': {
transform: `translateY(calc(100% + 1rem))`,
},
},
},
},
},
}