-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.cjs
42 lines (42 loc) 路 1.14 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx,astro}"],
darkMode: "media",
theme: {
extend: {
fontFamily: {
sans: ["InterVariable", "Inter", ...defaultTheme.fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
":not(pre) > code": {
backgroundColor: theme("colors.neutral.200"),
border: "1px solid",
borderColor: theme("colors.zinc.300"),
padding: "0.250rem 0.4rem",
borderRadius: "0.250rem",
fontWeight: "400",
},
},
},
invert: {
css: {
":not(pre) > code": {
backgroundColor: theme("colors.neutral.800"),
borderColor: theme("colors.zinc.700"),
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};