forked from juaneth/Omnipetal
/
tailwind.config.js
36 lines (31 loc) · 1.36 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
function withOpacity(cssVariable) {
return ({ opacityValue }) => {
return opacityValue ? `rgba(var(${cssVariable}), ${opacityValue})` : `rgb(var(${cssVariable}))`
}
}
module.exports = {
content: ["./src/**/*.{html,js}"],
theme: {
extend: {},
colors: {
background: withOpacity('--color-background'),
panel: withOpacity('--color-panel'),
darker: withOpacity('--color-darker'),
textPrimary: withOpacity('--color-textPrimary'),
textSecondary: withOpacity('--color-textSecondary'),
textTertiary: withOpacity('--color-textTertiary'),
textHint: withOpacity('--color-textHint'),
shadowPrimary: withOpacity('--color-shadowPrimary'),
shadowSuccess: withOpacity('--color-shadowSuccess'),
shadowError: withOpacity('--color-shadowError'),
borderPrimary: withOpacity('--color-borderPrimary'),
borderGray: withOpacity('--color-borderGray'),
borderSuccess: withOpacity('--color-borderSuccess'),
borderError: withOpacity('--color-borderError'),
backgroundPrimary: withOpacity('--color-backgroundPrimary'),
backgroundSuccess: withOpacity('--color-backgroundSuccess'),
backgroundError: withOpacity('--color-backgroundError'),
}
},
plugins: [],
}