-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.mjs
61 lines (59 loc) · 1.57 KB
/
tailwind.config.mjs
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
import { nextui } from "@nextui-org/react";
import tailwindcssAnimate from "tailwindcss-animate";
/** @type {import('tailwindcss').Config} */
const config = {
content: [
"./app/pages/**/*.{ts,tsx}",
"./app/components/**/*.{ts,tsx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
animation: {
"border-beam": "border-beam calc(var(--duration)*1s) infinite linear",
shine: "shine var(--duration) infinite linear",
ripple: "ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite",
gradient: "gradient 8s linear infinite",
},
keyframes: {
"border-beam": {
"100%": {
"offset-distance": "100%",
},
},
shine: {
"0%": {
"background-position": "0% 0%",
},
"50%": {
"background-position": "100% 100%",
},
to: {
"background-position": "0% 0%",
},
},
ripple: {
"0%, 100%": {
transform: "translate(-50%, -50%) scale(1)",
},
"50%": {
transform: "translate(-50%, -50%) scale(0.9)",
},
},
gradient: {
to: {
backgroundPosition: "var(--bg-size) 0",
},
},
},
},
},
darkMode: ["class", "class"],
plugins: [nextui(), tailwindcssAnimate],
};
export default config;