Customize themes in CotEditor

CotEditor’s theme is a collection of settings about the editor’s coloring.

Theme setting view

Customize a theme

To select a theme to customize:

  1. Choose CotEditor > Settings.
  2. Select the Appearances pane.
  3. Select the theme you want to customize from the theme list.

To use an existing theme as a guide for creating your own, choose Duplicate in the action button (gear icon) instead. You can also export your themes and import themes that are created by others.

To customize a theme:

  1. Click a color well in the theme editor.
  2. Select a color in the Color window.

The change will be saved automatically and applied immediately.

If you check the “Use system color” option, the color specified in the system (System Settings > Appearance) will be used for the background of the selected text in the editor, instead of a fixed color.

Switch theme according to the appearance

A pair of themes with the same theme name but “ (Dark)” (with a space) at the end of one of them will automatically switch themes depending on the window’s appearance. In this case, the theme name for light mode can be either the theme name only or the theme name with “ (Light)” at the end. For example, bundled “Anura” and “Anura (Dark)” themes are a pair. So, “Anura” is used when the appearance is light, and “Anura (Dark)” is used in Dark Mode.

However, if you select a theme opposite to the appearance as the default theme, that theme will take precedence regardless of the appearance.

File format of CotEditor themes

CotEditor theme file must have extension .cottheme and its format is based on JSON with hexadecimal color values with a # symbol.

See also