-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
68 lines (67 loc) · 1.59 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
module.exports = {
darkMode: "class",
plugins: [require("@tailwindcss/typography"), require("daisyui")],
theme: {
screens: {
sm: "576px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1536px",
},
extend: {
colors: {
"color-base-l100": withOpacityValue("--color-base-l100"),
},
},
},
daisyui: {
themes: [
{
dark: {
...require("daisyui/src/theming/themes")["[data-theme=night]"],
// "base-200": "#252d37",
// "base-300": "#343841",
"base-200": "#1a1d22",
"base-300": "#10131a",
"secondary": "#9333ea",
"accent": "#0d9488",
},
},
{
light: {
...require("daisyui/src/theming/themes")["[data-theme=emerald]"],
"base-200": "#e0e1e1",
"base-300": "#cccccc",
},
},
],
},
// daisyui: {
// themes: [
// {
// // TODO
// mydark: {
// primary: "#33b7a3",
// secondary: "#1cc4a3",
// accent: "#d31815",
// neutral: "#263036",
// "base-100": "#404044",
// info: "#13b6bf",
// success: "#19a37a",
// warning: "#d7ac14",
// error: "#f7405c",
// },
// },
// ],
// },
};
// this function handles the opacity of color
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `hsl(var(${variable}))`;
}
return `hsl(var(${variable}) / ${opacityValue})`;
};
}