-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
81 lines (78 loc) · 1.78 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
80
81
// Configuration for tailwind.css
// const colors = require("tailwindcss/colors");
const customWidths = {};
for (let i = 1; i < 60; ++i) {
customWidths[`${i}/60`] = `${(i / 60) * 100}%`;
}
const primary = {
dark: "#603f8c",
semidark: "#6f4ba7",
DEFAULT: "#7e57c2",
light: "#f1eafd",
};
const secondary = {
DEFAULT: "#e040fb",
};
const gray100 = "#f3f4f7";
module.exports = {
content: [
"./src/**/*.{html,js,jsx,liquid,md}",
".eleventy.js", // We generate some markup in the shortcodes listed here.
],
darkMode: "class",
theme: {
extend: {
typography: {
DEFAULT: {
css: {
a: {
color: primary.DEFAULT,
fontWeight: "bold",
textDecoration: "none",
"&:hover": {
color: secondary.Default,
textDecoration: "underline",
},
},
code: {
backgroundColor: gray100,
padding: "0.2rem",
fontWeight: "normal",
"&::before": {
content: '"" !important',
},
"&::after": {
content: '"" !important',
},
},
pre: {
borderRadius: 0,
},
h2: {
fontWeight: 300,
},
h3: {
fontWeight: 300,
},
h4: {
fontWeight: 300,
},
figcaption: {
textAlign: "center",
},
},
},
},
colors: {
primary,
secondary,
light: "rgba(0,0,0,0.54)",
gray: {
100: gray100,
},
},
width: customWidths,
},
},
plugins: [require("@tailwindcss/typography")],
};