-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.js
58 lines (57 loc) · 1.58 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: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./lib/**/*.js",
"./posts/**/*.md",
],
safelist: ["text-[#f88100]"],
theme: {
// screens: {
// '2xl': { 'max': '1535px' },
// 'xl': { 'max': '1279px' },
// 'lg': { 'max': '1023px' },
// 'md': { 'max': '767px' },
// 'sm': { 'max': '639px' },
// },
extend: {
typography: () => ({
DEFAULT: {
css: {
"p>a:not(.data-footnote-backref), .blog li>a": {
"border-bottom-width": "1px",
"text-decoration": "none",
"border-color": "#bbb",
"word-break": "break-word",
transition: "border-color 0.25s cubic-bezier(.4,0,.2,1)",
"&:hover": {
"border-color": "#000",
},
"@media (prefers-color-scheme: dark)": {
"border-color": "#999",
"&:hover": {
"border-color": "#fff",
},
},
},
"h2 a, h3 a, h4 a, h5 a, h6 a": {
"text-decoration": "none",
},
".toc-link": {
color: "#666",
"@media (prefers-color-scheme: dark)": {
color: "#ccc",
},
},
".data-footnote-backref": {
"text-decoration": "none",
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
};