/
tailwind.config.js
49 lines (47 loc) · 1.28 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
/* eslint-disable import/no-extraneous-dependencies */
const { fontFamily } = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
primary: 'rgba(35,31,32,1)',
secondary: '#c02425',
tertiary: '#dbab32',
},
fontFamily: {
sans: ['Open Sans', ...fontFamily.sans],
},
},
},
plugins: [
plugin(({ addComponents, theme }) => {
const progress = {
'.progressbar': {
position: 'relative',
width: '100%',
'& > div': {
position: 'relative',
top: '0',
height: '.25rem',
overflow: 'hidden',
'&:after': {
position: 'absolute',
top: '0',
right: '0',
bottom: '0',
left: '0',
transform: 'translateX(-100%)',
backgroundImage:
'linear-gradient(90deg, rgba(233, 233, 233, 1) 0, rgba(233, 233, 233, 0.9) 50%, rgba(233, 233, 233, 0.8) 100%)',
animation: theme('animation.shimmer'),
content: '""',
},
},
},
};
addComponents(progress);
}),
],
};