Skip to the content.

Installing, creating, and modifying themes

Use a JSON theme file to customize colors for light and dark appearances and, optionally, choose dates when your theme is selected automatically.

Installing themes

Download MFCMAPI.themes.<version>.zip from the release page and extract it. The package works with both 32-bit and 64-bit MFCMAPI and contains a Themes directory with the provided themes and this guide.

You can also use this directory from a source checkout, or put your own theme .json files together in a directory. Theme files are not loaded by default.

  1. Open Tools > Themes and choose the extracted Themes directory, or the directory containing your own theme files.
  2. Enable color themes and select a theme.
  3. After adding or editing files, click Reload themes.

If a file cannot be loaded, the Themes dialog shows its path and error details. Correct the reported field or file problem, then reload. Other valid files still load.

Keep theme files directly in the chosen directory, not in subdirectories. Ctrl+Shift+T selects the next theme; Ctrl+Shift+R selects the previous theme. Both wrap through the list and turn scheduling off. Ctrl+Shift+D toggles light/dark appearance.

Writing a theme

Copy an existing theme, such as Halloween, as a starting point. Remove color entries you do not want to customize; omitted entries use Standard.

  1. Copy an example to a new .json file, saved as UTF-8.
  2. For a new theme, give it a unique id and your own display name. When modifying an existing theme, keep its id.
  3. Edit the colors in both the light and dark palettes.
  4. Change the schedule, or remove it for a manual-only theme.
  5. In Tools > Themes, choose the directory containing your file and enable color themes. Select your theme to try it.

After editing a file, click Reload themes to see your changes. Keep your files directly in the chosen directory, not in subdirectories. Use Ctrl+Shift+D to check both light and dark appearances.

Theme information

Keep schemaVersion set to 1 and use the field names exactly as shown in the examples. JSON field names and theme IDs are case-sensitive.

Field Meaning
id Required unique identifier, such as my.spring. Keep it unchanged when updating your theme. Do not reuse a built-in theme’s ID.
name Required display name shown in the theme list.
colors Required light and dark objects. Include only the color entries you want to customize.
statusBar Optional gradient, bands, or ribbon for the status bar.
schedule Optional dates when your theme should be selected automatically.

Colors

Each palette role is an object:

{ "value": "DarkGreen", "system": -1, "highContrast": 8 }

Omitted color entries inherit from Standard’s matching light or dark palette, including its system-color and High Contrast mappings. Use an empty object ({}) to inherit an entire palette. You can omit the bitmap and Test* entries. An entry you supply still needs value and, for visible colors, highContrast; individual fields within that entry are not inherited.

Colors never inherit from another role, even if two Standard entries happen to have identical values. Set each role you want to change explicitly.

Choosing color roles

Edit these roles in each appearance’s palette. Change foreground and background pairs together so text and indicators remain readable.

What you want to change Roles
Main content Background, Text
Read-only fields BackgroundReadOnly, TextReadOnly
Disabled text TextDisabled
Selected list rows and enabled menu items SelectedBackground, GlowText
Hovered rows GlowBackground, GlowText
Focused and unfocused frames FrameSelected, FrameUnselected
Normal arrows and notification accents Arrow, Glow
Solid status bar and message text Status, StatusText
Pane headings PaneHeaderBackground, PaneHeaderText
Text highlights TextHighlightBackground, TextHighlight

GlowText is shared by selection and hover, so check it against both fills. Tree notification markers use the row’s text color when selected or hovered.

Title bars, column headers, and menus

These surfaces have independent roles in each palette:

Surface Roles
Title bar TitleBarBackground, TitleBarText, TitleBarButton, TitleBarButtonHover
Column headers ColumnHeaderBackground, ColumnHeaderText, ColumnHeaderArrow
Menu bar and popup menus MenuBackground, MenuText, MenuTextDisabled

TitleBarButton colors the close, maximize/restore, and minimize glyphs. Highlighted caption buttons use TitleBarButtonHover on GlowBackground. Column-header colors cover both the labeled columns and unused header area. Use MenuGutter to color the popup icon/checkmark gutter. Selected menu items use the selection roles described below.

Omitting any of these roles inherits only that role’s Standard entry, not the theme’s Background, Text, Arrow, or any other customized color. Title-bar and status-bar colors can be chosen independently. Submenu arrows use the menu item’s text color, so check them in normal, selected, and disabled states.

Optional multicolor status bar

To add a horizontal gradient, include a top-level statusBar object (not inside colors):

"statusBar": {
  "style": "gradient",
  "colors": ["#E40303", "#FF8C00", "#FFED00", "#008026", "#004DFF", "#750787"]
}

Change style and reload themes to compare:

Colors are explicit CSS names or six-digit hex values, ordered left to right. Up to 16 colors are accepted. A single color produces a solid fill; an empty array disables the decoration. Colors are shared between appearances, and High Contrast disables the decoration and outlined text treatment.

Full-height gradients and bands draw StatusText with a one-pixel StatusTextOutline, without solid backplates. The outline inherits Standard’s black entry when omitted. Choose text and outline colors that contrast with each other and remain readable across the whole fill in both appearances, not just at the color stops.

Omitting the decoration inherits Standard’s undecorated status bar, never colors from another role. The original top-level statusRibbon array is still accepted as shorthand for ribbon; do not specify both forms.

Disabled menu items

Menus use different palette roles for enabled and disabled commands. MenuText is the enabled command color; MenuTextDisabled is used when a command is disabled. When the pointer highlights a command, enabled text uses GlowText on SelectedBackground, while a disabled command uses TextDisabledSelected on DisabledSelectedBackground with a one-pixel DisabledSelectedBorder outline.

Disabled commands should be recognizable as disabled, but still easy to read. Choose disabled colors that are visibly different from their enabled counterparts; do not just repeat MenuText or GlowText. For example:

{
  "MenuText": { "value": "#202020", "highContrast": 8 },
  "MenuTextDisabled": { "value": "#606060", "highContrast": 17 },
  "GlowText": { "value": "#FFFFFF", "highContrast": 14 },
  "TextDisabledSelected": { "value": "#D2D2D2", "highContrast": 17 }
}

These are role examples, not a complete palette. Choose values based on your own MenuBackground, SelectedBackground, and DisabledSelectedBackground colors and check both appearances.

These are recommendations for custom themes, not restrictions imposed when a theme file is loaded. Contrast is the ratio between two colors, from 1:1 (identical) to 21:1 (black and white). Check every pairing in both palettes.

Low contrast or nearly identical enabled and disabled colors can make text difficult to read or state changes hard to notice. Check these states in the theme preview and in actual controls after reloading your theme.

System-color mappings

If you change system-color mappings, use these numbers, not RGB values:

Number Windows system color
5 Window background
8 Window text
13 Selection background
14 Selection text
15 Button background
17 Disabled text
18 Button text

Other Windows system-color numbers from 0 to 31 are accepted except 25. Visible color entries require a highContrast mapping; the bitmap and Test* entries do not.

Schedules

Add a top-level schedule to select your theme during an annual date range. Omit it for a manual-only theme.

"schedule": {
  "kind": "dateRange",
  "start": "10-25",
  "end": "10-31",
  "priority": 10,
  "seasonal": false
}

Enable Use scheduled theme in the Themes dialog to use these dates. Selecting a theme yourself turns scheduling off.

Fixing errors

If your file appears as in error, select it and read Theme file errors. Check for invalid JSON, misspelled field or color names, incomplete color entries, or a duplicate ID. Fix the file and click Reload themes.