-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
44 lines (41 loc) · 1 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
const withOpacity = (variableName) => {
return ({ opacityValue }) => {
if(opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
};
const v = (name) => {
return `var(--${name})`;
};
module.exports = {
mode: 'jit',
theme: {
extend: {
colors: {
accent: v('accent'),
'accent-hover': v('accentHover'),
primary: v('primary'),
'primary-hover': v('primaryHover'),
'main-text': v('mainText'),
'secondary-text': v('secondaryText'),
'player-download-progress': v('playerDownloadProgress'),
'player-bar': v('playerBar'),
},
fontFamily: {
yellowtail: ['Yellowtail', 'sans-serif'],
},
transitionProperty: {
bg: 'background-color',
},
transitionTimingFunction: {
'out-sine': 'cubic-bezier(0.61, 1, 0.88, 1)',
},
transitionDuration: {
400: '400ms',
},
},
},
plugins: [],
};