-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
71 lines (70 loc) · 2.24 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
const colors = require('tailwindcss/colors')
module.exports = {
content: [
'./src/**/*.vue',
'./src/**/*.js',
'./src/**/*.jsx',
'./src/**/*.html',
'./src/**/*.pug',
'./src/**/*.md'
],
darkMode: 'media', // or 'media' or 'class'
theme: {
fontFamily: {
sans: ['PT Sans', 'ui-sans-serif', 'sans-serif'],
},
extend: {
typography(theme) {
return {
DEFAULT: {
css: {
blockquote: {
color: theme("colors.slate.700"),
borderLeftColor: theme("colors.slate.300"),
backgroundColor: theme("colors.indigo.100"),
padding: "0.1em 1em",
},
},
},
dark: {
css: {
color: theme("colors.slate.100"),
'[class~="lead"]': { color: theme("colors.slate.100") },
a: { color: theme("colors.slate.100") },
strong: { color: theme("colors.teal.100") },
"ul > li::before": { backgroundColor: theme("colors.slate.600") },
hr: { borderColor: theme("colors.slate.500") },
blockquote: {
color: theme("colors.indigo.50"),
borderLeftColor: theme("colors.slate.400"),
backgroundColor: theme("colors.slate.600"),
padding: "0.1em 1em",
},
h1: { color: theme("colors.slate.100") },
h2: { color: theme("colors.slate.100") },
h3: { color: theme("colors.slate.100") },
h4: { color: theme("colors.slate.100") },
code: { color: theme("colors.slate.100") },
"a code": { color: theme("colors.slate.100") },
pre: {
color: theme("colors.slate.200"),
backgroundColor: theme("colors.slate.500"),
},
thead: {
color: theme("colors.slate.100"),
borderBottomColor: theme("colors.slate.600"),
},
"tbody tr": { borderBottomColor: theme("colors.slate.800") },
},
},
}
},
},
},
variants: {
extend: { typography: ["dark"] }
},
plugins: [
require('@tailwindcss/typography')
],
}