-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
80 lines (77 loc) · 2.28 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.zinc.600'),
a: {
color: theme('colors.teal.500'),
'text-decoration-color': theme('colors.teal.100'),
'text-decoration-thickness': '2px',
fontWeight: 600,
'&:hover': {
color: theme('colors.teal.600'),
'text-decoration-color': theme('colors.teal.500'),
},
},
code: {
color: theme('colors.zinc.400'),
fontWeight: 500,
},
h1: {
color: theme('colors.zinc.900'),
},
'h2, h3, h4, h5, h6': {
color: theme('colors.zinc.800'),
},
'blockquote, strong': {
color: theme('colors.zinc.600'),
borderLeftColor: theme('colors.teal.400'),
},
code: {
color: theme('colors.zinc.700'),
fontWeight: 500,
},
pre: {
color: 'var(--code-text-color)',
backgroundColor: 'var(--code-background-color)',
},
},
},
invert: {
css: {
color: theme('colors.zinc.400'),
a: {
color: theme('colors.teal.500'),
'text-decoration-color': theme('colors.teal.800'),
'text-decoration-thickness': '2px',
fontWeight: 600,
'&:hover': {
'text-decoration-color': theme('colors.teal.500'),
},
},
h1: {
color: theme('colors.zinc.100'),
},
'h2, h3, h4, h5, h6': {
color: theme('colors.zinc.200'),
},
'blockquote, strong': {
color: theme('colors.zinc.300'),
borderLeftColor: theme('colors.teal.400'),
},
code: {
color: theme('colors.zinc.300'),
fontWeight: 500,
},
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
}