-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
70 lines (70 loc) · 1.91 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./app/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
"background-opaque": "var(--background-opaque)",
background: "var(--background)",
primary: "var(--primary)",
secondary: "var(--secondary)",
tertiary: "var(--tertiary)",
accent: "var(--accent)",
},
typography: {
"custom-colors": {
css: {
"h1, h2, h3, h4, h5, h6": {
"font-weight": "bold",
"margin-block": "2rem",
color: "var(--primary)",
},
h2: {
"font-size": "1.25rem",
"line-height": "1.75rem",
},
h3: {
"font-size": "1.125rem",
"line-height": "1.75rem",
},
h4: {
"font-size": "1rem",
"line-height": "1.75rem",
},
a: {
color: "var(--accent)",
},
"a:hover": {
color: "#0c885f",
},
pre: {
position: "relative",
"border-radius": ".375rem",
background: "#f2f2f308",
padding: "1rem",
},
code: {
"font-size": ".875rem",
"line-height": "1.25rem",
color: "hsl(240, 4%, 85%)",
padding: ".125rem .25rem .125rem .25rem",
background: "#f2f2f31f",
border: "1px solid var(--tertiary)",
"border-radius": ".25rem",
"overflow-x": "auto",
},
"pre > code": {
background: "none",
border: "none",
},
},
},
},
},
},
plugins: [require("@tailwindcss/typography")],
};