-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
56 lines (56 loc) · 1.25 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
51
52
53
54
55
56
const plugin = require("tailwindcss/plugin");
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./sections/**/*.{js,ts,jsx,tsx}",
],
theme: {
container: {
center: true,
},
extend: {
colors: {
white: "#FFFFFF",
offwhite: "#FAF9F6",
green: "#41BC9C",
lightgreen: "#D8F8F4",
gray: "#80858B",
blue: "#89CFF0",
fontHeadingColor: "#20252B",
fontBodyColor: "#3B3E42",
},
backgroundColor: {
green: "#41BC9C",
},
fontSize: {
body: "0.875rem",
h1: "3rem",
h2: "2rem",
h3: "1.5rem",
h4: "1.25rem",
h5: "1rem",
},
},
screens: {
"2xs": "320px",
xs: "360px",
...defaultTheme.screens,
},
},
variants: {
extend: {},
},
plugins: [
plugin(({ addBase, theme }) => {
addBase({
h1: { fontSize: theme("fontSize.h1") },
h2: { fontSize: theme("fontSize.h2") },
h3: { fontSize: theme("fontSize.h3") },
h4: { fontSize: theme("fontSize.h4") },
h5: { fontSize: theme("fontSize.h5") },
});
}),
],
};