Repository navigation
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
57 lines (55 loc) · 1.76 KB
/
Copy pathtailwind.config.ts
File metadata and controls
57 lines (55 loc) · 1.76 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
import { mauveDark, mint } from "@radix-ui/colors";
import typography from "@tailwindcss/typography";
import { type Config } from "tailwindcss";
const config: Config = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
colors: {
mauve: Object.entries(mauveDark).reduce(
(acc, [k, v]) => {
acc[k.slice("mauve".length)] = v;
return acc;
},
{} as Record<string, string>,
),
mint: Object.entries(mint).reduce(
(acc, [k, v]) => {
acc[k.slice("mint".length)] = v;
return acc;
},
{} as Record<string, string>,
),
transparent: "rgba(0, 0, 0, 0)",
},
extend: {
fontFamily: {
sans: ["Inter", "ui-sans-serif", "sans-serif"],
mono: ["JetBrains Mono", "ui-monospace", "monospace"],
},
typography: (theme: Function) => ({
default: {
css: {
"--tw-prose-body": theme("colors.mauve[12]"),
"--tw-prose-headings": theme("colors.mint[9]"),
"--tw-prose-lead": theme("colors.mauve[12]"),
"--tw-prose-links": theme("colors.mint[9]"),
"--tw-prose-bold": theme("colors.mauve[12]"),
"--tw-prose-counters": theme("colors.mauve[12]"),
"--tw-prose-bullets": theme("colors.mauve[11]"),
"--tw-prose-hr": theme("colors.mauve[11]"),
"--tw-prose-quotes": theme("colors.mauve[11]"),
"--tw-prose-quote-borders": theme("colors.mauve[11]"),
"--tw-prose-captions": theme("colors.mauve[11]"),
"--tw-prose-code": theme("colors.mauve[12]"),
"--tw-prose-pre-code": theme("colors.mauve[12]"),
"--tw-prose-pre-bg": theme("colors.transparent"),
"--tw-prose-th-borders": theme("colors.mauve[7]"),
"--tw-prose-td-borders": theme("colors.mauve[7]"),
},
},
}),
},
},
plugins: [typography()],
};
export default config;