Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

Tune editor body typography

tianma368ab2af9ea8
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 3ce1803b..cf5f4745 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -25,6 +25,8 @@
--brand-green-800-rgb: 0 92 25;
--brand-green-900-rgb: 0 67 18;
--brand-green-950-rgb: 0 43 11;
+ --editor-body-font-size: 0.9375rem;
+ --editor-body-line-height: 1.75;
--card: 0 0% 100%;
--card-foreground: 224 71% 4%;
@@ -87,6 +89,8 @@ textarea {
}
.ProseMirror {
+ font-size: var(--editor-body-font-size);
+ line-height: var(--editor-body-line-height);
min-height: 100%;
outline: none;
padding: 24px 28px 56px;
@@ -119,7 +123,7 @@ textarea {
}
.ProseMirror p {
- line-height: 1.8;
+ line-height: var(--editor-body-line-height);
margin: 0 0 0.95rem;
}