-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
53 lines (51 loc) · 1.3 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
49
50
51
52
53
/** @type {import('tailwindcss').Config} */
const withMT = require("@material-tailwind/react/utils/withMT");
// this function handles the opacity of color
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `hsl(var(${variable}))`;
}
return `hsl(var(${variable}) / ${opacityValue})`;
};
}
module.exports = withMT({
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./src/components/**/*.{js,ts,jsx,tsx}",
"node_modules/daisyui/dist/**/*.js",
"node_modules/react-daisyui/dist/**/*.js",
],
theme: {
extend: {
colors: {
"light-gray": withOpacityValue("--light-gray"),
},
backdropBlur: {
sm: "1px",
},
},
},
variants: {
background: ["disabled"],
extend: {
display: ["group-hover"],
border: ["first", "last"],
},
},
plugins: [require("daisyui"), require("@tailwindcss/forms")],
daisyui: {
themes: [
{
light: {
...require("daisyui/src/colors/themes")["[data-theme=light]"],
primary: "hsla(224, 90%, 62%, 1)",
secondary: "hsla(165, 58%, 51%, 1)",
accent: "hsla(224, 61%, 46%, 1)",
neutral: "hsla(202, 13%, 16%, 1)",
"--light-gray": "light-gray",
},
},
],
},
});