I should mention that the Arduino IDE does support the installation of themes to the sketchbook folder. Although it's a bit more initial effort for people who only want to make some modifications to the stock theme, this is actually far superior in the long run because any modifications you make to the theme in the Arduino IDE installation folder are lost every time you update the IDE, while the theme in the sketchbook folder will not be affected by IDE updates.
You have two options for installing themes to the sketchbook, direct installation or installation as .zip
files.
I'll provide instructions for both options below;
Direct installation
This installation option is best if you are going to use a single custom theme.
- Select File > Preferences from the Arduino IDE menus.
- Take note of the path shown in the "Sketchbook location" field.
This is the location of your "sketchbook folder". - Click the Cancel button.
- Select File > Quit from the Arduino IDE menus.
- Open the sketchbook folder in your file browser.
If you are using Windows, this would be File Explorer (AKA Windows Explorer). - Create a subfolder in your sketchbook folder named
theme
. - Put the theme directly into the
theme
folder you created.
The folder structure should look like this:
<sketchbook folder>
|_ theme
|_ syntax
| |_ etc...
|_ theme.txt
|_ etc...
.zip
file installation
This installation option is best if you want to switch between multiple custom themes, or if you are using a pre-made theme that supports this installation method.
The second option is to put the theme in a .zip
file, then put that in the theme
subfolder of the sketchbook folder.
- Select File > Preferences from the Arduino IDE menus.
- Take note of the path shown in the "Sketchbook location" field.
This is the location of your "sketchbook folder". - Click the Cancel button.
- Select File > Quit from the Arduino IDE menus.
- Open the sketchbook folder in your file browser.
If you are using Windows, this would be File Explorer (AKA Windows Explorer). - Create a subfolder in your sketchbook folder named
theme
. - Put the theme
.zip
file directly into thetheme
folder you created. - Start the Arduino IDE.
- Select File > Preferences from the Arduino IDE menus.
- Select the theme from the File > Preferences > Theme menu.
- Select File > Quit from the Arduino IDE menus.
- Start the Arduino IDE.
The theme you selected from the menu will now be active.
The folder and .zip
file structure should look like this:
<sketchbook folder>
|_ theme
|_ MyCoolTheme.zip
|_ syntax
| |_ etc...
|_ theme.txt
|_ etc...
There is a sort of tricky thing about this installation option. The theme must be in the root of the .zip
file, NOT in a subfolder. Some .zip
utilities make that difficult or even impossible (especially the macOS one), but a Windows user won't have any difficulty:
- Select all the files of the theme in File Explorer.
- Right click on the selected files.
- Select Send to > Compressed (zipped) folder from the context menu.
The awesome thing about this option is it allows you to have multiple themes installed (each in its own .zip
file). You can chose which one you prefer via the "Theme" menu of the Arduino IDE's File > Preferences dialog. This menu will include the option to select the "Default theme", which is the one installed with the IDE.
Let's say you had two themes, one you wanted to show up in the Theme menu as "MyCoolTheme" and another you wanted to show up as "MyOtherCoolTheme", the folder structure should look like this:
<sketchbook folder>
|_ theme
|_ MyCoolTheme.zip
| |_ syntax
| | |_ etc...
| |_ theme.txt
| |_ etc...
|_ MyOtherCoolTheme.zip
|_ syntax
| |_ etc...
|_ theme.txt
|_ etc...