-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
55 lines (53 loc) · 1.4 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
const theme = require('./theme.json');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./*.php',
'./**/*.php',
'./src/css/*.css',
'./src/js/*.js',
'./src/js/components/*.js',
'./safelist.txt'
],
theme: {
container: {
padding: {
DEFAULT: '1rem',
sm: '.5rem',
md: '2rem',
lg: '0rem'
},
},
extend: {
colors: theme.settings.color.palette.reduce((acc, colorObj) => {
acc[colorObj.slug] = colorObj.color;
return acc;
}, {}),
fontSize: theme.settings.typography.fontSizes.reduce((acc, sizeObj) => {
acc[sizeObj.slug] = sizeObj.size;
return acc;
}, {}),
fontFamily: {
'body': 'Outfit, sans-serif'
},
animation: {
progress: 'progressBar 4s forwards 1'
},
keyframes: {
progressBar: {
'0%': { width: '0%' },
'100%': { width: '100%' }
}
}
},
screens: {
'sm': '320px',
'md': '768px',
'lg': '1024px',
'xl': '1240px',
}
},
plugins: [
require('tailwindcss-animated')
]
};