-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
37 lines (35 loc) · 1.07 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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
const config: Config = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
extend: {
fontFamily: {
heading: "var(--mantine-font-family-headings)",
mono: "var(--mantine-font-family-monospace)",
sans: "var(--mantine-font-family)",
},
fontWeight: {
heading: "var(--mantine-heading-font-weight)",
},
fontSize: {
"mtn-xs": "var(--mantine-font-size-xs)",
"mtn-sm": "var(--mantine-font-size-sm)",
"mtn-md": "var(--mantine-font-size-md)",
"mtn-lg": "var(--mantine-font-size-lg)",
"mtn-xl": "var(--mantine-font-size-xl)",
},
colors: {
primary: "var(--mantine-primary-color-filled)",
},
},
},
plugins: [
plugin(({ addVariant }) => {
addVariant("middle-child", "&>:not(:first-child):not(:last-child)");
addVariant("first-child", "&>:first-child");
addVariant("last-child", "&>:last-child");
}),
],
};
export default config;