feat(markdown): add MarkdownEditView with lazy BlockNote editor + dark theme styles

This commit is contained in:
Hiren Kangad
2026-03-13 11:21:27 +05:30
parent 10135463b1
commit 2cede1ae95
2 changed files with 148 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// Shared style constants + BlockNote dark-theme CSS string for injection
export const MD_BLOCKNOTE_DARK_CSS = `
.bn-container[data-theme="dark"] {
--bn-colors-editor-background: #232336;
--bn-colors-editor-text: #e0e0e0;
--bn-colors-menu-background: #2a2a42;
--bn-colors-menu-text: #e0e0e0;
--bn-colors-tooltip-background: #333;
--bn-colors-tooltip-text: #ccc;
--bn-colors-hovered-background: rgba(121,80,242,0.15);
--bn-colors-selected-background: rgba(121,80,242,0.25);
--bn-colors-side-menu: #666;
--bn-font-family: Inter, system-ui, sans-serif;
}
`;