Files
simple-react-app-kit/packages/lexical/src/theme.ts
T

31 lines
925 B
TypeScript
Raw Normal View History

export const lexicalTheme = {
heading: {
h1: "mt-5 mb-3 text-2xl font-semibold",
h2: "mt-4 mb-2 text-xl font-semibold",
h3: "mt-3 mb-2 text-lg font-semibold",
},
hr: "my-4 border-t",
link: "text-primary underline underline-offset-2",
list: {
checklist: "lexical-checklist",
listitem: "my-1",
listitemChecked: "lexical-checklist-item lexical-checklist-item-checked",
listitemUnchecked:
"lexical-checklist-item lexical-checklist-item-unchecked",
nested: { listitem: "list-none" },
ol: "list-decimal pl-6",
ul: "list-disc pl-6",
},
paragraph: "my-2",
quote: "my-3 border-l-4 pl-4 italic text-muted-foreground",
text: {
bold: "font-bold",
italic: "italic",
strikethrough: "line-through",
subscript: "align-sub text-xs",
superscript: "align-super text-xs",
underline: "underline",
underlineStrikethrough: "underline line-through",
},
}