-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
67 lines (65 loc) · 2.94 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
import defaultTheme from "tailwindcss/defaultTheme";
const accent = "lavender";
const linkColor = "blue";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
"data/config.json",
],
theme: {
extend: {
fontFamily: {
sans: ["Inclusive Sans", ...defaultTheme.fontFamily.sans],
mono: ["Recursive Mono", ...defaultTheme.fontFamily.mono],
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
textDecoration: "none",
},
"--tw-prose-body": theme("colors.text.DEFAULT"),
"--tw-prose-headings": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-lead": theme("colors.text.DEFAULT"),
"--tw-prose-links": theme(`colors.${linkColor}.DEFAULT`),
"--tw-prose-bold": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-counters": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-bullets": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-hr": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-quotes": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-quote-borders": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-captions": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-code": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-pre-code": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-pre-bg": theme(`colors.base.DEFAULT`),
"--tw-prose-th-borders": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-td-borders": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-body": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-headings": theme("colors.white"),
"--tw-prose-invert-lead": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-links": theme("colors.white"),
"--tw-prose-invert-bold": theme("colors.white"),
"--tw-prose-invert-counters": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-bullets": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-hr": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-quotes": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-quote-borders": theme(
`colors.${accent}.DEFAULT`
),
"--tw-prose-invert-captions": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-code": theme("colors.white"),
"--tw-prose-invert-pre-code": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-pre-bg": "rgb(0 0 0 / 50%)",
"--tw-prose-invert-th-borders": theme(`colors.${accent}.DEFAULT`),
"--tw-prose-invert-td-borders": theme(`colors.${accent}.DEFAULT`),
},
},
}),
},
},
plugins: [
require("@catppuccin/tailwindcss"),
require("@tailwindcss/typography"),
],
};