-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
70 lines (66 loc) · 2.48 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['index.astro', './src/**/*.{js,ts,jsx,tsx,html,astro}'],
theme: {
extend: {
colors: {
// primary: 'rgb(101 163 13)',
primary: 'var(--accent)',
dark: '#191919',
},
boxShadow: { '2xl': '0 0px 20px 30px rgb(0 0 0 / .4)' },
spacing: {
main: 'min(7%, 100px)',
},
animation: {
'loadFromRight': 'loadFromRight .6s ease-in-out forwards',
'loadFromLeft': 'loadFromLeft .3s ease-in-out forwards',
'loadFromDown': 'loadFromDown .8s ease-in-out forwards',
'loadFromUp': 'loadFromUp .8s ease-in-out forwards',
'scaleFromCenter': 'scaleFromCenter .8s ease-in-out forwards',
},
keyframes: {
'loadFromUp': {
'0%, 50%': { transform: 'translateY(-1000px)' },
'100%': { transform: 'translateY(0)' },
},
'loadFromDown': {
'0%, 50%': { transform: 'translateY(1000px)' },
'100%': { transform: 'translateY(0)' },
},
'loadFromRight': {
'0%, 20%': { transform: 'translateX(500px)' },
'100%': { transform: 'translateX(0)' },
},
'loadFromLeft': {
'0%': { transform: 'translateX(-500px)' },
'100%': { transform: 'translateX(0)' },
},
'scaleFromCenter': {
'0%': { transform: 'scaleX(0)' },
'100%': { transform: 'scaleX(1)' },
},
}
},
screens: {
'nav>': { max: '550px' },
'astro>': { max: '380px' },
'sxs>': { max: '300px' },
'xs>': { max: '500px' },
'sm>': { max: '640px' },
'md>': { max: '768px' },
'lg>': { max: '1024px' },
'xl>': { max: '1280px' },
'nav<': { min: '550px' },
'astro<': { min: '380px' },
'sxs<': { min: '300px' },
'xs<': { min: '500px' },
'sm<': { min: '641px' },
'md<': { min: '768px' },
'lg<': { min: '1024px' },
'xl<': { min: '1280px' },
},
},
plugins: [],
};