-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathtailwind.config.js
79 lines (78 loc) · 2.08 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
71
72
73
74
75
76
77
78
79
const colors = require("tailwindcss/colors");
module.exports = {
purge: {
// "bg-", "text-" are used by tag.
// "ml-", "pl-", "rotate-" are used by docs.
safelist: [/^bg-/, /^text-/, /^ml-/, /^pl-/, /^rotate-/],
},
theme: {
extend: {
colors: {
accent: "var(--color-accent)",
"accent-disabled": "var(--color-accent-disabled)",
"accent-hover": "var(--color-accent-hover)",
"accent-text": "var(--color-accent-text)",
main: "var(--color-main)",
"main-hover": "var(--color-main-hover)",
"main-text": "var(--color-main-text)",
fuchsia: colors.fuchsia,
cyan: colors.cyan,
},
spacing: {
112: "28rem",
128: "32rem",
144: "36rem",
160: "40rem",
176: "44rem",
192: "48rem",
208: "52rem",
},
typography: {
// These configs are to override the default `prose` theme.
DEFAULT: {
css: {
// Make images fill the horizontal space.
img: {
width: "100%",
},
// Add background to inline code.
code: {
padding: "0 0.4em",
margin: 0,
fontSize: "1em",
backgroundColor: "#f5f2f0",
borderRadius: "6px",
fontWeight: "inherit",
color: "inherit",
},
// Remove backticks of inline code.
"code:before": {
content: "none",
},
"code:after": {
content: "none",
},
},
},
// Apply same configs to `xl` screens.
xl: {
css: {
code: {
padding: "0 0.4em",
margin: 0,
fontSize: "1em",
backgroundColor: "#f5f2f0",
borderRadius: "6px",
fontWeight: "inherit",
color: "inherit",
},
},
},
},
},
},
plugins: [
require("@tailwindcss/aspect-ratio"),
require("@tailwindcss/typography"),
],
};