forked from raae/queen.raae.codes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
103 lines (103 loc) · 3.73 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,jsx,ts,tsx}",
"./src/components/**/*.{js,jsx,ts,tsx}",
"./src/templates/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {
colors: {
brown: {
50: "#fbf6f5",
100: "#f6ecea",
200: "#f0dcd8",
300: "#e4c3bd",
400: "#d2a097",
500: "#bf7f74",
600: "#a96559",
700: "#8d5248",
800: "#76463e",
900: "#3e2723",
},
},
typography: (theme) => ({
brown: {
css: {
"--tw-prose-body": theme("colors.brown[900]"),
"--tw-prose-headings": theme("colors.brown[900]"),
"--tw-prose-lead": theme("colors.brown[800]"),
"--tw-prose-links": theme("colors.teal[900]"),
"--tw-prose-bold": theme("colors.brown[900]"),
"--tw-prose-counters": theme("colors.amber[500]"),
"--tw-prose-bullets": theme("colors.amber[500]"),
"--tw-prose-hr": theme("colors.amber[300]"),
"--tw-prose-quotes": theme("colors.brown[900]"),
"--tw-prose-quote-borders": theme("colors.amber[500]"),
"--tw-prose-captions": theme("colors.brown[700]"),
"--tw-prose-code": theme("colors.brown[900]"),
"--tw-prose-pre-code": theme("colors.brown[100]"),
"--tw-prose-pre-bg": theme("colors.brown[900]"),
"--tw-prose-th-borders": theme("colors.brown[300]"),
"--tw-prose-td-borders": theme("colors.brown[200]"),
"--tw-prose-invert-body": theme("colors.brown[200]"),
"--tw-prose-invert-headings": theme("colors.white"),
"--tw-prose-invert-lead": theme("colors.brown[300]"),
"--tw-prose-invert-links": theme("colors.white"),
"--tw-prose-invert-bold": theme("colors.white"),
"--tw-prose-invert-counters": theme("colors.brown[400]"),
"--tw-prose-invert-bullets": theme("colors.brown[600]"),
"--tw-prose-invert-hr": theme("colors.brown[700]"),
"--tw-prose-invert-quotes": theme("colors.brown[100]"),
"--tw-prose-invert-quote-borders": theme("colors.brown[700]"),
"--tw-prose-invert-captions": theme("colors.brown[400]"),
"--tw-prose-invert-code": theme("colors.white"),
"--tw-prose-invert-pre-code": theme("colors.brown[300]"),
"--tw-prose-invert-pre-bg": "rgb(0 0 0 / 50%)",
"--tw-prose-invert-th-borders": theme("colors.brown[600]"),
"--tw-prose-invert-td-borders": theme("colors.brown[700]"),
},
},
DEFAULT: {
css: {
a: {
"&:hover": {
textDecorationColor: "transparent",
},
},
code: {
fontSize: "0.8em !important",
},
ol: {
listStylePosition: "inside",
},
li: {
textWrap: "pretty",
},
"ol > li::marker": {
fontWeight: 900,
display: "inline-block",
marginRight: "0.5rem",
},
"div > ul > li::marker": {
content: "''",
},
"div > ul > li::before": {
color: "var(--tw-prose-bullets)",
content: "'➽'",
display: "inline-block",
marginRight: "0.5rem",
},
"div > ul ul": {
marginTop: 0,
},
"div > ul ul li:first-child": {
marginTop: 0,
},
},
},
}),
},
},
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography")],
};