-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.mjs
118 lines (118 loc) · 2.93 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,ts,tsx}"],
theme: {
extend: {
fontFamily: {
inter: ["Inter", "sans-serif"],
},
colors: {
brand: {
green: "#157F71",
red: "#DB1D00",
},
},
container: {
center: true,
padding: {
DEFAULT: "2rem",
},
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
h1: {
fontSize: theme("fontSize.5xl")[0],
"@media screen(lg)": {
fontSize: theme("fontSize.6xl")[0],
},
},
h2: {
fontSize: theme("fontSize.4xl")[0],
"@media screen(lg)": {
fontSize: theme("fontSize.5xl")[0],
},
},
h3: {
fontSize: theme("fontSize.3xl")[0],
"@media screen(lg)": {
fontSize: theme("fontSize.4xl")[0],
},
},
h4: {
fontSize: theme("fontSize.2xl")[0],
"@media screen(lg)": {
fontSize: theme("fontSize.3xl")[0],
},
},
h5: {
fontSize: theme("fontSize.xl")[0],
"@media screen(lg)": {
fontSize: theme("fontSize.2xl")[0],
},
},
h6: {
fontSize: theme("fontSize.lg")[0],
"@media screen(lg)": {
fontSize: theme("fontSize.xl")[0],
},
},
pre: {
backgroundColor: "transparent",
},
p: {
fontSize: theme("fontSize.lg")[0],
lineHeight: theme("lineHeight.relaxed"),
},
li: {
fontSize: theme("fontSize.lg")[0],
lineHeight: theme("lineHeight.relaxed"),
},
hr: {
borderColor: theme("colors.gray[700]"),
},
a: {
color: theme("colors.gray[700]"),
"&:hover": {
textDecoration: "underline",
},
},
strong: {
fontWeight: "700",
},
img: {
width: "100%",
},
"--tw-prose-body": theme("colors.gray[700]"),
"--tw-prose-headings": theme("colors.gray[700]"),
"--tw-prose-lead": theme("colors.gray[700]"),
"--tw-prose-links": theme("colors.gray[700]"),
"--tw-prose-bold": theme("colors.gray[700]"),
"--tw-prose-counters": theme("colors.gray[700]"),
"--tw-prose-bullets": theme("colors.gray[700]"),
"--tw-prose-hr": theme("colors.gray[700]"),
"--tw-prose-quotes": theme("colors.gray[700]"),
"--tw-prose-quote-borders": theme("colors.gray[700]"),
"--tw-prose-captions": theme("colors.gray[700]"),
"--tw-prose-code": theme("colors.gray[700]"),
"--tw-prose-pre-code": theme("colors.gray[700]"),
"--tw-prose-pre-bg": theme("colors.gray[700]"),
"--tw-prose-th-borders": theme("colors.gray[700]"),
"--tw-prose-td-borders": theme("colors.gray[700]"),
},
},
sm: {
css: {
p: {
fontSize: theme("fontSize.base")[0],
},
li: {
fontSize: theme("fontSize.base")[0],
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};