-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
130 lines (130 loc) · 4.95 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./app/**/*.{js,ts,jsx,tsx,mdx}', './components/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
colors: {
background: 'hsl(var(--color-background))',
foreground: 'hsl(var(--color-foreground))',
muted: {
background: 'hsl(var(--color-muted-background))',
foreground: 'hsl(var(--color-muted-foreground))',
},
primary: {
DEFAULT: 'hsl(var(--color-primary))',
highlight: 'hsl(var(--color-primary-highlight))',
},
accent: {
DEFAULT: 'hsl(var(--color-accent))',
highlight: 'hsl(var(--color-accent-highlight))',
},
border: 'hsl(var(--color-border-color))',
transparent: 'transparent',
},
borderRadius: {
'4xl': '2rem',
'5xl': '2.5rem',
circle: '50%',
},
fontFamily: {
sans: ['var(--font-sans)'],
mono: ['var(--font-mono)'],
},
keyframes: {
rotate: {
from: {
transform: 'rotateZ(0deg) translate3d(-50%,-50%,0)',
},
to: {
transform: 'rotateZ(360deg) translate3d(-50%,-50%,0)',
},
},
collapse: {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: 0 },
},
expand: {
from: { height: 0 },
to: { height: 'var(--radix-accordion-content-height)' },
},
glowBoxHighlight: {
'0%': { opacity: 0, left: 0 },
'5%, 15%': { opacity: 1 },
'20%': { opacity: 0, left: '100%', transform: 'translateX(-100%)' },
},
scrollLeft: {
'0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(-100%)' },
},
fadeInDemo: {
'0%': { opacity: 1 },
'25%': { opacity: 0 },
'40%': { opacity: 0 },
to: { opacity: 1 },
},
fadeUpDemo: {
'0%': { opacity: 1 },
'25%': { opacity: 0, transform: 'translateY(0)' },
'35%': { opacity: 0, transform: 'translateY(20%)' },
to: { opacity: 1, transform: 'translateY(0)' },
},
fadeDownDemo: {
'0%': { opacity: 1 },
'25%': { opacity: 0, transform: 'translateY(0)' },
'35%': { opacity: 0, transform: 'translateY(-20%)' },
to: { opacity: 1, transform: 'translateY(0)' },
},
fadeRightDemo: {
'0%': { opacity: 1 },
'25%': { opacity: 0, transform: 'translateX(0)' },
'35%': { opacity: 0, transform: 'translateX(-20%)' },
to: { opacity: 1, transform: 'translateY(0)' },
},
fadeLeftDemo: {
'0%': { opacity: 1 },
'25%': { opacity: 0, transform: 'translateX(0)' },
'35%': { opacity: 0, transform: 'translateX(20%)' },
to: { opacity: 1, transform: 'translateY(0)' },
},
blurInDemo: {
'0%': { opacity: 1 },
'20%': { opacity: 0, filter: 'blur(0)' },
'40%': { opacity: 0, filter: 'blur(16px)' },
to: { opacity: 1, filter: 'blur(0)' },
},
scaleUpDemo: {
'0%': { opacity: 1 },
'25%': { opacity: 0, transform: 'scale(1)' },
'35%': { opacity: 0, transform: 'scale(0.8)' },
to: { opacity: 1, transform: 'scale(1)' },
},
scaleDownDemo: {
'0%': { opacity: 1 },
'25%': { opacity: 0, transform: 'scale(1)' },
'35%': { opacity: 0, transform: 'scale(1.2)' },
to: { opacity: 1, transform: 'scale(1)' },
},
},
animation: {
collapse: 'collapse 400ms cubic-bezier(1, 0, 0.25, 1)',
rotate: 'rotate 2000ms linear infinite',
expand: 'expand 400ms cubic-bezier(1, 0, 0.25, 1)',
glowBoxHighlight: 'glowBoxHighlight 5s linear infinite',
scrollLeft: 'scrollLeft var(--marquee-duration) linear infinite',
fadeInDemo: 'fadeInDemo 1800ms linear',
fadeUpDemo: 'fadeUpDemo 2000ms cubic-bezier(0.25,1,0.5,1)',
fadeDownDemo: 'fadeDownDemo 2000ms cubic-bezier(0.25,1,0.5,1)',
fadeLeftDemo: 'fadeLeftDemo 2000ms cubic-bezier(0.25,1,0.5,1)',
fadeRightDemo: 'fadeRightDemo 2000ms cubic-bezier(0.25,1,0.5,1)',
blurInDemo: 'blurInDemo 1800ms linear',
scaleUpDemo: 'scaleUpDemo 2000ms cubic-bezier(0.25,1,0.5,1)',
scaleDownDemo: 'scaleDownDemo 2000ms cubic-bezier(0.25,1,0.5,1)',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
noise: `url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E")`,
},
},
},
plugins: [require('@tailwindcss/container-queries')],
}