forked from Jaishree2310/GlassyUI-Components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
79 lines (57 loc) · 1.31 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
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {
backdropFilter: {
'none': 'none',
'blur': 'blur(20px)',
},
animation: {
blob: "blob 7s infinite",
},
keyframes: {
blob: {
"0%": {
transform: "translate(0px, 0px) scale(1)",
},
"33%": {
transform: "translate(30px, -50px) scale(1.1)",
},
"66%": {
transform: "translate(-20px, 20px) scale(0.9)",
},
"100%": {
transform: "translate(0px, 0px) scale(1)",
},
},
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
},
},
},
variants: {
extend: {
backdropFilter: ['responsive', 'hover', 'focus'],
},
},
plugins: [
require('@tailwindcss/aspect-ratio'),
function ({ addUtilities }) {
const newUtilities = {
'.backdrop-blur-xl': {
'backdrop-filter': 'blur(24px)',
},
'.backdrop-blur-2xl': {
'backdrop-filter': 'blur(40px)',
},
'.bg-opacity-30': {
'background-opacity': '0.3',
},
}
addUtilities(newUtilities, ['responsive', 'hover'])
},
],
}