-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
55 lines (55 loc) · 1.55 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
43
44
45
46
47
48
49
50
51
52
53
54
55
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx,astro}"],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: ["InterVariable", "Inter", ...defaultTheme.fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
".anchor-link": {
marginRight: "0.25rem",
opacity: "0.3",
textDecoration: "none !important",
transitionProperty: "opacity !important",
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1);",
transitionDuration: "150ms",
"&:hover": {
opacity: "1",
},
},
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
":not(pre) > code": {
backgroundColor: theme("colors.stone.200"),
borderColor: theme("colors.stone.300"),
padding: "0.250rem 0.4rem",
borderRadius: "0.250rem",
fontWeight: "400",
},
},
},
invert: {
css: {
":not(pre) > code": {
backgroundColor: theme("colors.stone.900"),
borderColor: theme("colors.stone.800"),
},
},
},
}),
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
],
};