updated 2026-11-26·3 min read
Editor Variables
CSS custom properties and editor styling classes for TipTap/ProseMirror canvas, selection, heading scales, code blocks, wikilinks, and folding controls.
CSS variables and class selectors in src/index.css for the TipTap/ProseMirror Live Preview editor, Reading View, markdown typography, links, and folding controls.
1. Document Canvas & Sizing
| Token | Dark Default | Light Default | Description |
|---|
--noether-bg-main | #1c1c1c | #ffffff | Primary editor and reading canvas background. |
--editor-font-size | 16px | 16px | Base editor font size controlled by Appearance > Font size (12px–24px). |
--font-text | var(--font-text-fallback) | var(--font-text-fallback) | Document body font stack (line-height: 1.75 on .ProseMirror / .markdown-prose). |
--noether-hang-indent | Dynamic | Dynamic | Hanging indent offset applied on wrapped list items. |
2. Selection Tokens
| Token | Dark Default | Light Default | Description |
|---|
--noether-selection-bg | #4a4e57 | #e4e4e7 | Selection highlight background inside .ProseMirror and .markdown-prose. |
--noether-selection-text | #ffffff | #09090b | Selected text foreground color. |
3. Headings & Markdown Typography
.ProseMirror and .markdown-prose derive heading sizes directly from --editor-font-size and foreground colors from text tokens:
| Selector | Scale | Color Token |
|---|
h1 | calc(var(--editor-font-size, 16px) * 1.85) | var(--noether-text-primary) |
h2 | calc(var(--editor-font-size, 16px) * 1.45) | var(--noether-text-primary) |
h3 | calc(var(--editor-font-size, 16px) * 1.2) | var(--noether-text-secondary) (--noether-text-primary in .theme-light) |
h4 | calc(var(--editor-font-size, 16px) * 1.08) | var(--noether-text-secondary) (--noether-text-primary in .theme-light) |
4. Code Blocks & Monospace Syntax
| Token | Dark Default | Light Default | Description |
|---|
--noether-code-bg | #242424 | #f4f4f5 | Inline code background (.theme-light .ProseMirror pre uses var(--noether-bg-input)). |
--noether-code-text | #e5e7eb | #09090b | Monospace code text color. |
--font-monospace | var(--font-monospace-fallback) | var(--font-monospace-fallback) | Monospace stack for code, pre, kbd, and .font-mono. |
5. Wikilinks & Internal References
| Token | Default Value | Description |
|---|
--noether-link-color | var(--noether-accent) | Internal [[Wikilinks]] and external anchors. |
--noether-link-hover | var(--noether-accent-hover, var(--noether-accent)) | Hovered link state. |
--noether-link-visited | var(--noether-accent) | Visited link color (#bc8cff dark / #551a8b light when blue-links mode is enabled). |
--noether-link-decoration-color | var(--noether-border-strong) | Underline decoration color (currentColor when [data-color-link-underline="true"] is set). |
--noether-link-icon-color | var(--noether-text-muted) | Trailing external link icon color (currentColor when [data-color-link-icon="true"] is set). |
6. Folding Gutters & Placeholders
Folding widgets and collapsed ellipsis markers in src/index.css use class selectors and existing text tokens:
| Selector | Styling | Description |
|---|
.noether-fold-btn | #777777 (hover: #dcddde) | Heading and list fold chevron button. |
.noether-fold-ellipsis / .noether-fold-placeholder | var(--noether-text-muted, #777777) (hover: var(--noether-text-primary)) | Collapsed inline ellipsis marker (...). |