-
Create Xcode custom themes folder:
~/Library/Developer/Xcode/UserData/FontAndColorThemes/
$ mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
-
Download
*.dvtcolortheme
files to this folder. -
Restart Xcode. Gruvbox dark and light themes will appear in Fonts & Colors list in Xcode Preferences.
Alternatively, you can also create symbolic links to your copy of Xcode *.dvtcolortheme
files inside FontAndColorThemes
folder.
For example,
- Clone
gruvbox-contrib
cd gruvbox-contrib/xcode
- Then
ln -s `pwd`/"Gruvbox Dark (SF Mono 11).dvtcolortheme" ~/Library/Developer/Xcode/UserData/FontAndColorThemes/"Gruvbox Dark (SF Mono 11).dvtcolortheme"
If you are using fish shell, you can use this loop,
for file in *
echo $file
ln -s ""(pwd)/$file ~/Library/Developer/Xcode/UserData/FontAndColorThemes/$file""
end
Xcode themes have fonts embedded in them. Follow these steps to change font or font size,
Say you want to use Menlo font with 11.0 pt size.
- Create a copy of
Gruvbox Dark (Inconsolata 14).dvtcolortheme
- Open it in your favorite editor
- Replace all instances of
Inconsolata - 14.0
withMenlo-Regular - 11.0
- Save file and restart Xcode
You can install Inconsolata font using brew cask
. First make sure you have brew
and Cask
installed. Then follow these steps,
brew tap caskroom/fonts
brew cask install font-inconsolata
Xcode themes were generated with the help of following projects,