-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
47 lines (46 loc) · 1.25 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
import type { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
import colors from "tailwindcss/colors";
import plugin from "tailwindcss/plugin";
import defaultTheme from "tailwindcss/defaultTheme";
const { fontFamily } = defaultTheme;
const config: Config = {
darkMode: "class",
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/lib/**/*.{ts,tsx}",
"./src/content/posts/**/*.mdx"
],
theme: {
extend: {
colors: {
gray: colors.stone
},
fontFamily: {
sans: ["var(--font-sans)", ...fontFamily.sans],
holimount: ["var(--font-holimount)"]
},
typography: {}
}
},
plugins: [
plugin(function ({ addBase, theme }: { addBase: any; theme: any }) {
addBase({
".layout-sm": {
"grid-template-columns": `1fr min(${theme("screens.sm")},100%) 1fr`
},
".layout-xl": {
"grid-template-columns": `1fr minmax(auto,${theme(
"spacing.60"
)}) min(${theme("screens.sm")},100%) minmax(auto,${theme(
"spacing.60"
)}) 1fr`
}
});
}),
typography
]
};
export default config;