-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
48 lines (47 loc) · 2.18 KB
/
tailwind.config.ts
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
import defaultTheme from "tailwindcss/defaultTheme";
import type { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontFamily: {
sans: ["Inter", ...defaultTheme.fontFamily.sans],
display: ["Satoshi", ...defaultTheme.fontFamily.sans],
},
typography: () => ({
amber: {
css: {
// Only for dark mode
"--tw-prose-body": "var(--brand-text)",
"--tw-prose-headings": "var(--brand-text)",
"--tw-prose-lead": "var(--brand-text)",
"--tw-prose-links": "var(--brand-text)",
"--tw-prose-bold": "var(--brand-text)",
"--tw-prose-counters": "var(--brand-text)",
"--tw-prose-bullets": "var(--brand-text)",
"--tw-prose-hr": "var(---brand-border)",
"--tw-prose-quotes": "var(--brand-text)",
"--tw-prose-quote-borders": "var(--brand-text)",
"--tw-prose-captions": "var(--brand-text)",
"--tw-prose-code": "var(--brand-text)",
// "--tw-prose-invert-pre-code": theme("colors.amber[300]"), // Does not work, astro highlighting takes over
// "--tw-prose-invert-pre-bg": "rgb(0 0 0 / 50%)", // Does not work, astro highlighting takes over
"--tw-prose-th-borders": "var(--brand-border)",
"--tw-prose-td-borders": "var(--brand-border)",
},
},
}),
colors: {
brand: {
text: "var(--brand-text)",
muted: "var(--brand-muted)",
background: "var(--brand-background)",
border: "var(--brand-border)",
hr: "var(--brand-hr)",
},
},
},
},
plugins: [typography()],
} satisfies Config;