-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
43 lines (41 loc) · 1.08 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
const withOpacity = (variableName) => {
return ({ opacityValue }) => {
if(opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
};
module.exports = {
mode: 'jit',
darkMode: 'class',
theme: {
extend: {
colors: {
primary: withOpacity('--primary'),
'main-background': withOpacity('--main-background'),
white: '#ffffff',
secondary: withOpacity('--secondary'),
shade: withOpacity('--shade'),
accent: withOpacity('--accent'),
'light-text': withOpacity('--light-text'),
'accent-lighter': withOpacity('--accent-lighter'),
'key-tuts-active': '#EA4C89',
'key-tuts-passive': '#5c5c5c78',
},
fontFamily: {
primary: ['Roboto', 'sans-serif'],
},
transitionProperty: {
bg: 'background-color',
},
transitionTimingFunction: {
'out-sine': 'cubic-bezier(0.61, 1, 0.88, 1)',
},
transitionDuration: {
400: '400ms',
},
},
},
plugins: [],
};