-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.ts
65 lines (65 loc) 路 1.85 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
55
56
57
58
59
60
61
62
63
64
65
import { dynamicIconsPlugin, iconsPlugin } from "@egoist/tailwindcss-icons";
import headlessui from "@headlessui/tailwindcss";
import forms from "@tailwindcss/forms";
import type { Config } from "tailwindcss";
import defaultTheme from "tailwindcss/defaultTheme";
import plugin from "tailwindcss/plugin";
export default {
content: ["./src/**/*.{tsx,html}"],
darkMode: "selector",
plugins: [
forms,
headlessui({ prefix: "ui" }).handler,
iconsPlugin().handler,
dynamicIconsPlugin().handler,
plugin(({ addBase }) => {
addBase({
":focus-visible": {
borderRadius: "0.25rem",
},
});
addBase({
"@font-face": {
fontDisplay: "swap",
fontFamily: "DM Sans",
fontStyle: "normal",
fontWeight: "normal",
src: "url('./fonts/dm-sans-regular.woff2') format('woff2')",
},
});
addBase({
"@font-face": {
fontDisplay: "swap",
fontFamily: "DM Sans",
fontStyle: "normal",
fontWeight: "bold",
src: "url('./fonts/dm-sans-bold.woff2') format('woff2')",
},
});
addBase({
"@font-face": {
fontDisplay: "swap",
fontFamily: "JetBrains Mono",
fontStyle: "normal",
fontWeight: "normal",
src: "url('./fonts/jetbrains-mono-regular.woff2') format('woff2')",
},
});
addBase({
"@font-face": {
fontDisplay: "swap",
fontFamily: "JetBrains Mono",
fontStyle: "normal",
fontWeight: "bold",
src: "url('./fonts/jetbrains-mono-bold.woff2') format('woff2')",
},
});
}),
],
theme: {
fontFamily: {
sans: ["DM Sans", ...defaultTheme.fontFamily.sans],
mono: ["JetBrains Mono", ...defaultTheme.fontFamily.mono],
},
},
} satisfies Config;