-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.js
48 lines (41 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
37
38
39
40
41
42
43
44
45
46
47
48
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: {},
fontFamily: {
sans: ["Inter", "sans-serif"],
},
extend: {
colors: {
primary: withOpacityValue("--color-primary"),
danger: withOpacityValue("--color-danger"),
},
backgroundImage: {
galaxy: "url('/assets/background.jpg')",
"nlw-gradient":
"linear-gradient(90deg, #9572FC 0%, #43E7AD 50%, #e1D55d 100%)",
"game-gradient":
"linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 70%)",
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
require("tailwind-scrollbar"),
require("@tailwindcss/line-clamp"),
],
};