-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
83 lines (82 loc) · 2.64 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{html,js,njk,md,vue}",
"./cfg/_11ty/**/*.js"
],
darkMode: "class",
theme: {
screens: {
xs: "360px",
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
},
aspectRatio: {
auto: "auto",
box: "1",
landscape: "4/3",
portrait: "3/4",
video: "16/9",
},
extend: {
transitionProperty: {
'border': 'border, border-color, border-width, border-radius',
}
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
require("@tailwindcss/aspect-ratio"),
({ addComponents, theme }) => {
addComponents({
".prose": {
"--tw-prose-links": "#dc2626",
},
".dark .prose": {
"--tw-prose-body": "#d4d4d4",
"--tw-prose-headings": "#d4d4d4",
"--tw-prose-lead": "#d4d4d4",
"--tw-prose-links": "#ef4444",
"--tw-prose-bold": "#d4d4d4",
"--tw-prose-counters": "#d4d4d4",
"--tw-prose-bullets": "#d4d4d4",
"--tw-prose-hr": "#d4d4d4",
"--tw-prose-quotes": "#111827",
"--tw-prose-quote-borders": "#e5e7eb",
"--tw-prose-captions": "#6b7280",
"--tw-prose-kbd": "#111827",
"--tw-prose-kbd-shadows": "17 24 39",
"--tw-prose-code": "#111827",
"--tw-prose-pre-code": "#e5e7eb",
"--tw-prose-pre-bg": "#1f2937",
"--tw-prose-th-borders": "#d1d5db",
"--tw-prose-td-borders": "#e5e7eb",
"--tw-prose-invert-body": "#d1d5db",
"--tw-prose-invert-headings": "#fff",
"--tw-prose-invert-lead": "#9ca3af",
"--tw-prose-invert-links": "#fff",
"--tw-prose-invert-bold": "#fff",
"--tw-prose-invert-counters": "#9ca3af",
"--tw-prose-invert-bullets": "#4b5563",
"--tw-prose-invert-hr": "#374151",
"--tw-prose-invert-quotes": "#f3f4f6",
"--tw-prose-invert-quote-borders": "#374151",
"--tw-prose-invert-captions": "#9ca3af",
"--tw-prose-invert-kbd": "#fff",
"--tw-prose-invert-kbd-shadows": "255 255 255",
"--tw-prose-invert-code": "#fff",
"--tw-prose-invert-pre-code": "#d1d5db",
"--tw-prose-invert-pre-bg": "rgb(0 0 0 / 50%)",
"--tw-prose-invert-th-borders": "#4b5563",
"--tw-prose-invert-td-borders": "#374151",
},
'.prose :where(a):not(:where([class~="not-prose"], [class~="not-prose"] *))': {
"@apply no-underline hover:underline": {},
}
});
},
],
}