This project explains how to install a dark theme in the Arduino IDE.
This theme tries to replicate the popular VSCode theme "One Dark Pro" by binaryify: https://binaryify.github.io/OneDark-Pro/#/
This tutorial is based on the work done by Jeff Thompson: https://create.arduino.cc/projecthub/rahulkhanna/dark-theme-for-arduino-ide-17c001?ref=search&ref_id=theme&offset=0Why This Project Exists
The reason I made this project is because I do not really like the standard color scheme of the Arduino IDE, with green, orange and white. In addition, there are not many alternative themes available either. The dark theme made by Jeff Thompson is good, but I prefer a different color scheme.
For other IDEs and text editors, there are plenty of themes available. And I wanted my Arduino IDE to have the same color scheme as my favorite theme for VSCode, One Dark Pro.Step 1: Downloading the One Dark Arduino theme
Go to https://github.com/konrad91/OneDarkArduino and download and the.zip-file.Step 2: Replace the "Theme" Folder
Go to the directory where Arduino is installed. The default directory is "C:\Program Files (x86)\Arduino\lib". Rename the original "theme" folder for backup. Then drag the "theme" folder from the.zip-file in.Step 3: Change Preferences.txt
Open the preferences.txt file for Arduino. The default location is C:\Users\USERNAME\AppData\Local\Arduino15. To help find it, you can also go into the Arduino IDE->File->Preferences and click the link on the bottom.
Remeber to close the Arduino IDE before editing the preferences.txt!
Change the line that says "editor.font=..." to the following:
"editor.font=Consolas, plain, 14"
This will give the Arduino IDE a font that looks very similar to the One Dark Pro theme.Step 4: Enjoy Your New Dark IDE!
That is all, enjoy the new theme!
Font for preferences.txtXML
editor.font=Consolas, plain, 14