-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
77 lines (75 loc) · 2.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/** @type {import('tailwindcss').Config} */
const withMT = require("@material-tailwind/react/utils/withMT");
const { fontFamily } = require("tailwindcss/defaultTheme");
// 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"),
"dark-gray": withOpacityValue("--dark-gray"),
"disabled-gray": withOpacityValue("--disabled-gray"),
"link-blue": withOpacityValue("--link-blue"),
"light-blue": withOpacityValue("--light-blue"),
"base-blue": withOpacityValue("--base-blue"),
"base-pink": withOpacityValue("--base-pink"),
"light-yellow": withOpacityValue("--light-yellow"),
"base-yellow": withOpacityValue("--base-yellow"),
},
backgroundImage: {
"primary-gradient":
"linear-gradient(93.08deg, hsl(var(--base-blue)) 5.1%, hsl(var(--base-pink)) 100%)",
},
backdropBlur: {
sm: "1px",
},
fontFamily: {
unbounded: ["var(--font-unbounded)", ...fontFamily.sans],
},
},
},
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-yellow": "light-yellow",
"--base-yellow": "base-yellow",
"--light-gray": "light-gray",
"--dark-gray": "dark-gray",
"--disabled-gray": "disabled-gray",
"--link-blue": "link-blue",
"--light-blue": "light-blue",
"--base-blue": "base-blue",
"--base-pink": "base-pink",
},
},
],
},
});