-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
58 lines (57 loc) · 1.72 KB
/
Copy pathtailwind.config.js
File metadata and controls
58 lines (57 loc) · 1.72 KB
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
import typography from '@tailwindcss/typography';
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
theme: {
extend: {
maxWidth: {
layout: '48rem',
},
colors: {
'dark-bg': '#151515',
'lighter-dark-bg': '#202022',
},
fontFamily: {
sans: [
'ui-sans-serif',
'system-ui',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
'CCSymbols',
],
},
typography: (theme) => ({
DEFAULT: {
css: {
h1: { marginTop: '1em', marginBottom: '0.5em' },
h2: { marginTop: '1em', marginBottom: '0.5em' },
h3: { marginTop: '1em', marginBottom: '0.5em' },
h4: { marginTop: '1em', marginBottom: '0.5em' },
h5: { marginTop: '1em', marginBottom: '0.5em' },
h6: { marginTop: '1em', marginBottom: '0.5em' },
p: { marginTop: '0.5em', marginBottom: '0.5em' },
li: { marginTop: '0.5em', marginBottom: '0.5em' },
img: { marginTop: 0, marginBottom: 0 },
},
},
dark: {
css: {
color: theme('colors.gray.300'),
a: { color: theme('colors.blue.400') },
h1: { color: theme('colors.gray.100') },
h2: { color: theme('colors.gray.100') },
strong: { color: theme('colors.gray.100') },
code: { color: theme('colors.gray.100') },
blockquote: {
color: theme('colors.gray.200'),
borderLeftColor: theme('colors.gray.700'),
},
},
},
}),
},
},
};