-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.mjs
63 lines (62 loc) · 2.86 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
import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
typography: ({ theme }) => ({
DEFAULT: {
css: {
"--tw-prose-body": theme("colors.gray[700]"),
"--tw-prose-headings": theme("colors.dark"),
"--tw-prose-lead": theme("colors.gray[600]"),
"--tw-prose-links": theme("colors.dark"),
"--tw-prose-bold": theme("colors.gray[800]"),
"--tw-prose-counters": theme("colors.gray[600]"),
"--tw-prose-bullets": theme("colors.gray[400]"),
"--tw-prose-hr": theme("colors.gray[300]"),
"--tw-prose-quotes": theme("colors.gray[900]"),
"--tw-prose-quote-borders": theme("colors.gray[300]"),
"--tw-prose-captions": theme("colors.gray[700]"),
"--tw-prose-code": theme("colors.gray[900]"),
"--tw-prose-pre-code": theme("colors.gray[100]"),
"--tw-prose-pre-bg": theme("colors.gray[100]"),
"--tw-prose-th-borders": theme("colors.gray[300]"),
"--tw-prose-td-borders": theme("colors.gray[200]"),
"--tw-prose-invert-body": theme("colors.gray[300]"),
"--tw-prose-invert-headings": theme("colors.light"),
"--tw-prose-invert-lead": theme("colors.gray[400]"),
"--tw-prose-invert-links": theme("colors.light"),
"--tw-prose-invert-bold": theme("colors.gray[100]"),
"--tw-prose-invert-counters": theme("colors.gray[400]"),
"--tw-prose-invert-bullets": theme("colors.gray[600]"),
"--tw-prose-invert-hr": theme("colors.gray[700]"),
"--tw-prose-invert-quotes": theme("colors.gray[100]"),
"--tw-prose-invert-quote-borders": theme("colors.gray[700]"),
"--tw-prose-invert-captions": theme("colors.gray[400]"),
"--tw-prose-invert-code": theme("colors.light"),
"--tw-prose-invert-pre-code": theme("colors.gray[300]"),
"--tw-prose-invert-pre-bg": theme("colors.gray[800]"),
"--tw-prose-invert-th-borders": theme("colors.gray[600]"),
"--tw-prose-invert-td-borders": theme("colors.gray[700]"),
a: {
"text-decoration-color": theme("colors.gray[500]"),
"text-underline-offset": "4px",
transition: "text-decoration-color 150ms",
"&:hover": {
"text-decoration-color": "currentColor",
},
},
img: {
width: `calc(100% + 2 * ${theme("spacing.6")})`,
"max-width": "100vw",
"margin-left": `-${theme("spacing.6")}`,
"margin-right": `-${theme("spacing.6")}`,
},
},
},
}),
},
},
plugins: [typography],
};