Skip to content

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

2.4 KB
Raw Blame
/* Font files are registered from editor-body-font-faces.ts so Vite emits
 * desktop-safe asset URLs. These rules only apply the chosen stack.
 * Missing glyphs fall through to the system CJK fonts in that stack.
 * Verified monospace choices also apply to code; formulas retain their own faces.
 */
html[data-editor-body-font] .edgeever-editor .ProseMirror,
html[data-editor-body-font] .edgeever-editor textarea[data-edgeever-mobile-editor="plain-textarea"],
html[data-editor-body-font] .edgeever-mobile-tiptap-content {
  font-family: var(--editor-body-font-family);
  font-synthesis: weight style;
}

html[data-editor-body-font] .edgeever-editor[data-editor-theme] .ProseMirror :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, th, td),
html[data-editor-body-font] .edgeever-mobile-tiptap-content :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, th, td) {
  font-family: var(--editor-body-font-family);
}


/* Explicit monospace choices win over editor themes without restyling math,
 * diagram labels, toolbar controls, or code in the AI sidebar. */
html[data-editor-code-font] .edgeever-editor .ProseMirror :is(code, pre, .edgeever-code-source),
html[data-editor-code-font] .edgeever-editor[data-editor-theme] .ProseMirror :is(code, pre, .edgeever-code-source),
html[data-editor-code-font] .edgeever-mobile-tiptap-content :is(code, pre, .edgeever-code-source),
html[data-editor-code-font] .edgeever-editor textarea[data-edgeever-mobile-editor="plain-textarea"] {
  font-family: var(--editor-code-font-family);
}

/* Interface font is the device chrome. A system note stays on the product
 * sans stack, and a chosen note face still wins above. Themed editors keep
 * their own family. Share pages stay on the sans stack so a viewer's
 * interface font does not restyle the published note. */
html[data-ui-font],
html[data-ui-font] body {
  font-family: var(--ui-font-family);
  font-synthesis: weight style;
}

html[data-ui-font]:not([data-editor-body-font]) .edgeever-editor[data-editor-theme="default"] .ProseMirror,
html[data-ui-font]:not([data-editor-body-font]) .edgeever-editor:not([data-editor-theme]) .ProseMirror,
html[data-ui-font]:not([data-editor-body-font]) .edgeever-editor textarea[data-edgeever-mobile-editor="plain-textarea"],
html[data-ui-font]:not([data-editor-body-font]) .edgeever-mobile-tiptap-content {
  font-family: var(--edgeever-system-font-family);
}

html[data-ui-font] .edgeever-public-share {
  font-family: var(--edgeever-system-font-family);
}