-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
76 lines (75 loc) · 1.93 KB
/
tailwind.config.mjs
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
import typography from '@tailwindcss/typography'
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
fontFamily: {
display: 'Montserrat, sans-serif',
body: 'Georgia, Cambria, serif',
},
extend: {
colors: {
'surface-dark': '#070a13',
},
typography: (theme) => ({
lg: {
css: {
blockquote: {
paddingLeft: null,
},
pre: {
paddingTop: null,
paddingBottom: null,
paddingLeft: null,
paddingRight: null,
},
'.footnotes h2': {
marginBlockStart: theme('space.4'),
marginBlockEnd: `-${theme('space.4')}`,
fontSize: theme('fontSize.2xl[0]'),
...theme('fontSize.2xl[1]'),
},
},
},
DEFAULT: {
css: {
color: null,
'h1, h2, h3, h4, h5, h6': {
color: theme('colors.red.500'),
fontFamily: theme('fontFamily.display'),
fontWeight: 'inherit',
},
code: {
fontStyle: 'normal',
fontWeight: 'normal',
},
'code::before': {
content: 'none',
},
'code::after': {
content: 'none',
},
blockquote: null,
'blockquote p': {
margin: '0 !important',
},
'blockquote p::before': {
content: 'none',
},
'blockquote p::after': {
content: 'none',
},
'figure figcaption': {
color: null,
},
summary: {
cursor: 'pointer',
},
},
},
}),
},
},
plugins: [typography],
}