Skip to content

Instantly share code, notes, and snippets.

@joar
Last active July 25, 2019 16:14
Show Gist options
  • Select an option

  • Save joar/27cbd00f3514e4636bd2 to your computer and use it in GitHub Desktop.

Select an option

Save joar/27cbd00f3514e4636bd2 to your computer and use it in GitHub Desktop.
Solarized Light - Clear Comments

Solarized Light - Clear Comments

Code comments are usually put in the code to clarify something or specify something that is not obvious based on the code itself, right?

In that case, you want to be able to read the comments. that means the comments shouldn't be a few shades away from the background color.

Fixing it

I'm using IntelliJ/PyCharm the Solarized color scheme for IntelliJ. With that as a starting point I chose the "Base 03" tone from Solarized as my comment foreground color.

To correct the comment color:

  1. Go to File -> Settings -> Editor -> Colors & Fonts -> (Python|JavaScript|$LANG)
  2. (Optionally) Select "Save As..." to save your improved color scheme as something other than Solarized Light.
  3. For each "Comment"/"Line Comment"/"Docstring" or similar:
    1. Uncheck "Italic" and "Bold"
    2. Click the swatch next to "Foreground" and enter "002b36" in the hexadecimal RGB input

Example:

solarized clear comments

@treszkai
Copy link
Copy Markdown

I went as far as changing the color to red (#dc322f), which has the additional benefit of being the same for Solarized dark and light.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment