-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
96 lines (95 loc) · 2.41 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
keyframes: {
starAnimation: {
'0%': {
backgroundPosition: '0 0'
},
'100%': {
backgroundPosition: '10000px 5000px'
}
},
'infinite-scroll': {
from: {
transform: 'translateX(0)'
},
to: {
transform: 'translateX(-100%)'
}
},
gradient: {
to: {
backgroundPosition: 'var(--bg-size) 0'
}
},
rainbow: {
'0%': {
'background-position': '0%'
},
'100%': {
'background-position': '200%'
}
},
'shimmer-slide': {
to: {
transform: 'translate(calc(100cqw - 100%), 0)'
}
},
'spin-around': {
'0%': {
transform: 'translateZ(0) rotate(0)'
},
'15%, 35%': {
transform: 'translateZ(0) rotate(90deg)'
},
'65%, 85%': {
transform: 'translateZ(0) rotate(270deg)'
},
'100%': {
transform: 'translateZ(0) rotate(360deg)'
}
},
orbit: {
'0%': {
transform: 'rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)'
},
'100%': {
transform: 'rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)'
}
}
},
animation: {
starAnimation: 'starAnimation 400s linear infinite',
'spin-slow': 'spin 10s linear infinite',
gradient: 'gradient 8s linear infinite',
rainbow: 'rainbow var(--speed, 2s) infinite linear',
'shimmer-slide': 'shimmer-slide var(--speed) ease-in-out infinite alternate',
'spin-around': 'spin-around calc(var(--speed) * 2) infinite linear',
'infinite-scroll': 'infinite-scroll 25s linear infinite',
orbit: 'orbit calc(var(--duration)*1s) linear infinite'
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
},
colors: {
'color-1': 'hsl(var(--color-1))',
'color-2': 'hsl(var(--color-2))',
'color-3': 'hsl(var(--color-3))',
'color-4': 'hsl(var(--color-4))',
'color-5': 'hsl(var(--color-5))'
}
}
},
plugins: [require("tailwindcss-animated"), require("tailwind-scrollbar-hide")],
};
export default config;