-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
52 lines (52 loc) · 1.66 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
extend: {
fontFamily: {
sfpro: ["var(--font-sf)", "system-ui", "sans-serif"],
},
keyframes: {
"toast-hide": {
"0%": { opacity: 1 },
"100%": { opacity: 0 },
},
"toast-slide-in-right": {
"0%": { transform: `translateX(calc(100% + 1rem))` },
"100%": { transform: "translateX(0)" },
},
"toast-slide-in-bottom": {
"0%": { transform: `translateY(calc(100% + 1rem))` },
"100%": { transform: "translateY(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))`,
},
},
},
animation: {
"toast-hide": "toast-hide 100ms ease-in forwards",
"toast-slide-in-right": "toast-slide-in-right 150ms cubic-bezier(0.16, 1, 0.3, 1)",
"toast-slide-in-bottom": "toast-slide-in-bottom 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",
},
},
},
plugins: [
require("tailwindcss-radix")({
variantPrefix: false,
}),
],
};