├── .github ├── issue_template.md └── pull_request_template.md ├── INSTALL.md ├── LICENSE ├── README.md ├── dracula.css └── 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. -------------------------------------------------------------------------------- /INSTALL.md: -------------------------------------------------------------------------------- 1 | ### [Highlight.js](https://highlightjs.org/) 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/highlightjs.git 8 | 9 | #### Install manually 10 | 11 | Download using the [GitHub .zip download](https://github.com/dracula/highlightjs/archive/master.zip) option and unzip them. 12 | 13 | #### Activating theme 14 | 15 | 1\. Copy `dracula.css` to your desired directory. 16 | 17 | 2\. Include the theme in your html. `` 18 | 19 | In the end, your page should look something like this: 20 | 21 | 22 | 23 | 24 |

25 |     // Scary function
26 |     function scare(who) {
27 |       console.log(who, 'your blood is mine');
28 |     }
29 |     
30 | -------------------------------------------------------------------------------- /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 [Highlight.js](http://highlightjs.org) 2 | 3 | > A dark theme for [Highlight.js](http://highlightjs.org). 4 | 5 | ![Screenshot](./screenshot.png) 6 | 7 | ## Install 8 | 9 | All instructions can be found at [draculatheme.com/highlightjs](https://draculatheme.com/highlightjs). 10 | 11 | ## Team 12 | 13 | This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/highlightjs/graphs/contributors). 14 | 15 | | [![Denis Ciccale](https://avatars0.githubusercontent.com/u/539546?v=3&s=70)](https://github.com/dciccale) | 16 | | --------------------------------------------------------------------------------------------------------- | 17 | | [Denis Ciccale](https://github.com/dciccale) | 18 | 19 | ## Community 20 | 21 | - [Twitter](https://twitter.com/draculatheme) - Best for getting updates about themes and new stuff. 22 | - [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues. 23 | - [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community. 24 | 25 | ## License 26 | 27 | [MIT License](./LICENSE) 28 | -------------------------------------------------------------------------------- /dracula.css: -------------------------------------------------------------------------------- 1 | /* Dracula Theme v1.2.5 2 | * 3 | * https://github.com/dracula/highlightjs 4 | * 5 | * Copyright 2016-present, All rights reserved 6 | * 7 | * Code licensed under the MIT license 8 | * 9 | * @author Denis Ciccale 10 | * @author Zeno Rocha 11 | */ 12 | 13 | .hljs { 14 | display: block; 15 | overflow-x: auto; 16 | padding: 0.5em; 17 | background: #282a36; 18 | } 19 | 20 | .hljs-built_in, 21 | .hljs-selector-tag, 22 | .hljs-section, 23 | .hljs-link { 24 | color: #8be9fd; 25 | } 26 | 27 | .hljs-keyword { 28 | color: #ff79c6; 29 | } 30 | 31 | .hljs, 32 | .hljs-subst { 33 | color: #f8f8f2; 34 | } 35 | 36 | .hljs-title, 37 | .hljs-attr, 38 | .hljs-meta-keyword { 39 | font-style: italic; 40 | color: #50fa7b; 41 | } 42 | 43 | .hljs-string, 44 | .hljs-meta, 45 | .hljs-name, 46 | .hljs-type, 47 | .hljs-symbol, 48 | .hljs-bullet, 49 | .hljs-addition, 50 | .hljs-variable, 51 | .hljs-template-tag, 52 | .hljs-template-variable { 53 | color: #f1fa8c; 54 | } 55 | 56 | .hljs-comment, 57 | .hljs-quote, 58 | .hljs-deletion { 59 | color: #6272a4; 60 | } 61 | 62 | .hljs-keyword, 63 | .hljs-selector-tag, 64 | .hljs-literal, 65 | .hljs-title, 66 | .hljs-section, 67 | .hljs-doctag, 68 | .hljs-type, 69 | .hljs-name, 70 | .hljs-strong { 71 | font-weight: bold; 72 | } 73 | 74 | .hljs-literal, 75 | .hljs-number { 76 | color: #bd93f9; 77 | } 78 | 79 | .hljs-emphasis { 80 | font-style: italic; 81 | } 82 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dracula/highlightjs/7e046d97407ba14b3f812b4c23cfc4bd921edc3e/screenshot.png --------------------------------------------------------------------------------