-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
68 lines (63 loc) · 2.08 KB
/
tailwind.config.cjs
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
const { fontFamily } = require("tailwindcss/defaultTheme");
const config = {
content: [ "./src/**/*.{js,ts,jsx,tsx}" ],
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['var(--font-jakartaSans)', ...fontFamily.sans],
},
width: {
'750': '750px',
},
keyframes: {
// Toast
hide: {
from: { opacity: 1 },
to: { opacity: 0 },
},
slideIn: {
from: { transform: 'translateX(calc(100% + var(--viewport-padding)))' },
to: { transform: 'translateX(0)' },
},
swipeOut: {
from: { transform: 'translateX(var(--radix-toast-swipe-end-x))' },
to: { transform: 'translateX(calc(100% + var(--viewport-padding)))' },
},
// Hover Card
slideUpAndFade: {
'0%': { opacity: 0, transform: 'translateY(-2px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
slideRightAndFade: {
'0%': { opacity: 0, transform: 'translateX(-2px)' },
'100%': { opacity: 1, transform: 'translateX(0)' },
},
slideDownAndFade: {
'0%': { opacity: 0, transform: 'translateY(-2px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
slideLeftAndFade: {
'0%': { opacity: 0, transform: 'translateX(2px)' },
'100%': { opacity: 1, transform: 'translateX(0)' },
},
},
animation: {
//Toast
hide: 'hide 100ms ease-in',
slideIn: 'slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1)',
swipeOut: 'swipeOut 100ms ease-out',
// Hover Card
slideUpAndFade: 'slideUpAndFade 200ms cubic-bezier(0.16, 0, 0.13, 1)',
slideDownAndFade: 'slideDownAndFade 200ms cubic-bezier(0.16, 0, 0.13, 1)',
slideRightAndFade: 'slideRightAndFade 200ms cubic-bezier(0.16, 0, 0.13, 1)',
slideLeftAndFade: 'slideLeftAndFade 200ms cubic-bezier(0.16, 0, 0.13, 1)',
},
},
},
variants: {
width: ["responsive", "hover", "focus"]
},
plugins: [],
};
module.exports = config;