Skip to content
Theming · 23 built-in themes

One CSS file, a whole new look

NoteMark reads Typora themes directly. Drop a .css file into the themes folder and headings, body text, code blocks and tables all change together; picking one re-renders the page instantly.

Typora theme compatibleApplies on selection23 built in

Theme folder ​

Theme files live in %LocalAppData%\NoteMark\themes\; each .css file is one theme. Use the ribbon item "Themes → Open theme folder…" to get there directly.

__global.css
Global overrides (feature toggle variables) with lower priority than a concrete theme.
config.txt
Records the currently selected theme, for example theme=GitHub.css.

Built-in themes ​

DefaultGitHubGitHub DarkNewsprintNightVueDraculaOne DarkNordCatppuccin MochaTokyo NightSolarized LightSolarized DarkNotionGruvbox LightSakuraInk WashCeladonMapleNight MooringBurgundyAmberEmerald
Missing themes are restored automatically on startup, but your edited files with the same name are never overwritten. "Default" always sits first in the menu; the rest are sorted by name.

Creating a theme ​

1
Prepare a CSS file
Create a .css file in the theme folder. Copy any built-in theme as a starting point, or drop in an existing Typora theme.
2
Select and apply
Pick it from the ribbon "Themes" menu and it applies to the current page immediately (re-rendering the whole page). If it does not appear, click "Reload themes" to rescan.

NoteMark parses the following CSS rules:

CSS ruleApplied to
bodyBody font, text colour, line height
h1 ~ h6Heading size, colour and weight
blockquoteQuote border, background, text colour
.md-fences / pre / codeCode font, size and background
table thTable header background
#writeContent width (converted to table column widths)
.hljs-*Syntax highlighting palette (keyword / string / comment / number and so on)

For highlighting colours you can copy a whole set of .hljs-* rules from highlight.js official styles and paste it at the end of the theme file.

:root feature variables ​

VariableDefaultDescription
--enable-latex-to-imagetrueRender LaTeX formulas as images (text is kept when false)
--enable-code-line-numberfalseShow line numbers in code blocks
--mermaid-themedefaultDiagram palette: default / dark / neutral / forest
--enable-code-borderfalseShow grid lines in code blocks; borderless (default) blocks shade the full width from --code-bg, same as quote blocks
--render-code-style—Legacy alias: table ≙ --enable-code-border: true, plain ≙ --enable-code-border: false (superseded by --enable-code-border, which wins when both are set)
--code-bg / --code-fgFollows theme CSSCode background / text colour (overrides CSS rules)
--quote-bgFollows theme CSSQuote block background
--table-header-bgFollows theme CSSTable header background
--src-bg / --src-fg#FDFDFD / #444444Source view background / text colour
--block-width-margin—Table column width correction (px)

Configuration priority ​

1
Built-in defaultsBase typography when no theme is specified.
2
Theme :root variablesStyle variables shipped with the theme file.
3
__global.css feature togglesGlobal overrides, which take priority over the theme.
4
config.txt explicit overridesFor example code-line-numbers=true, the highest priority.

Feature toggles (--enable-latex-to-image, --enable-code-line-number, --enable-code-border) follow __global.css: the same variable inside a theme file (such as --enable-code-line-number: false in the built-in themes) does not override the global setting.

How a theme takes effect ​

__global.css is merged with the selected theme's CSS and parsed by CssSheet.Parse; TyporaStyle extracts a style snapshot and StyleSet builds OneNote QuickStyleDefs that are applied to headings, quotes, code blocks and other blocks. Selecting a theme takes effect immediately (re-rendering the page); "Reload themes" rescans the folder, so CSS edits take effect the same way.

Native Markdown support for OneNote