TIP: This feature requires Typora later than 0.9.12 on Windows or 0.9.9.5.1 on macOS.
To open Typora’s theme folder in Finder/Explorer., open the preference panel in the Appearance section, click the “Open Theme Folder” button. under section “Appearance”.
You can add your custom theme here. If you want to find, install or write themes, see the About Themes page.
But you may only want to modify CSS like changing font or increase writing area, and apply it to all themes or just current theme without writing a whole new theme file. This section shows you how to do this.
Typora will load CSS files in following order:
base.user.css
under theme folder{current-theme}.user.css
under theme folder.You can create base.user.css
and {current-theme}.user.css
under the theme folder if they do not exist.
If you want to change CSS styles, and apply it to all themes, you should modify base.user.css
and append your own CSS, so whatever theme is selected, your CSS style will still be loaded and applied.
If you want to modify some CSS for a specific theme, for instance “Newsprint”, you can create newsprint.user.css
and append the CSS you want. The reasons we do not recommend you modify the theme file directly are:
(If you write your own CSS theme, then modifying it directly is OK.)
Note: Filenames are case-sensitive. The
{current-theme}
in{current-theme}.user.css
must be the same as the filename part of the current theme. For example, the CSS file for “GitHub” theme isgithub.css
, so the filename part is “github” not “Github”.
You can open Chrome/Safari DevTools to debug element styles.
Help
-> Enable Debug
menu item, then right click anywhere in Typora’s hybrid edit view, then click “Inspect Elements” from context menu.View
-> Toggle DevTools
menu item.