Obsidian Theme for IDLE

I attempt to use dark backgrounds in all of my editors. I find it much easier on my eyes when I’m staring at code all day long or hacking on something early in the morning. I generally use something close to my favorite color scheme on Notepad++, Obsidian, which I believe is based on Obsidian Coast in KDE.

With that said, Python’s IDLE application is harshly bright compared to my normal editors. After a quick Google search I found only a few themes available for IDLE, so I created IDLE highlighting settings that mimic my favorite color scheme. Here is the first draft for all to enjoy. You can also find the latest updates in this Gist repo. Installation is easy: just copy and paste these settings into your .idlerc\config-highlight.cfg file in your home directory (creating as necessary), then choose it in your Highlighting settings in IDLE by selecting “Use Custom Theme” and “Obsidian” from the dropdown.

Screenshot of Obsidian for IDLE

definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #293134
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
cursor-foreground = #E0E2E4
break-background = #293134
comment-foreground = #66747B
hilite-background = #2F393C
hilite-foreground = #E0E2E4
definition-background = #293134
stderr-background = #293134
hit-background = #000000
console-foreground = #E0E2E4
normal-background = #293134
builtin-foreground = #E0E2E4
stdout-background = #293134
console-background = #293134
stderr-foreground = #FB0000
keyword-background = #293134
string-foreground = #EC7600
break-foreground = #E0E2E4
error-background = #293134

7 Comments on “Obsidian Theme for IDLE”

  1. Sudo says:

    In windows,I found editing the default themes “C:\Python27\Lib\idlelib\config-highlight.def”
    works fine.

  2. gsudhan says:

    In windows,I found editing the default themes “C:\Python27\Lib\idlelib\config-highlight.def”
    works fine.

  3. diek007 says:

    Thanks for the help, this is one of my favorite themes. I just started using idle. One question, when using the debugger and stepping through, the current line is not visible because of the grey. I cannot figure out which color setting controls the current line when debugging. If you could help I would appreciate it. Thanks.

  4. Antonio says:

    Thanks for your work!

  5. STARLiGHT says:


  6. Rob says:

    Thank you for this, I’m also a big fan of the Notepad++ Obsidian theme and couldn’t deal with the harsh light from IDLE.

  7. Aaron says:

    Thank you and thank you gsudhan

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.