-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
64 lines (62 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
// HACK(cjshearer): this enables us to get the node_modules installed by the consumer of a theme.
// This may only be necessary for npm/pnpm installed from nixpkgs, but it should work the same for a
// normal install.
const node_modules = `${process.env.PWD}/node_modules`;
const defaultTheme = require(`${node_modules}/tailwindcss/defaultTheme`);
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./hugo_stats.json"],
plugins: [require(`${node_modules}/@tailwindcss/typography`)],
theme: {
extend: {
typography: {
DEFAULT: {
css: {
a: {
color: false,
fontWeight: false,
},
"blockquote p:first-of-type::before": false,
"blockquote p:last-of-type::after": false,
code: {
color: false,
fontWeight: false,
},
"code::after": false,
"code::before": false,
maxWidth: false,
},
},
resume: {
css: {
h1: {
fontSize: defaultTheme.fontSize["2xl"][0],
fontWeight: defaultTheme.fontWeight.medium,
lineHeight: defaultTheme.fontSize["2xl"][1].lineHeight,
marginBottom: 0,
},
h2: {
fontWeight: defaultTheme.fontWeight.medium,
marginBottom: "0.5em",
marginTop: 0,
},
h3: {
fontWeight: defaultTheme.fontWeight.medium,
marginBottom: 0,
marginTop: 0,
},
h4: {
fontSize: defaultTheme.fontSize.base[0],
fontWeight: defaultTheme.fontWeight.light,
lineHeight: defaultTheme.fontSize.base[1].lineHeight,
},
p: {
marginBottom: 0,
marginTop: 0,
},
},
},
},
},
},
};