-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
77 lines (77 loc) · 1.88 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} */
module.exports = {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
daisyui: {
themes: [
{
light: {
...require("daisyui/src/theming/themes")["light"],
"--content-background": "#f2f5f8",
".bg-light-success": {
backgroundColor: "#cceedd",
},
".bg-light-warning": {
backgroundColor: "#ffeecc",
},
".bg-light-error": {
backgroundColor: "#ffdddd",
},
},
},
{
dark: {
...require("daisyui/src/theming/themes")["dark"],
"--content-background": "#1a202c",
".bg-light-success": {
backgroundColor: "#003300",
},
".bg-light-warning": {
backgroundColor: "#554400",
},
".bg-light-error": {
backgroundColor: "#552233",
},
},
},
],
},
theme: {
keyframes: {
fadeOut: {
"0%": { opacity: 1 },
"100%": { opacity: 0 },
},
},
animation: {
fadeOut: "fadeOut 0.2s ease-out forwards",
},
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
margin: "0", // Set global `margin` to 0
"h1, h2, h3, h4, h5, h6": {
marginTop: theme("spacing.6"),
marginBottom: theme("spacing.4"),
},
p: {
marginTop: theme("spacing.2"),
marginBottom: theme("spacing.2"),
},
},
},
}),
colors: {
"light-success": "#cceedd",
"light-warning": "#ffeecc",
"light-error": "#ffdddd",
},
},
},
darkMode: "class",
plugins: [require("@tailwindcss/typography"), require("daisyui")],
};