-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
58 lines (58 loc) · 1.5 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
typography: ({ theme }) => ({
DEFAULT: {
css: {
"code::before": false,
"code::after": false,
"blockquote p:first-of-type::before": false,
"blockquote p:last-of-type::after": false,
"h2,h3,h4": {
"scroll-margin-top": "3.75rem",
},
"hr, thead, tbody tr": { borderColor: theme("colors.neutral.300") },
},
},
invert: {
css: {
blockquote: {},
"--tw-prose-hr": theme("colors.white[500]"),
"--tw-prose-quote-borders": theme("colors.white[500]"),
"--tw-prose-bullets": theme("colors.white[500]"),
},
},
}),
},
},
variants: {
typography: ["dark"],
},
plugins: [
require("@tailwindcss/typography"),
({ addComponents, addUtilities }) => {
addUtilities(
{
".no-scrollbar": {
/* IE and Edge */
"-ms-overflow-style": "none",
/* Firefox */
"scrollbar-width": "none",
/* Safari and Chrome */
"&::-webkit-scrollbar": {
display: "none",
},
},
},
["responsive"]
);
},
],
};