-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
97 lines (93 loc) · 2.49 KB
/
tailwind.config.ts
File metadata and controls
97 lines (93 loc) · 2.49 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import type { Config } from "tailwindcss";
import type { PluginAPI } from "tailwindcss/types/config";
type DaisyUITheme = {
[key: string]: string | Record<string, string>;
};
const addCustomStyles = (theme: DaisyUITheme) => {
return {
...theme,
".btn-nav-link": {
"border-color": "transparent",
"background-color": "transparent",
},
".btn-nav-link:hover": {
"border-color": "transparent",
"background-color": "transparent",
},
".modal-base": {
"background-color": theme["base-300"],
color: theme["base-content"],
},
".modal-error": {
"background-color": "#f8d7da",
color: "#721c24",
},
".modal-success": {
"background-color": "#d4edda",
color: "#155724",
},
".modal-fail": {
"background-color": "#fff3cd",
color: "#856404",
},
fontFamily: "Satoshi",
};
};
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/context/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
fontFamily: {
clashgrotesk: ["ClashGrotesk", "sans-serif"],
satoshi: ["Satoshi", "sans-serif"],
},
textShadow: {
sm: "1px 1px 2px var(--tw-shadow-color)",
DEFAULT: "2px 2px 4px var(--tw-shadow-color)",
md: "3px 3px 6px var(--tw-shadow-color)",
lg: "4px 4px 8px var(--tw-shadow-color)",
xl: "4px 4px 16px var(--tw-shadow-color)",
},
colors: {
"nav-text-contour": "var(--nav-text-contour)",
"input-error": "var(--input-error)",
},
},
},
plugins: [
function ({ matchUtilities, theme }: { matchUtilities: PluginAPI["matchUtilities"]; theme: PluginAPI["theme"] }) {
matchUtilities(
{
"text-shadow": (value) => ({
textShadow: value,
}),
},
{ values: theme("textShadow") },
);
},
require("daisyui"),
],
daisyui: {
themes: [
{
dark: addCustomStyles({
...require("daisyui/src/theming/themes")["dark"],
"base-content": "rgb(225, 225, 225)",
"--input-error": "#E8828C",
}),
light: addCustomStyles({
...require("daisyui/src/theming/themes")["light"],
"--nav-text-contour": "rgba(28, 25, 23, 0.3)",
"base-content": "rgb(50, 50, 50)",
"--input-error": "#FFCDD2",
}),
},
],
},
};
export default config;