Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
76 lines (74 loc) · 2.15 KB
/
Copy pathtailwind.config.js
File metadata and controls
76 lines (74 loc) · 2.15 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
module.exports = {
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class', // or 'media' or 'class'
plugins: [],
// eslint-disable-next-line no-unused-vars
theme: {
extend: {
// that is animation class
animation: {
fade: 'fadeOut 1s ease-in-out',
'fade-in': 'fade-in-down 1s ease-out',
'fade-out': 'fade-out-up 1s ease-out',
pan: 'pan 60s linear infinite'
},
// eslint-disable-next-line no-unused-vars
backgroundImage: (theme) => ({
// 'grass-pattern': 'url(\'/images/grass.png\')',
'grass-pattern': "linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('/images/grass.png')",
'hero-1': "linear-gradient(45deg, rgba(76, 175, 80, 0.75), rgba(102,170,68, 0.75)), url('/images/avalon-sunrise.webp')",
'hero-2': "linear-gradient(45deg, rgba(76, 175, 80, 0.75), rgba(102,170,68, 0.75)), url('/images/avalon-sunset.webp')",
'hero-3': "linear-gradient(45deg, rgba(76, 175, 80, 0.75), rgba(102,170,68, 0.75)), url('/images/avalon-midnight.webp')",
'hero-loading': 'linear-gradient(45deg, rgba(76, 175, 80, 0.75), rgba(102,170,68, 0.75))',
'l4c-logo': "url('/images/logo.png')"
}),
colors: {
dark: '#2e2e2e',
light: '#505050',
primary: '#4caf50',
secondary: '#66aa44'
},
// that is actual animation
// eslint-disable-next-line no-unused-vars
keyframes: (theme) => ({
'fade-in-down': {
'0%': {
opacity: '0',
transform: 'translateY(-10px)'
},
'100%': {
opacity: '1',
transform: 'translateY(0)'
}
},
'fade-out-up': {
from: {
opacity: '1',
transform: 'translateY(0px)'
},
to: {
opacity: '0',
transform: 'translateY(-10px)'
}
},
fadeOut: {
'0%': { opacity: 1 },
'100%': { opacity: 0 }
},
pan: {
'0%': { 'background-position': 'left bottom' },
'50%': { 'background-position': 'right top' },
'100%': { 'background-position': 'left bottom' }
}
})
}
},
variants: {
extend: {
backgroundColor: ['checked'],
borderColor: ['checked'],
inset: ['checked'],
zIndex: ['hover', 'active']
}
}
};