Solarized Light and Dark themes for current versions of Xcode, made to switch with the macOS appearance.
Xcode keeps one theme for Light mode and one for Dark mode, and changes between them when macOS does. Install both and Xcode follows the system with no extra tools.
Each theme comes in two formats:
.xcworkspacecolorthemefor Xcode 27 and later, which introduced a new theme format. Using it avoids Xcode's "legacy format" import and its colour conversion..xccolorthemefor Xcode 26 and earlier.
Both show Solarized's exact colours. Xcode reads .xccolortheme colours as Generic RGB (gamma 1.8) rather than sRGB, which makes most Solarized ports for Xcode look lighter than Solarized elsewhere. These files are converted so they don't.
git clone https://github.com/JCook21/solarized-xcode.git
cd solarized-xcode
./install.sh --selectinstall.sh copies the format that suits the installed Xcode into ~/Library/Developer/Xcode/UserData/FontAndColorThemes/.
- Xcode 27 and later: choose the themes in Xcode › Settings › Appearance, Solarized Light for Light and Solarized Dark for Dark.
--selectcan't do this yet. - Xcode 26 and earlier:
--selectmakes them Xcode's light and dark themes. Quit Xcode first: Xcode saves its settings when it quits and would undo the change. Without--select, pick them in Xcode › Settings › Themes, once in each mode.
In .xccolortheme, every setting in Xcode's own Default (Light) and Default (Dark) themes:
- the source editor: all syntax colours, the current line, the selection, the cursor and invisible characters
- the debug console
- rendered documentation comments
- scrollbar markers for errors, warnings, breakpoints and changes
In .xcworkspacecolortheme, the background, the two palette colours Xcode 27 builds its other colours from, and every kind of source text Xcode 27 lists, including regular expressions. Xcode 27 themes don't store fonts; set those in Settings › Appearance.
Xcode's window around the editor (the navigator, inspectors and toolbar) follows the macOS appearance and can't be themed.
The two themes use the same accents on swapped base tones, as Solarized intends.
| Element | Colour |
|---|---|
| Background | base03 (dark), base3 (light) |
| Text | base0 (dark), base00 (light) |
| Comments | base01 (dark), base1 (light) |
| Current line, documentation background | base02 (dark), base2 (light) |
Doc comment keywords, MARKs, variables |
base1 (dark), base01 (light) |
| Keywords | green |
| Strings and characters | cyan |
| Regular expressions (Xcode 27) | red |
| Numbers | magenta |
| Preprocessor, attributes and macros | orange |
| Types and type declarations | yellow |
| Functions and other declarations | blue |
| Constants and URLs | violet |
| Selection | background blended 25% toward blue |
In .xccolortheme, fonts follow Xcode's defaults: SF Mono at 12 points, a little heavier in the dark theme, where light text on a dark background looks thinner.
The themes are generated. Edit the palette or mapping in generate.py, then run:
python3 generate.py # rewrite themes/
python3 check.py # compare with the installed Xcode's default themes
./install.shcheck.py lists any setting in Xcode's classic default themes that the .xccolortheme files lack. Run it after a new Xcode release adds settings.
MIT. Solarized is by Ethan Schoonover and is also MIT licensed.