-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
54 lines (53 loc) · 1.36 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
import { PluginCreator } from "tailwindcss/types/config";
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: "var(--color-primary)",
background: "var(--background)",
foreground: "var(--foreground)",
},
gridTemplateColumns: {
edgetip: "64px 1fr 64px",
},
},
},
plugins: [
((api) => {
api.addUtilities({
".tooltip": {
position: "relative",
display: "inline-block",
cursor: "pointer",
"&::before": {
content: "attr(data-tooltip)",
position: "absolute",
bottom: "100%",
left: "50%",
transform: "translateX(-50%)",
"background-color": "#333",
color: "white",
padding: "5px",
"border-radius": "5px",
"font-size": "12px",
"white-space": "nowrap",
opacity: "0",
visibility: "hidden",
transition: "opacity 0.3s",
},
"&:hover::before": {
opacity: "1",
visibility: "visible",
},
},
});
}) as PluginCreator,
],
};
export default config;