Skip to content

Instantly share code, notes, and snippets.

@TaimurAkmal
Created February 18, 2020 12:53
Show Gist options
  • Select an option

  • Save TaimurAkmal/f1f297704d2bb9ddf49ff9ee158a0f16 to your computer and use it in GitHub Desktop.

Select an option

Save TaimurAkmal/f1f297704d2bb9ddf49ff9ee158a0f16 to your computer and use it in GitHub Desktop.
Dark Mode Theme for Python IDLE
[IDLE TA]
normal-foreground= #F8F8F2
normal-background= #1f1f1f
keyword-foreground= #F92672
keyword-background= #1f1f1f
builtin-foreground= #66D9EF
builtin-background= #1f1f1f
comment-foreground= #75715E
comment-background= #1f1f1f
string-foreground= #FD971F
string-background= #1f1f1f
definition-foreground= #A6E22E
definition-background= #1f1f1f
hilite-foreground= #F8F8F2
hilite-background= gray
break-foreground= black
break-background= #ffff55
hit-foreground= #F8F8F2
hit-background= #171812
error-foreground= #ff3338
error-background= #1f1f1f
cursor-foreground= #F8F8F2
stdout-foreground= #DDDDDD
stdout-background= #1f1f1f
stderr-foreground= #ff3338
stderr-background= #1f1f1f
console-foreground= #75715E
@TaimurAkmal
Copy link
Author

A complete Dark Mode Theme for Python IDLE. Colors based on Google's Dark Mode Grey and Monokai Theme.

To install:

Step 1 - Copy the above code at the end of your Python "config-highlights.def" file after opening it in a text editor and save it!

For default Python 3.8 Installation, this is the directory where the file is located:

%USERPROFILE%\AppData\Local\Programs\Python\Python38\Lib\idlelib

Step 2 - Open up your IDLE.

Step 3 - Click on Options > Configure IDLE > Highlights.

Step 4 - In the Highlight Themes section, click on the Theme selector button and select IDLE TA from drop-down.

Step 5 - Dark mode ftw!

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