-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
37 lines (35 loc) · 1.03 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
/* eslint-disable no-undef */
const plugin = require('tailwindcss/plugin');
module.exports = {
purge: {
content: ['./src/**/*.html', '.eleventy.js'],
options: {
safelist: ['dark']
}
},
darkMode: 'class',
theme: {
extend: {}
},
variants: {
extend: {}
},
plugins: [
plugin(function ({ addBase, theme }) {
addBase({
h1: { fontSize: theme('fontSize.5xl') },
h2: { fontSize: theme('fontSize.4xl') },
h3: { fontSize: theme('fontSize.3xl') },
h4: { fontSize: theme('fontSize.2xl') },
h5: { fontSize: theme('fontSize.xl') },
hr: { marginTop: theme('spacing.4') },
blockquote: {
paddingLeft: theme('spacing.4'),
borderLeftWidth: theme('borderWidth.4'),
borderColor: theme('colors.gray.200'),
borderStyle: 'solid'
}
});
})
]
};