generated from lhr0909/lhr0909.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
53 lines (53 loc) · 1.56 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
code: {
marginLeft: theme("spacing.1"),
marginRight: theme("spacing.1"),
padding: theme("spacing")['0.5'],
borderRadius: theme("spacing.1"),
border: `1px solid ${theme("colors.gray.300")}`,
fontWeight: "normal",
fontFamily: '"SF Mono", "Roboto Mono", Menlo, monospace',
},
'code::before': {
content: "''",
},
'code::after': {
content: "''",
},
pre: {
code: {
marginLeft: 0,
marginRight: 0,
border: 0,
borderRadius: 0,
},
},
// ':where(blockquote p:first-of-type):not(:where([class~="not-prose"] *))::before': {
// content: "''",
// },
// ':where(blockquote p:last-of-type):not(:where([class~="not-prose"] *))::after': {
// content: "''",
// },
// blockquote: {
// margin: theme("spacing.0"),
// p: {
// margin: theme("spacing.0"),
// padding: theme("spacing.2"),
// },
// },
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
],
}