-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
102 lines (99 loc) · 2.33 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}', './static/**/*.md'],
theme: {
extend: {
fontSize: {
hint: '0.625rem',
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.5rem',
'2xl': '2rem'
},
typography: (theme) => ({
DEFAULT: {
css: {
"p": {
paddingTop: "1rem",
},
"h2 + p": {
paddingTop: "0.5rem"
},
"h3 + p": {
paddingTop: "0"
},
"h2 > code, h3 > code, h4 > code, li > code, p > code, table code, p > em > code, a > code, s > code": {
backgroundColor: theme("colors.slate.200"),
color: theme("colors.slate.900"),
borderRadius: ".25rem",
display: "inline-block",
fontSize: ".825em",
fontStyle: "normal",
fontWeight: 500,
margin: 0,
padding: "0 .2rem",
"&:before, &:after": {
display: "none"
},
},
"a > code": {
textDecoration: "underline"
},
"s > code": {
textDecoration: "line-through"
},
"h2 > code, h3 > code, h4 > code": {
fontWeight: 700,
},
// prose-iframe:* is not supported
iframe: {
aspectRatio: "1 / 1",
borderRadius: "0.5rem",
boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
marginTop: "1rem",
"@media(min-width: 768px)": {
aspectRatio: "16 / 9",
}
},
a: {
transition: "all .2s ease",
'&:hover': {
opacity: theme('opacity.70'),
textDecoration: "none",
}
},
"sup a": {
textDecoration: "none",
"&:hover": {
textDecoration: "underline"
}
},
"footer a": {
wordBreak: "break-all",
},
cite: {
fontStyle: "normal"
},
".hljs-tag, .hljs-keyword, .hljs-built_in, .hljs-params": {
color: theme("colors.slate.500"),
},
".hljs-name, .hljs-attr, .hljs-selector-tag": {
color: theme("colors.emerald.700"),
},
".hljs-comment": {
color: theme("colors.slate.500"),
},
".hljs-title, .hljs-string, .hljs-attribute": {
color: theme("colors.emerald.900"),
},
},
},
}),
}
},
plugins: [
require('@tailwindcss/typography'),
],
};