Added a way to add html to content

This commit is contained in:
2023-09-04 00:24:56 +02:00
parent 4f5d822e11
commit a2e9c105ba
10 changed files with 269 additions and 25 deletions

View File

@@ -106,7 +106,7 @@ module.exports = {
DEFAULT: {
css: {
pre: {
color: theme("colors.gray.700"),
color: "var(--primaryColor)",
backgroundColor: theme("colors.gray.100"),
lineHeight: 1.5
},
@@ -157,9 +157,9 @@ module.exports = {
},
dark: {
css: {
color: theme("colors.gray.200"),
color: "var(--primaryColor)",
"[class~=\"lead\"]": { color: theme("colors.gray.400") },
a: { color: theme("colors.gray.100") },
a: { color: "var(--primaryColor)" },
strong: { color: theme("colors.gray.100") },
"ul > li::before": { backgroundColor: theme("colors.gray.700") },
hr: { borderColor: theme("colors.gray.800") },
@@ -177,11 +177,11 @@ module.exports = {
},
"a code": { color: theme("colors.gray.100") },
pre: {
color: theme("colors.gray.200"),
color: "var(--primaryColor)",
backgroundColor: theme("colors.gray.900")
},
thead: {
color: theme("colors.gray.100"),
color: "var(--primaryColor)",
borderBottomColor: theme("colors.gray.700")
},
"tbody tr": { borderBottomColor: theme("colors.gray.800") }
@@ -189,31 +189,31 @@ module.exports = {
},
primary: {
css: {
color: theme("colors.gray.50"),
color: "var(--primaryColor)",
"[class~=\"lead\"]": { color: theme("colors.gray.400") },
a: { color: theme("colors.gray.100") },
strong: { color: theme("colors.gray.100") },
a: { color: "var(--primaryColor)" },
strong: { color: "var(--primaryColor)" },
"ul > li::before": { backgroundColor: theme("colors.gray.700") },
hr: { borderColor: theme("colors.gray.800") },
blockquote: {
color: theme("colors.gray.100"),
borderLeftColor: theme("colors.gray.800")
},
h1: { color: theme("colors.gray.100") },
h2: { color: theme("colors.gray.100") },
h3: { color: theme("colors.gray.100") },
h4: { color: theme("colors.gray.100") },
h1: { color: "var(--primaryColor)" },
h2: { color: "var(--primaryColor)" },
h3: { color: "var(--primaryColor)" },
h4: { color: "var(--primaryColor)" },
code: {
color: theme("colors.gray.100"),
backgroundColor: "rgba(0,0,0,0.15)"
},
"a code": { color: theme("colors.gray.100") },
pre: {
color: theme("colors.gray.200"),
color: "var(--primaryColor)",
backgroundColor: "rgba(0,0,0,0.15)"
},
thead: {
color: theme("colors.gray.100"),
color: "var(--primaryColor)",
borderBottomColor: theme("colors.gray.700")
},
"tbody tr": { borderBottomColor: theme("colors.gray.800") }