-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.cjs
75 lines (74 loc) · 2.12 KB
/
tailwind.config.cjs
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
const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
height: {
'screen/2': '50vh',
},
fontFamily: {
sans: ['Lexend', ...defaultTheme.fontFamily.sans],
mono: ['JetBrains Mono', ...defaultTheme.fontFamily.mono],
},
typography: (theme) => ({
DEFAULT: {
css: {
'--tw-prose-emphasis': theme('colors.rose[600]'),
pre: {
color: null,
backgroundColor: null,
},
h1: {
fontWeight: '300',
color: 'var(--tw-prose-emphasis)',
},
h2: {
fontWeight: '350',
color: 'var(--tw-prose-emphasis)',
},
h3: {
fontWeight: '400',
color: 'var(--tw-prose-emphasis)',
},
h4: {
fontWeight: '600',
color: 'var(--tw-prose-emphasis)',
},
h5: {
color: 'var(--tw-prose-emphasis)',
},
h6: {
fontStyle: 'italic',
color: 'var(--tw-prose-emphasis)',
},
a: {
textDecoration: 'none',
borderColor: 'var(--tw-prose-emphasis)',
borderBottomWidth: '2px',
},
'a:hover': {
color: 'var(--tw-prose-emphasis)',
},
blockquote: {
borderLeftColor: 'var(--tw-prose-emphasis)',
},
'blockquote > p::before': {
color: 'var(--tw-prose-emphasis)',
},
'blockquote > p::after': {
color: 'var(--tw-prose-emphasis)',
},
'ol > li::marker': {
color: 'var(--tw-prose-emphasis)',
},
'ul > li::marker': {
color: 'var(--tw-prose-emphasis)',
},
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
};