-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
92 lines (92 loc) · 2.42 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
darkMode: "class",
theme: {
extend: {
colors: {
bg: {
body: "rgb(var(--color-bg-body) / <alpha-value>)",
},
text: {
body: "rgb(var(--color-text-body) / <alpha-value>)",
},
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
h1: {
paddingTop: "5rem",
marginBottom: "1rem !important",
},
code: {
margin: "0.2rem",
padding: "0.1rem 0.25rem",
borderRadius: "0.2rem",
fontWeight: "400",
backgroundColor: theme("colors.stone[200]"),
"&::before": {
content: "none !important",
},
"&::after": {
content: "none !important",
},
},
blockquote: {
code: {
color: "black",
},
borderLeftColor: theme("colors.blue[400]"),
"p:first-of-type::before": {
content: "none",
},
"p:last-of-type::after": {
content: "none",
},
},
a: {
textDecoration: "none",
"&:hover": {
color: theme("colors.blue[400]"),
},
},
hr: {
margin: "0 0 2rem 0 !important",
},
},
},
dark: {
css: {
code: {
backgroundColor: theme("colors.slate[400]"),
},
"h2, h3": {
color: theme("colors.slate[400]"),
},
a: {
color: theme("colors.slate[400]"),
"&:hover": {
color: theme("colors.blue[400]"),
},
},
pre: {
code: {
backgroundColor: "rgba(0, 0, 0, 0)",
},
},
p: {
color: theme("colors.slate[400]"),
},
hr: {
borderColor: theme("colors.slate[400]"),
},
strong: {
color: theme("colors.slate[400]"),
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};