-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.js
75 lines (74 loc) · 2.76 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
const colors = require("tailwindcss/colors");
/** @type {import('tailwindcss').Config} */
module.exports = {
future: {
hoverOnlyWhenSupported: true,
},
content: ["./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
"2xl": "1920px",
},
extend: {
colors: {
light: colors.white,
dark: colors.black,
gray: colors.neutral,
highlight: {
DEFAULT: "#3E51F7",
dark: "#4F5FEF",
},
},
fontFamily: {
sans: ["var(--font-sans)"],
},
typography: (theme) => ({
custom: {
css: {
"--tw-prose-body": theme("colors.dark"),
"--tw-prose-headings": theme("colors.dark"),
"--tw-prose-lead": theme("colors.dark"),
"--tw-prose-links": theme("colors.highlight.DEFAULT"),
"--tw-prose-bold": theme("colors.dark"),
"--tw-prose-counters": theme("colors.gray.500"),
"--tw-prose-bullets": theme("colors.gray.500"),
"--tw-prose-hr": theme("colors.dark"),
"--tw-prose-quotes": theme("colors.dark"),
"--tw-prose-quote-borders": theme("colors.gray.300"),
"--tw-prose-captions": theme("colors.dark"),
"--tw-prose-code": theme("colors.gray.600"),
"--tw-prose-pre-code": theme("colors.dark"),
"--tw-prose-pre-bg": theme("colors.dark"),
"--tw-prose-th-borders": theme("colors.gray.600"),
"--tw-prose-td-borders": theme("colors.gray.600"),
"--tw-prose-invert-body": theme("colors.light"),
"--tw-prose-invert-headings": theme("colors.light"),
"--tw-prose-invert-lead": theme("colors.light"),
"--tw-prose-invert-links": theme("colors.highlight.dark"),
"--tw-prose-invert-bold": theme("colors.light"),
"--tw-prose-invert-counters": theme("colors.gray.500"),
"--tw-prose-invert-bullets": theme("colors.gray.500"),
"--tw-prose-invert-hr": theme("colors.light"),
"--tw-prose-invert-quotes": theme("colors.light"),
"--tw-prose-invert-quote-borders": theme("colors.gray.600"),
"--tw-prose-invert-captions": theme("colors.light"),
"--tw-prose-invert-code": theme("colors.gray.400"),
"--tw-prose-invert-pre-code": theme("colors.light"),
"--tw-prose-invert-pre-bg": "rgb(0 0 0 / 50%)",
"--tw-prose-invert-th-borders": theme("colors.gray.400"),
"--tw-prose-invert-td-borders": theme("colors.gray.400"),
},
},
}),
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
],
};