-
Notifications
You must be signed in to change notification settings - Fork 6
/
tailwind.config.js
94 lines (92 loc) · 2.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
// Configuration for tailwind.css.
//
// If you came here from config.js, see below for how to add custom colors.
const customWidths = {};
for (let i = 1; i < 60; ++i) {
customWidths[`${i}/60`] = `${(i / 60) * 100}%`;
}
const gray100 = "#f3f4f7";
const primaryDefault = "#0071eb";
const primaryDark = "#0050a6";
module.exports = {
purge: [
"./src/**/*.html",
"./src/**/*.js",
"./src/**/*.liquid",
"./src/**/*.md",
".eleventy.js", // We generate some markup in the shortcodes listed here.
],
content: ["src/**/*.html", "src/**/*.liquid", "src/**/*.md", "src/**/*.js"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
typography: {
DEFAULT: {
css: {
a: {
color: primaryDefault,
fontWeight: "normal",
textDecoration: "none",
"&:hover": {
color: primaryDark,
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,
},
},
},
},
//
// ADD CUSTOM COLORS HERE.
//
colors: {
primary: {
dark: primaryDark,
DEFAULT: primaryDefault,
},
light: "rgba(0,0,0,0.54)",
gray: {
100: gray100,
},
twitter: "#2f9bf0",
linkedin: "#0a66c2",
scholar: "#4d90fe",
pyribs: "#7e57c2",
vgsa: "#ffcc00",
website: "#e62020",
orcid: "#a6ce39",
},
width: customWidths,
},
},
variants: {
extend: {
backgroundColor: ["active"],
display: ["group-hover", "group-focus"],
fontWeight: ["hover", "group-hover"],
},
},
plugins: [require("@tailwindcss/typography")],
};