├── screenshot.png ├── .github ├── issue_template.md └── pull_request_template.md ├── LICENSE ├── README.md ├── INSTALL.md ├── dracula.xml └── gen_theme.py /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dracula/conemu/HEAD/screenshot.png -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | > If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug. -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | > If you're fixing a UI issue, make sure you take two screenshots. One that shows the actual bug and another that shows how you fixed it. -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016-present Dracula Theme 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dracula for [ConEmu](http://conemu.github.io) 2 | 3 | > A dark theme for [ConEmu](http://conemu.github.io). 4 | 5 | ![Screenshot](./screenshot.png) 6 | 7 | ## Install 8 | 9 | All instructions can be found at [draculatheme.com/conemu](https://draculatheme.com/conemu). 10 | 11 | ## Build 12 | 13 | We provide a theme generating script. Please read `gen_theme.py` if you want 14 | to make some modifications. It will be really easy to change colors in the palette, 15 | and run `python gen_theme.py > themeName.xml` to generate a theme. 16 | 17 | ## Team 18 | 19 | This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/conemu/graphs/contributors). 20 | 21 | | [![Skyler Lee](https://avatars2.githubusercontent.com/u/6789491?v=3&s=70)](https://github.com/skylerlee) | 22 | | -------------------------------------------------------------------------------------------------------- | 23 | | [Skyler Lee](https://github.com/skylerlee) | 24 | 25 | ## Community 26 | 27 | - [Twitter](https://twitter.com/draculatheme) - Best for getting updates about themes and new stuff. 28 | - [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues. 29 | - [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community. 30 | 31 | ## License 32 | 33 | [MIT License](./LICENSE) 34 | -------------------------------------------------------------------------------- /INSTALL.md: -------------------------------------------------------------------------------- 1 | ### [ConEmu](http://conemu.github.io/) 2 | 3 | #### Install using Git 4 | 5 | If you are a git user, you can install the theme and keep up to date by cloning the repo: 6 | 7 | git clone https://github.com/dracula/conemu.git 8 | 9 | #### Install manually 10 | 11 | Download using the [GitHub .zip download](https://github.com/dracula/conemu/archive/master.zip) option and unzip them. 12 | 13 | #### Activating theme 14 | 15 | You have to manually modify the ConEmu config file. 16 | 17 | 1. Open `ConEmu.xml` file. It is in the installation directory of ConEmu or the user directory like `C:\Users\UserName`. 18 | 2. Find the palette definition. It is a xml tag starts with the following code: 19 | 20 | 21 | 22 | 23 | ... 24 | 25 | 26 | ... 27 | 28 | 3. If you don't find the xml above, you may not have any custom color scheme. So open ConEmu `Settings` dialog (Win+Alt+P), and go to `Features -> Colors -> Schemes`, enter a name and click Save, then the palette definition will be generated. Close ConEmu. 29 | 4. Replace the color table in the palette tag with the dracula color table (see `conemu/dracula.xml`, there are 32 color values), save the `ConEmu.xml`. 30 | 5. Reopen ConEmu. 31 | 6. Notice that ConEmu's color scheme may not change in the later version, because the `` is used by ConEmu instead of the `dracula`, you need to go to `Features -> Colors -> Schemes` and switch to `dracula`. 32 | -------------------------------------------------------------------------------- /dracula.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /gen_theme.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | gen_theme 4 | ~~~~~~~~~ 5 | 6 | ConEmu theme generator 7 | 8 | :copyright: (c) 2015 - present by Radmon. 9 | """ 10 | 11 | import re 12 | 13 | # **dracula-theme basic color palette** 14 | # referenced to: `dracula ` 15 | cl_background = "#282a36" 16 | cl_current_line = "#44475a" 17 | cl_selection = "#44475a" 18 | cl_foreground = "#f8f8f2" 19 | cl_comment = "#6272a4" 20 | cl_cyan = "#8be9fd" 21 | cl_green = "#50fa7b" 22 | cl_orange = "#ffb86c" 23 | cl_pink = "#ff79c6" 24 | cl_purple = "#bd93f9" 25 | cl_red = "#ff5555" 26 | cl_yellow = "#f1fa8c" 27 | 28 | # **dracula color scheme** 29 | # I added 4 more colors, because ConEmu needs at least 16 colors. 30 | palette = [ 31 | cl_background, # Black 32 | '#5443bc', # DarkBlue 33 | '#66de3d', # DarkGreen 34 | '#77d6fb', # DarkCyan 35 | '#ee3c3c', # DarkRed 36 | cl_purple, # DarkMagenta 37 | cl_orange, # DarkYellow 38 | cl_foreground, # Gray 39 | cl_selection, # DarkGray 40 | cl_comment, # Blue 41 | cl_green, # Green 42 | cl_cyan, # Cyan 43 | cl_red, # Red 44 | cl_pink, # Magenta 45 | cl_yellow, # Yellow 46 | cl_foreground, # White 47 | 48 | # **default extended colors** 49 | # I leave it unchanged. 50 | '#000000', # Black 51 | '#000080', # DarkBlue 52 | '#008000', # DarkGreen 53 | '#008080', # DarkCyan 54 | '#800000', # DarkRed 55 | '#800080', # DarkMagenta 56 | '#808000', # DarkYellow 57 | '#c0c0c0', # Gray 58 | '#808080', # DarkGray 59 | '#0000ff', # Blue 60 | '#00ff00', # Green 61 | '#00ffff', # Cyan 62 | '#ff0000', # Red 63 | '#ff00ff', # Magenta 64 | '#ffff00', # Yellow 65 | '#ffffff', # White 66 | ] 67 | 68 | line = '' 69 | 70 | 71 | def get_rgb(color): 72 | m = re.match(r'#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})', color) 73 | if m is None: 74 | raise RuntimeError('Invalid color format: %s, #rrggbb expected' % color) 75 | else: 76 | return m.groups() 77 | 78 | 79 | def gen_theme(): 80 | for i in range(0, len(palette)): 81 | color = palette[i] 82 | r, g, b = map(lambda x: x.lower(), get_rgb(color)) 83 | yield line.format(i, r, g, b) 84 | 85 | 86 | if __name__ == '__main__': 87 | out = '\n'.join(gen_theme()) 88 | print(out) 89 | --------------------------------------------------------------------------------