-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
46 lines (44 loc) · 1.03 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
import containerQueries from "@tailwindcss/container-queries";
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
const config: Config = {
content: ["./index.html", "./src/**/*.{js,ts,vue,tsx}"],
prefix: "tw-",
important: "#html-body",
darkMode: "class",
corePlugins: {
preflight: false,
},
theme: {
extend: {
fontFamily: {
sans: [
'"Inter", sans-serif',
{
// fontFeatureSettings: '"cv11", "ss01"',
fontVariationSettings: '"slnt" 0',
},
],
},
container: {
center: true,
padding: {
DEFAULT: "1rem",
},
},
},
},
plugins: [
containerQueries,
plugin(({ addVariant }) => {
addVariant("light", `.light &`);
}),
plugin(function ({ addVariant }) {
addVariant("hocus", ["&:hover", "&:focus"]);
}),
plugin(function ({ addVariant }) {
addVariant("hocus-visible", ["&:hover", "&:focus-visible"]);
}),
],
};
export default config;