generated from ianrose/deventy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
69 lines (66 loc) · 1.98 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
module.exports = {
mode: 'jit',
purge: ['./dist/**/*.html'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
fontFamily: theme('fontFamily.serif'),
a: {
fontWeight: theme('fontWeight.semibold'),
},
li: {
a: {
fontFamily: theme('fontFamily.display'),
},
},
'h1,h2,h3,h4,h5,h6': {
fontFamily: theme('fontFamily.display'),
/**
* give some space on top
*/
scrollMarginTop: '2em',
/**
* make the heading position relative for
* absolute positioned link pseudo element
*/
position: 'relative',
/**
* markdown it link plugin creates a anchor tag
* with this class
*/
'.header-anchor': {
textDecoration: 'none',
},
},
h1: {
/**
* crisp title heading
*/
letterSpacing: theme('letterSpacing.tighter'),
lineHeight: theme('lineHeight.9'),
},
'h1,h2': {
fontWeight: theme('fontWeight.bold'),
},
'h3,h4,h5,h6': {
fontWeight: theme('fontWeight.semibold'),
},
},
},
}),
fontFamily: {
serif:
'"Source Serif Pro", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;',
display:
'"PlusJakartaSans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
},
},
},
variants: {
extend: {},
},
plugins: [require('@tailwindcss/typography')],
}