-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathprose.js
36 lines (35 loc) · 880 Bytes
/
prose.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
import React from "react";
export default function Prose({ children }) {
const proseClasses = [
"prose",
"prose-lg",
"prose-slate",
"prose-h1:text-4xl",
"prose-h2:text-3xl",
"prose-h1:text-slate-100",
"prose-h1:bg-opacity-50",
"prose-h2:text-slate-100",
"prose-h2:bg-opacity-50",
"prose-h3:mb-2",
"prose-h3:text-2xl",
"prose-h4:text-xl",
"prose-h4:mb-0",
"prose-headings:p-1",
"prose-headings:pl-3",
"prose-headings:-ml-3",
"prose-a:underline",
"prose-strong:font-semibold",
"dark:prose-invert",
"prose-p:text-slate-100",
"prose-ul:text-slate-100",
"prose-ul:my-6",
"prose-ol:text-slate-100",
"prose-ol:my-6",
"prose-li:my-0",
"prose-th:pl-0",
"prose-th:pb-3",
"prose-td:pl-0",
"pb-12",
];
return <div className={proseClasses.join(" ")}>{children}</div>;
}