-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
104 lines (102 loc) · 2.72 KB
/
tailwind.config.ts
File metadata and controls
104 lines (102 loc) · 2.72 KB
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
import type { Config } from "tailwindcss";
import { heroui } from "@heroui/react";
export default {
darkMode: ["class"],
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
animation: {
rainbow: "rainbow var(--speed, 4s) infinite linear",
spotlight: "spotlight 2s ease .75s 1 forwards",
"shiny-text": "shiny-text 8s infinite",
scroll:
"scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite",
"accordion-up": "accordion-up 0.2s ease-out",
"fade-in": "fade-in 0.3s ease-out",
"fade-out": "fade-out 0.3s ease-out",
"slide-in-from-bottom": "slide-in-from-bottom 0.3s ease-out",
"slide-in-from-right": "slide-in-from-right 0.3s ease-out",
},
keyframes: {
rainbow: {
"0%": {
"background-position": "0%",
},
"100%": {
"background-position": "200%",
},
},
spotlight: {
"0%": {
opacity: "0",
transform: "translate(-72%, -62%) scale(0.5)",
},
"100%": {
opacity: "1",
transform: "translate(-50%,-40%) scale(1)",
},
},
scroll: {
to: {
transform: "translate(calc(-50% - 0.5rem))",
},
},
"shiny-text": {
"0%, 90%, 100%": {
"background-position": "calc(-100% - var(--shiny-width)) 0",
},
"30%, 60%": {
"background-position": "calc(100% + var(--shiny-width)) 0",
},
},
"fade-in": {
from: {
opacity: "0",
},
to: {
opacity: "1",
},
},
"fade-out": {
from: {
opacity: "1",
},
to: {
opacity: "0",
},
},
"slide-in-from-bottom": {
from: {
transform: "translateY(10px)",
opacity: "0",
},
to: {
transform: "translateY(0)",
opacity: "1",
},
},
"slide-in-from-right": {
from: {
transform: "translateX(10px)",
opacity: "0",
},
to: {
transform: "translateX(0)",
opacity: "1",
},
},
},
},
},
plugins: [require("tailwindcss-animate"), heroui()],
} satisfies Config;