├── Add-TerminalProfileDracula.ps1 ├── INSTALL.md ├── LICENSE ├── README.md ├── dracula-pro.png ├── dracula.json └── screenshot.png /Add-TerminalProfileDracula.ps1: -------------------------------------------------------------------------------- 1 | <# 2 | .SYNOPSIS 3 | Installs the Dracula theme Fragment for Windows Terminal. 4 | 5 | .DESCRIPTION 6 | This function downloads the Dracula color scheme and creates a fragment file for Windows Terminal. 7 | The fragment file sets the Dracula color scheme as the default color scheme. 8 | 9 | .EXAMPLE 10 | Add-TerminalProfileDracula 11 | 12 | This command installs the Dracula theme Fragment for Windows Terminal. 13 | 14 | .NOTES 15 | The fragment file is created in the LocalAppData directory for Windows Terminal. 16 | After running this function, restart Windows Terminal and select or set the theme in your profile. 17 | #> 18 | function Add-TerminalProfileDracula { 19 | # Define the path for the fragment file 20 | $fragmentPath = "$env:LOCALAPPDATA\Microsoft\Windows Terminal\Fragments\Dracula\dracula.json" 21 | 22 | # Ensure the directory exists 23 | $fragmentDir = [System.IO.Path]::GetDirectoryName($fragmentPath) 24 | if (-not (Test-Path -Path $fragmentDir)) { 25 | New-Item -ItemType Directory -Path $fragmentDir -Force 26 | } 27 | 28 | # Download and parse the Dracula color scheme 29 | try { 30 | $draculaScheme = Invoke-RestMethod -Uri "https://raw.githubusercontent.com/dracula/windows-terminal/refs/heads/master/dracula.json" 31 | Write-Host "Successfully downloaded Dracula color scheme" 32 | } catch { 33 | Write-Error "Failed to download Dracula color scheme: $_" 34 | exit 1 35 | } 36 | 37 | # Create the fragment JSON content 38 | $fragmentContent = @{ 39 | schemes = @($draculaScheme) 40 | profiles = @{ 41 | defaults = @{ 42 | colorScheme = "Dracula" 43 | } 44 | } 45 | } 46 | 47 | # Convert to JSON and save to the fragment file 48 | $fragmentContent | ConvertTo-Json -Depth 32 | Set-Content -Path $fragmentPath 49 | 50 | Write-Output "Fragment has been created successfully at $fragmentPath" 51 | Write-Output "Restart Windows Terminal and then select or set the theme in your profile" 52 | } 53 | 54 | # Call the function to install the Dracula theme Fragment 55 | Add-TerminalProfileDracula 56 | -------------------------------------------------------------------------------- /INSTALL.md: -------------------------------------------------------------------------------- 1 | ### [Windows Terminal](https://github.com/microsoft/terminal) 2 | 3 | #### Download 4 | 5 | Download using the [GitHub `.zip` download](https://github.com/dracula/windows-terminal/archive/master.zip) option. 6 | 7 | #### Install 8 | ##### Easy Install 9 | Run the `Add-TerminalProfileDracula.ps1` PowerShell script to install the colorscheme via [Windows Terminal JSON Fragments](https://docs.microsoft.com/en-us/windows/terminal/json-fragment-extensions#where-to-place-the-json-fragment-files) 10 | 11 | > **Note** 12 | > To allow the execution of the installation script without having to relax the [Execution Policy][ps-execpolicy] of the entire system, you can unblock the `Add-TerminalProfileDracula.ps1` file using the [Unblock-File][ps-unblockfile] PowerShell cmdlet. 13 | > 14 | > ```powershell 15 | > Unblock-File .\Add-TerminalProfileDracula.ps1 16 | > ``` 17 | 18 | [ps-execpolicy]: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.2 19 | [ps-unblockfile]: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/unblock-file?view=powershell-7.2 20 | 21 | ##### Manual Install 22 | 23 | Start Windows Terminal and click on the down arrow symbol `˅` from menu bar. This will open a drop down menu from which select Settings option. Alternatively use `Ctrl + ,` to open Settings directly. 24 | 25 | In the bottom left click `Open JSON Settings` 26 | 27 | ![image](https://github.com/user-attachments/assets/1fef6e24-ea28-4f06-8bb1-06e32294d9f1) 28 | 29 | In the `settings.json` settings file for Windows Terminal, find the `schemes` section and paste the content of `dracula.json`. 30 | 31 | Example: 32 | 33 | ```json 34 | "schemes": [ 35 | { 36 | "name": "Dracula", 37 | "cursorColor": "#F8F8F2", 38 | "selectionBackground": "#44475A", 39 | "background": "#282A36", 40 | "foreground": "#F8F8F2", 41 | "black": "#21222C", 42 | "blue": "#BD93F9", 43 | "cyan": "#8BE9FD", 44 | "green": "#50FA7B", 45 | "purple": "#FF79C6", 46 | "red": "#FF5555", 47 | "white": "#F8F8F2", 48 | "yellow": "#F1FA8C", 49 | "brightBlack": "#6272A4", 50 | "brightBlue": "#D6ACFF", 51 | "brightCyan": "#A4FFFF", 52 | "brightGreen": "#69FF94", 53 | "brightPurple": "#FF92DF", 54 | "brightRed": "#FF6E6E", 55 | "brightWhite": "#FFFFFF", 56 | "brightYellow": "#FFFFA5" 57 | } 58 | ] 59 | ``` 60 | 61 | ##### Activate 62 | 63 | Once the color scheme has been defined, it's time to enable it. Find the `profiles` section and add a `colorScheme` value to the default profile. 64 | 65 | Example: 66 | 67 | ```json 68 | "profiles": { 69 | "defaults": { 70 | "colorScheme" : "Dracula" 71 | } 72 | } 73 | ``` 74 | 75 | If the profiles are listed as below: 76 | 77 | ```jsonc 78 | "profiles": [ 79 | // list of profiles 80 | ] 81 | ``` 82 | 83 | Change it to: 84 | 85 | ```jsonc 86 | "profiles": { 87 | "defaults": { 88 | "colorScheme": "Dracula" 89 | }, 90 | "list": [ 91 | // list of profiles 92 | ] 93 | }, 94 | ``` 95 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 thismat 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 [Windows Terminal](https://github.com/microsoft/terminal) 2 | 3 | > A dark theme for [Windows Terminal](https://github.com/microsoft/terminal). 4 | 5 | ![Screenshot](./screenshot.png) 6 | 7 | ## Install 8 | 9 | All instructions can be found at [draculatheme.com/windows-terminal](https://draculatheme.com/windows-terminal). 10 | 11 | ## Team 12 | 13 | This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/windows-terminal/graphs/contributors). 14 | 15 | | [![Matt Joiner](https://avatars0.githubusercontent.com/u/95755?s=60&v=4)](https://github.com/thismat) | 16 | | ----------------------------------------------------------------------------------------------------- | 17 | | [Matt Joiner](https://github.com/thismat) | 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 | ## Dracula PRO 26 | 27 | [![Dracula PRO](./dracula-pro.png)](https://draculatheme.com/pro) 28 | 29 | ## License 30 | 31 | [MIT License](./LICENSE) 32 | -------------------------------------------------------------------------------- /dracula-pro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dracula/windows-terminal/06f63714a0477a7b5c12cf0aa94ecf92d78f32ca/dracula-pro.png -------------------------------------------------------------------------------- /dracula.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Dracula", 3 | "cursorColor": "#F8F8F2", 4 | "selectionBackground": "#44475A", 5 | "background": "#282A36", 6 | "foreground": "#F8F8F2", 7 | "black": "#21222C", 8 | "blue": "#BD93F9", 9 | "cyan": "#8BE9FD", 10 | "green": "#50FA7B", 11 | "purple": "#FF79C6", 12 | "red": "#FF5555", 13 | "white": "#F8F8F2", 14 | "yellow": "#F1FA8C", 15 | "brightBlack": "#6272A4", 16 | "brightBlue": "#D6ACFF", 17 | "brightCyan": "#A4FFFF", 18 | "brightGreen": "#69FF94", 19 | "brightPurple": "#FF92DF", 20 | "brightRed": "#FF6E6E", 21 | "brightWhite": "#FFFFFF", 22 | "brightYellow": "#FFFFA5" 23 | } 24 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dracula/windows-terminal/06f63714a0477a7b5c12cf0aa94ecf92d78f32ca/screenshot.png --------------------------------------------------------------------------------