-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.mjs
40 lines (39 loc) · 1005 Bytes
/
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
import defaultTheme from "tailwindcss/defaultTheme";
import typographyPlugin from "@tailwindcss/typography";
import colors from "tailwindcss/colors";
export default {
content: ["./src/**/*.{js,ts,jsx,tsx,astro}"],
darkMode: "media",
theme: {
extend: {
fontFamily: {
sans: ["InterVariable", "Inter", ...defaultTheme.fontFamily.sans],
},
typography: {
DEFAULT: {
css: {
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
":not(pre) > code": {
backgroundColor: colors.zinc[200],
padding: "0.15rem 0.375rem",
fontWeight: defaultTheme.fontWeight.normal,
},
},
},
invert: {
css: {
":not(pre) > code": {
backgroundColor: colors.zinc[700],
},
},
},
},
},
},
plugins: [typographyPlugin],
};