-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
50 lines (48 loc) · 1.53 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
const defaultTypograhyStyle = {
marginTop: ".6em",
marginBottom: ".25em",
};
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
fontFamily: {
sans: ['"Sora"', "sans-serif"],
serif: ['"Rubik"', "serif"],
body: ['"Sora"', "sans-serif"],
},
extend: {
typography: {
"2xl": {
css: {
fontSize: "4em",
h1: {
...defaultTypograhyStyle,
marginBottom: ".3em",
},
h2: {
...defaultTypograhyStyle,
},
h3: {
...defaultTypograhyStyle,
},
h4: {
...defaultTypograhyStyle,
},
p: {
...defaultTypograhyStyle,
fontSize: "1.275em",
},
// increase all font sizes in table
table: {
fontSize: "1em",
marginBottom: "1.25em",
marginTop: "1.25em",
},
},
},
},
},
},
plugins: [require("@tailwindcss/typography")],
};