/intellij-colors-solarized

Solarized Colorscheme for IntelliJ IDEA

Primary LanguageShell

Solarized Colorscheme for IntelliJ IDEA

Original Solarized color scheme developed by Ethan Schoonover es@ethanschoonover.com

Adapted for IntelliJ IDEA by:
Adam Vandenberg flangy@gmail.com
Johan Kaving johan@kaving.se

See the Solarized homepage for screenshots, details and color scheme versions for Vim, Mutt, popular terminal emulators and other applications. These versions can also be found in the main Solarized repository on GitHub.

Unfortunately the IntelliJ subtree in the main repository has not been updated and is out-of-sync with this repository.

For IntelliJ this IntelliJ-only repository is therefore recommended over the main repository.

Status

These color scheme files are primarily tested with IntelliJ IDEA 12 Community Edition. They might work with other versions of IntelliJ IDEA as well as other JetBrains tools (e.g. PhpStorm and PyCharm).

This table lists the languages (and other sections under Preferences | Editor | Colors & Fonts) for which the syntax highlighting has been adapted to the Solarized color scheme:

Language/Section Supported Note
Android Logcat Yes
Apache Config Yes
BEMHTML Yes
Bash Yes (BashSupport 1.1beta14 or later)
Buildout config Yes
CMD Yes
CSS Yes
Clojure Templates Yes
CoffeeScript Yes
Custom Templates Yes
Dart Yes
Debugger Yes
Diff Yes
Django/Jinja2 Template Yes
Erlang Yes
File Status No
General Yes
Gherkin (Cucumber) Yes
Google Go Yes
GQL Yes
Groovy Yes
HAML Yes
HTML Yes
Haskell Yes
JFlex Yes
Java Yes
JavaScript Yes
JSP Yes
Jodd props file Yes
Kotlin Yes
LESS Yes
Localization file Yes
Lua Yes
Mako Template Yes
Markdown Yes
Objective-C Yes
PHP Yes
Properties Yes
Python Yes
ReST file Yes
RegExp Yes
SASS Yes
SQL Yes
Scala Yes
Tea Yes
Twig Yes
XML Yes
XPath Yes
YAML Yes

Installation

Option 1: Install using "Import Settings..."

  1. Go to File | Import Settings... and specify the intellij-colors-solarized directory. Click OK in the dialog that appears.

  2. Restart IntelliJ IDEA

  3. Go to Preferences | Editor | Colors & Fonts and select one of the new color themes.

Option 2: Manual installation

  1. Copy Solarized Dark.xml and Solarized Light.xml to your IntelliJ IDEA preferences color directory. The directory varies, depending on which JetBrains IDE you are using. It is typically in:

    Mac OS X

    • ~/Library/Preferences/IntelliJIdea12/colors (IntelliJ IDEA 12 Ultimate Edition)
    • ~/Library/Preferences/IdeaIC12/colors (IntelliJ IDEA 12 Community Edition),
    • ~/Library/Preferences/WebIDE50/colors (PHPStorm 5.0).

    Windows

    • Documents and Settings/<user>/.IdeaIC12/config/colors (IntelliJ IDEA 12 Community Edition)
  2. Restart IntelliJ IDEA

  3. Go to Preferences | Editor | Colors & Fonts and select one of the new color themes.

Note About Fonts

Unfortunately, font settings are included in the color settings files. You should probably modify these in Preferences | Editor | Colors & Fonts | Font after adding the color schemes to your IntelliJ IDEA installation.

Note About Committing Changes

If you want to commit updates to the XML color scheme files, make sure to run the buildjar.sh or buildjar.bat script before committing to generate an updated settings.jar file as well. The scripts have been tested on OS X and Windows, on other operating systems you're on your own.