Created 2018-10-22 Mon 12:35

April 21, 2021 ยท View on GitHub

#+TITLE: Color Schemes for ConEmu #+AUTHOR: Joon Ro This repo originally started as a place to share my favorite color schemes that I ported from various sources to [[https://conemu.github.io/][ConEmu]]. A lot of recently added themes and improvements are from various contributors (thanks a lot!).

I started porting color schemes manually because I found that automatically ported color schemes generally do not look good, because in many cases two programs have inconsistencies in items for color schemes. So, I try to manually choose colors to get color schemes as consistent as possible to the original.

Note that most of the [[screenshots.org][screenshots]] shown here are taken with the prompt customized with [[https://github.com/dahlbyk/posh-git][posh-git]] and the =Get-ChildItem= with [[https://github.com/joonro/Get-ChildItemColor][Get-ChildItemColor]]. See this [[http://joonro.github.io/blog/posts/powershell-customizations.html][blog post]] for my PowerShell customizations.

My current favorites are =material-theme (Emacs) light= and =One Dark=.

  • Examples
  • Color Schemes List For all screenshots, see [[screenshots.org][screenshots]]
  • [[screenshots.org#atom-one][Atom One]] (light & dark)

  • [[screenshots.org#ayu][ayu]] (Light, Mirage, & Dark)

  • [[screenshots.org#base16][Base16]]

    • Ocean (dark)
    • Railscasts (light and dark)
  • [[screenshots.org#chalk][Chalk]]

  • [[screenshots.org#dracula][Dracula]]

  • [[screenshots.org#gruvbox][gruvbox]] (light & dark)

  • Material

    • [[screenshots.org#material-theme-emacs-light][material-theme (Emacs)]] (light)
    • [[screenshots.org#material-theme-sublime-darker][material-theme (Sublime)]] (darker)
  • [[screenshots.org#materialshell][Materialshell]] (Dark & Oceanic)

  • [[screenshots.org#moe-theme][moe-theme]] (light & dark)

  • [[screenshots.org#monokai][Monokai]]

  • [[screenshots.org#nord][Nord]]

  • [[screenshots.org#oceans16-dark][Oceans16]] (dark)

  • [[screenshots.org#rusty][Rusty]]

  • [[screenshots.org#solarized][Solarized]] (light and dark)

  • [[screenshots.org#spacemacs-dark][Spacemacs]] (dark)

  • [[screenshots.org#tango][Tango]] (dark)

  • [[screenshots.org#xfce4-terminal][xfce4-terminal]] (white on black)

  • How to Install ** Use =Install-ConEmuTheme.ps1= PowerShell script.
  • Use =Install-ConEmuTheme.ps1= PowerShell script. First, the script will always create a backup of your config file as =ConEmu.backup.xml= prior to doing anything else. It's got two operation modes:

    1. To add a theme to your config file: #+BEGIN_SRC ps1 .\Install-ConEmuTheme.ps1 [-ConfigPath Path] -Operation Add -ThemePathOrName themes\oceans16-dark.xml #+END_SRC
    2. To remove a theme from your config file: #+BEGIN_SRC ps1 .\Install-ConEmuTheme.ps1 [-ConfigPath Path] -Operation Remove -ThemePathOrName "Oceans16 Dark" #+END_SRC
  • Note that -ConfigPath argument is optional if your =ConEmu.xml= is located at the default location (=C:\Users\You\AppData\Roaming\ConEmu.xml=).

  • To add all the themes included in this repo, run the following in a powershell prompt: #+BEGIN_SRC ps1 @(Get-ChildItem -Recurse -Filter *.xml ) | %{.\Install-ConEmuTheme.ps1 -Operation Add -ThemePathOrName $_.FullName} #+END_SRC

** Manually add color schemes and modify the =ConEmu.xml= file:

  1. Open =ConEmu.xml=. Usually it is at =\AppData\Roaming=, where == is your home directory (=C:\Users\UserName=).

  2. Paste the color scheme at the end of palette settings part. It starts with the following: #+BEGIN_SRC xml #+END_SRC

  3. If you do not have any custom color scheme, the xml key is not there. In ConEmu, go to =Settings= -> =Feature= -> =Colors= and generate a custom color theme by click on =Save= button and specify any name. Then =Colors= key will be automatically generated in your =ConEmu.xml=. You can overwrite it when you add new themes.

  4. Update the palette number (key name =PaletteX=) accordingly. For example, if you have 1 custom color palette already, it should be =Palette2= for the new one: #+BEGIN_SRC xml #+END_SRC

  5. Make sure to increase the value for key name =Count= under key =Colors= as well. It should equal to the total number of pallets you have:

    #+BEGIN_SRC xml #+END_SRC

  6. For example, the =Colors= part of your modified =ConEmu.xml= should look like this: #+BEGIN_SRC xml ... ...
    #+END_SRC

  • How to Contribute See [[Template.xml]] for the template for color schemes with the default colors. In general, programs (such as =git=) uses colors through 0 - 8, (see the template for their uses). I decided to use git and PowerShell as the main targets, so please try to match your colors to the usage of those applications.

Also, make sure that all the color options set to =Auto= to get correct highlighting:

[[file:./screenshots/ConEmu_Color_Options.png]]

  • Changelog ** April 2021