-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
84 lines (83 loc) · 2.19 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import type { Config } from "tailwindcss";
import { fontFamily } from "tailwindcss/defaultTheme";
import plugin from "tailwindcss/plugin";
const config: Config = {
darkMode: "class",
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: {
DEFAULT: "var(--color-primary)",
foreground: "var(--color-primary-foreground)",
},
},
fontFamily: {
display: ["var(--font-display)", ...fontFamily.sans],
sans: ["var(--font-sans)", ...fontFamily.sans],
body: ["var(--font-sans)", ...fontFamily.sans],
},
container: {
center: true,
padding: {
DEFAULT: "1rem",
lg: "1.5rem",
},
},
},
},
plugins: [
plugin(function ({ addBase, addComponents, theme }) {
addComponents({});
addBase({
h1: {
fontSize: theme("fontSize.5xl"),
fontFamily: theme("fontFamily.display"),
lineHeight: theme("lineHeight.tight"),
"@screen lg": {
fontSize: theme("fontSize.7xl"),
},
},
h2: {
fontSize: theme("fontSize.3xl"),
fontFamily: theme("fontFamily.display"),
"@screen lg": {
fontSize: theme("fontSize.5xl"),
},
},
h3: {
fontSize: theme("fontSize.2xl"),
fontFamily: theme("fontFamily.display"),
"@screen lg": {
fontSize: theme("fontSize.4xl"),
},
},
h4: {
fontSize: theme("fontSize.xl"),
fontFamily: theme("fontFamily.display"),
"@screen lg": {
fontSize: theme("fontSize.2xl"),
},
},
h5: {
fontSize: theme("fontSize.lg"),
},
h6: {
fontSize: theme("fontSize.base"),
},
body: {
"font-family": theme("fontFamily.sans"),
"font-size": theme("fontSize.base"),
"font-weight": theme("fontWeight.normal"),
"min-height": "100vh",
width: "100%",
},
});
}),
],
};
export default config;