-
Notifications
You must be signed in to change notification settings - Fork 24
/
tailwind.config.js
68 lines (68 loc) · 2.87 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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: ["./layouts/**/*.html", "./content/**/*.{html,md}", "./assets/**/*.js"],
theme: {
extend: {
keyframes: {
"open-menu": {
"0%": { transform: "scaleY(0)" },
"100%": { transform: "scaleY(1)" },
},
},
animation: {
"open-menu": "open-menu 0.3s ease-in-out forwards",
},
typography: ({ theme }) => ({
slate: {
css: {
"--tw-prose-body": theme("colors.slate[700]"),
"--tw-prose-headings": theme("colors.slate[900]"),
"--tw-prose-lead": theme("colors.slate[600]"),
"--tw-prose-links": theme("colors.indigo[500]"),
"--tw-prose-bold": theme("colors.slate[700]"),
"--tw-prose-counters": theme("colors.slate[500]"),
"--tw-prose-bullets": theme("colors.slate[500]"),
"--tw-prose-hr": theme("colors.slate[200]"),
"--tw-prose-quotes": theme("colors.slate[900]"),
"--tw-prose-quote-borders": theme("colors.slate[200]"),
"--tw-prose-captions": theme("colors.slate[500]"),
"--tw-prose-kbd": theme("colors.slate[900]"),
"--tw-prose-code": theme("colors.slate[900]"),
"--tw-prose-pre-code": theme("colors.slate[200]"),
"--tw-prose-pre-bg": theme("colors.slate[800]"),
"--tw-prose-th-borders": theme("colors.slate[300]"),
"--tw-prose-td-borders": theme("colors.slate[200]"),
"--tw-prose-invert-body": theme("colors.slate[200]"),
"--tw-prose-invert-headings": theme("colors.white"),
"--tw-prose-invert-lead": theme("colors.slate[400]"),
"--tw-prose-invert-links": theme("colors.indigo[500]"),
"--tw-prose-invert-bold": theme("colors.slate[400]"),
"--tw-prose-invert-counters": theme("colors.slate[400]"),
"--tw-prose-invert-bullets": theme("colors.slate[200]"),
"--tw-prose-invert-hr": theme("colors.slate[700]"),
"--tw-prose-invert-quotes": theme("colors.slate[100]"),
"--tw-prose-invert-quote-borders": theme("colors.slate[700]"),
"--tw-prose-invert-captions": theme("colors.slate[400]"),
"--tw-prose-invert-kbd": theme("colors.white"),
"--tw-prose-invert-code": theme("colors.white"),
"--tw-prose-invert-pre-code": theme("colors.slate[300]"),
"--tw-prose-invert-pre-bg": "rgb(0 0 0 / 50%)",
"--tw-prose-invert-th-borders": theme("colors.slate[600]"),
"--tw-prose-invert-td-borders": theme("colors.slate[700]"),
},
},
}),
},
},
future: {
// disable hover on touch devices
hoverOnlyWhenSupported: true,
},
plugins: [require("@tailwindcss/typography")],
safelist: [
{
pattern: /grid-cols-.+/,
},
],
};