-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
45 lines (44 loc) · 1.06 KB
/
tailwind.config.mjs
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
import plugin from "tailwindcss/plugin";
import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontSize: {
sm: "1.25rem",
base: "1.5rem",
lg: "1.75rem",
xl: "2rem",
"2xl": "2.5rem",
"3xl": "3rem",
"4xl": "3.5rem",
"5xl": "4rem",
},
container: {
center: true,
padding: "1rem",
screens: {
sm: "100%",
md: "100%",
lg: "700px",
xl: "60ch",
},
},
},
},
plugins: [
typography,
plugin(function ({ addBase, config }) {
addBase({
h1: { fontSize: config("theme.fontSize.2xl") },
h2: { fontSize: config("theme.fontSize.xl") },
h3: { fontSize: config("theme.fontSize.lg") },
body: {
backgroundColor: config("theme.colors.gray.900"),
color: config("theme.colors.white"),
},
});
}),
],
};