-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
67 lines (67 loc) · 1.47 KB
/
tailwind.config.cjs
File metadata and controls
67 lines (67 loc) · 1.47 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
module.exports = {
mode: 'jit',
plugins: [require('@tailwindcss/forms')],
purge: ['./src/**/*.{svelte, css}'],
darkMode: false, // or 'media' or 'class'
theme: {
fontSize: {
body: '12px',
'body-md': '16px',
xs: '.75rem',
sm: '.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '3.75rem',
'7xl': '4.5rem',
'8xl': '6rem',
'9xl': '8rem',
},
container: {
center: true,
padding: {
DEFAULT: '1rem',
lg: '0.5rem'
},
},
extend: {
colors: {
primary: 'var(--color-primary)',
secondary: {
light: '#ffd728',
DEFAULT: 'var(--color-secondary)',
dark: '#997415',
},
},
backgroundPosition: {
'left-center': '-375px center',
},
keyframes: {
slideUp: {
'0%': { transform: 'translateY(15px)', opacity: 0},
'100%': { transform: 'translateY(0px)', opacity: 1}
},
slideLeft: {
'0%': { transform: 'translateX(100px)', opacity: 0},
'100%': { transform: 'translateX(0px)', opacity: 1}
}
},
animation: {
slideUp: 'slideUp 1s 0.2s forwards',
slideLeft: 'slideLeft 1s 0.4s forwards'
}
},
variants: {
extend: {},
},
},
variants: {
extend: {
margin: ['first'],
},
},
};