Skip to content

mathworks/matlab-theme-extensions

Repository files navigation

MATLAB Theme Extensions

View MATLAB Theme Extensions on File Exchange Open in MATLAB Online

MATLAB Theme Extensions enhance MATLAB’s built-in themes by enabling users to create, import, and share custom color themes. This extension allows you to personalize your MATLAB environment and easily switch between different color schemes.

Features

  1. Import custom color schemes from JSON files stored under the schemes folder (e.g., the Cobalt scheme):
import_scheme('schemes/cobalt.json');
  1. Export your current color settings (including with the MATLAB Theme) to a JSON file:
export_scheme('exampleCustomColors.json');
  1. Reset color settings by importing the default color schemes schemes/matlab-light.json and schemes/matlab-dark.json.

The project works by customizing colors on top of the existing MATLAB Themes (either Light or Dark).

Scheme File Structure

Scheme files are JSON documents that must include a DesktopTheme field and follow the structure of the provided template.json in this project. Customizable fields include:

  • Background Color
  • Text Color
  • MATLAB Syntax Highlighting Colors
  • Output Colors
  • Programming Tools
  • Syntax Highlighting for other languages such as C, Java, HTML, etc.
  • Current Line Highlight
  • Right-hand Text limit line
  • Boolean fields to enable or disable specific customizations

The fields in the JSON file are inspired by MATLAB's Settings panel (previously Preference Panel), see MATLAB Toolstrip → Home → Settings

MathWorks Products (https://www.mathworks.com)

MATLAB R2025a or newer

License

See LICENSE.

Contributing

If you have suggestions for color schemes or improvements, please create an issue or pull request. See CONTRIBUTING.

Community Support

MATLAB Central

Copyright 2025 The MathWorks, Inc.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published