-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
34 lines (30 loc) · 926 Bytes
/
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
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `var(${variable})`; // return `rgb(var(${variable}))`;
}
return `var(${variable})`; // return `rgb(var(${variable}) / ${opacityValue})`;
};
}
module.exports = {
mode: "jit", // criar o css necessario somente que o app precisa
content: ["./src/components/**/*.tsx", "./src/pages/**/*.tsx"],
darkMode: "class",
// variants: {
// typography: ['dark'],
// },
theme: {
// defaultTheme: {},
extend: {
colors: {
primary: withOpacityValue("--color-primary"),
danger: withOpacityValue("--color-danger"),
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
require("tailwind-scrollbar")
],
};