-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
49 lines (48 loc) · 1.11 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
const colors = require("tailwindcss/colors");
const typography = require("@tailwindcss/typography");
module.exports = {
content: ["./src/**/*.rs"],
darkMode: "class", // or 'media' or 'class'
theme: {
fontFamily: {
body: ["Inter", "system-ui", "sans-serif"],
mono: ["IBM Plex Mono", "Menlo", "monospace"],
code: ["ui-monospace", "monospace"],
},
extend: {
zIndex: {
neg: -1,
},
typography: (theme) => ({
DEFAULT: {
css: {
maxWidth: "80ch",
"--tw-prose-pre-bg": theme("colors.codeblock"),
"--tw-prose-pre-code": theme("colors.codeblock-code"),
pre: {
// Keep in sync with PrismJS theme.
padding: "1em",
margin: "0.5em 0",
"line-height": "1.5",
},
},
},
}),
},
colors: {
transparent: "transparent",
current: "currentColor",
black: colors.black,
red: colors.red,
gray: colors.gray,
orange: colors.orange,
amber: colors.amber,
yellow: colors.yellow,
white: colors.white,
// Keep in sync with PrismJS theme.
codeblock: "#1d2021",
"codeblock-code": "#ebdbb2",
},
},
plugins: [typography],
};