-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
tailwind.config.js
101 lines (100 loc) · 3.85 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
95
96
97
98
99
100
101
// Install tailwindcss standalone CLI, see https://tailwindcss.com/blog/standalone-cli.
// Or install node version of tailwindcss.
//
// tailwindcss -i zine-entry.css -o static/zine.css --watch --minify
const colors = require('tailwindcss/colors');
module.exports = {
content: [
'./templates/**/*.jinja',
'tailwindcss.html',
],
theme: {
extend: {
colors: {
primary: 'var(--primary-color)',
main: 'var(--main-color)',
secondary: 'var(--secondary-color)',
link: 'var(--link-color)',
},
typography: {
DEFAULT: {
css: {
a: {
color: 'var(--link-color)',
textDecoration: 'none',
fontWeight: '400',
},
'a:hover': {
textDecoration: 'underline',
},
strong: {
fontWeight: '500',
},
blockquote: {
color: "#7c8088",
borderLeftWidth: '2px',
borderLeftColor: 'var(--primary-color)',
// Make font weight and style to normal
fontWeight: '400',
fontStyle: 'normal',
// Disable blockquote's quotes style
quotes: 'none',
paddingLeft: '0.8rem',
},
// Customize the color of strong inside blockquote
'blockquote strong': {
color: '#6c6d6d',
},
code: {
color: 'var(--tw-prose-code)',
fontWeight: '400',
padding: '0.2em 0.4em',
margin: 0,
fontSize: '85%',
whiteSpace: 'break-spaces',
backgroundColor: '#eff1f3',
borderRadius: '6px',
},
'code::before': {
content: 'none',
},
'code::after': {
content: 'none',
},
ol: {
paddingLeft: '1rem',
},
ul: {
paddingLeft: '1rem',
},
'ol > li::marker': {
fontWeight: '400',
color: 'var(--primary-color)',
},
'ul > li::marker': {
color: 'var(--primary-color)',
},
},
},
// Customize the essential prose-slate colors.
// Mainly for article comments UI.
slate: {
css: {
'--tw-prose-body': colors.slate[500],
'--tw-prose-headings': colors.slate[600],
'--tw-prose-lead': colors.slate[400],
'--tw-prose-links': colors.slate[500],
'--tw-prose-bold': colors.slate[600],
'--tw-prose-quotes': colors.slate[400],
}
}
},
},
},
plugins: [
// A plugin to pretty markdown content.
require('@tailwindcss/typography')({
target: 'legacy', // disables :where() selectors
}),
],
}