{"id":13442467,"url":"https://github.com/neilpa/cmd-colors-solarized","last_synced_at":"2025-05-16T12:03:11.155Z","repository":{"id":4630608,"uuid":"5774948","full_name":"neilpa/cmd-colors-solarized","owner":"neilpa","description":"Solarized color settings for Windows command prompt","archived":false,"fork":false,"pushed_at":"2021-09-29T07:33:42.000Z","size":1397,"stargazers_count":1110,"open_issues_count":11,"forks_count":175,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-05-16T12:01:58.919Z","etag":null,"topics":["color-schemes","powershell","solarized-theme","windows-registry"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neilpa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-12T04:24:50.000Z","updated_at":"2025-05-13T14:16:18.000Z","dependencies_parsed_at":"2022-08-27T00:11:09.464Z","dependency_job_id":null,"html_url":"https://github.com/neilpa/cmd-colors-solarized","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fcmd-colors-solarized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fcmd-colors-solarized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fcmd-colors-solarized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neilpa%2Fcmd-colors-solarized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neilpa","download_url":"https://codeload.github.com/neilpa/cmd-colors-solarized/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527084,"owners_count":22085918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color-schemes","powershell","solarized-theme","windows-registry"],"created_at":"2024-07-31T03:01:46.077Z","updated_at":"2025-05-16T12:03:11.085Z","avatar_url":"https://github.com/neilpa.png","language":"PowerShell","funding_links":[],"categories":["Terminal","PowerShell","WSL Tools"],"sub_categories":["REST","10. GUI Apps"],"readme":"Solarized - Command Prompt theme\n=============================================\n\nThis is a [Solarized][1] color scheme for the Windows command prompt,\nwith contributions by Neil Pankey, Ryan Beesley, Scott Hanselman,\nRussell West, and Paul Hampson.\n\nSee the [Solarized home page][1] for screenshots and more details,\nas well as color schemes for other applications. To contribute or file bug\nreports or issues, please visit [the GitHub repo for this port][2],\nor the main [Solarized repository][3].\n\nInspired by this [post][4]\n\nMaking Solarized work for cmd.exe, Bash on Ubuntu on Windows, and PowerShell,\nand striking a balance with how other Solarized projects are implemented\npresents some challenges. The following table shows how the colors are mapped.\n\n| SOLARIZED | HEX     | ANSI      | TERMCOL   | cmd.exe     | PowerShell  | ColorTable | DWORD    |\n|-----------|---------|-----------|-----------|-------------|-------------|------------|----------|\n| base03    | #002b36 | ESC[0;30m | brblack   | Black       | Black       | 00         | 00362b00 |\n| base02    | #073642 | ESC[1;30m | black     | Gray        | DarkGray    | 08         | 00423607 |\n| base01    | #586e75 | ESC[0;32m | brgreen   | Green       | DarkGreen   | 02         | 00756e58 |\n| base00    | #657b83 | ESC[0;33m | bryellow  | Yellow      | DarkYellow  | 06         | 00837b65 |\n| base0     | #839496 | ESC[0;34m | brblue    | Blue        | DarkBlue    | 01         | 00969483 |\n| base1     | #93a1a1 | ESC[0;36m | brcyan    | Aqua        | DarkCyan    | 03         | 00a1a193 |\n| base2     | #eee8d5 | ESC[0;37m | white     | White       | Gray        | 07         | 00d5e8ee |\n| base3     | #fdf6e3 | ESC[1;37m | brwhite   | BrightWhite | White       | 15         | 00e3f6fd |\n| yellow    | #b58900 | ESC[1;33m | yellow    | LightYellow | Yellow      | 14         | 000089b5 |\n| orange    | #cb4b16 | ESC[0;31m | brred     | Red         | DarkRed     | 04         | 00164bcb |\n| red       | #dc322f | ESC[1;31m | red       | LightRed    | Red         | 12         | 002f32dc |\n| magenta   | #d33682 | ESC[1;35m | magenta   | LightPurple | Magenta     | 13         | 008236d3 |\n| violet    | #6c71c4 | ESC[0;35m | brmagenta | Purple      | DarkMagenta | 05         | 00c4716c |\n| blue      | #268bd2 | ESC[1;34m | blue      | LightBlue   | Blue        | 09         | 00d28b26 |\n| cyan      | #2aa198 | ESC[1;36m | cyan      | LightAqua   | Cyan        | 11         | 0098a12a |\n| green     | #859900 | ESC[1;32m | green     | LightGreen  | Green       | 10         | 00009985 |\n\nTo make sure that the terminal is likely to use the best matching, the\nColorTable is aligned with TERMCOL values. These values were pulled from PuTTY\nand other Solarized terminal profiles. This allows the same ANSI escape\nsequences to show the same in ANSI supported terminals. The PowerShell default\ncolors are also matched for the $Host.PrivateData and PSReadLine to make them\nseemingly fit with the rest of the environments.\n\nWARNING\n-------\n\nBelow are very simplified installation instructions. ~~It **will not** update\nexisting shortcuts because they have their own color mapping.~~ With this\nlatest version of the project, it is possible to apply to existing shortcuts,\nbut it **will not** be easy to revert that change. It **will not** always play\nnice with traditional unix tools or compatability shims because Windows uses a\nfundamentally different color code mapping.\n\nInstallation\n------------\n\n### Update Registry for Console\nWhile this was the original process, this only changes the registry default\nand doesn't update the Command Prompt and PowerShell defaults when you launch\nthose shortcuts. It is still something you may wish to do, but the recommended\nprocess is now to use the Update-Link utility.\n\nImport the `.reg` file of choice, e.g. `regedit /s solarized-dark.reg`.\n\nBoth files contain the same palettes, the only difference is the default\nforeground and background colors. Therefore you can switch between themes on\nthe fly with `color 01` for dark and `color F6` for light.\n\n### Update Command Prompt and PowerShell shortcut .lnks\nLocate the link you wish to modify, such as Command Prompt. The easiest way to\ndo this on Windows 10 is to click `Start`, then type in the command you want to\nchange. When it appears in the list, right-click and select `Open file\nlocation`. This will open an Explorer window and show you the shortcut. Hold\nshift and right-click on the shortcut, then select `Copy as path`. Now open a\nCommand Prompt to the location of this project. In the Command Prompt window\nuse this command.\n\n    Update-Link \"\u003cshortcut.lnk\u003e\" [dark|light]\n\nThe path to the shortcut.lnk is the same as you copied to your clipboard in the\nprevious step. To easily paste it in Windows 10, just right-click on the\nwindow. If the path has spaces, you will want to wrap it in quotes, but if you\nfollowed the recommended way to use `Copy as path`, it will be done for you. If\nno theme is given, `Update-Link` will default to Solarized Dark.\n\n### Update your PowerShell profile\nCopy the `Set-Solarized*ColorDefaults.ps1` files to your profile directory,\nlikely `~\\Documents\\WindowsPowerShell\\`. Then add the following line of code\nto the end of your `Microsoft.PowerShell_profile.ps1` or `profile.ps1`:\n\n    . (Join-Path -Path (Split-Path -Parent -Path $PROFILE) -ChildPath $(switch($HOST.UI.RawUI.BackgroundColor.ToString()){'White'{'Set-SolarizedLightColorDefaults.ps1'}'Black'{'Set-SolarizedDarkColorDefaults.ps1'}default{return}}))\n\nUninstall\n------------\n\n### Registry for Console\nThe file `windows-defaults.reg` is provided to restore the command prompt\ncolors back to their shipping defaults. The registry settings have been\nchecked for versions of Windows back to at least Windows 7 and the values are\nthe same.\n\nTo restore the defaults, import the `.reg` the same way as you applied it\npreviously, `regedit /s windows-defaults.reg`.\n\n### Command Prompt and PowerShell shortcut .lnks\nUnfortunately, this is not the easiest to revert right now. One way, which is\nnot recommended for casual users is to edit the `Properties` of an open window.\nFrom there, you can edit the colors manually, using the table as a guide. If\nthere is enough interest and demand, a future update may make it possible to\napply other themes using the `Update-Link` utility, but for now it is not very\neasy to revert.\n\n### PowerShell profile\nYou will also want to revert any changes you made to your PowerShell profile.\nJust open the profile you created or modified and remove the code.\n\nScreenshots\n------------\n\n### PowerShell Light\n![PowerShell Light prompt][5]\n\n### PowerShell Dark\n![PowerShell Dark prompt][6]\n\nAnd for comparison purposes:\n### PowerShell Default\n![PowerShell Default prompt][7]\n\n### Command Prompt Default\n![Command Prompt Default prompt][8]\n\n[1]: http://ethanschoonover.com/solarized\n[2]: https://github.com/neilpa/cmd-colors-solarized\n[3]: https://github.com/altercation/solarized\n[4]: https://github.com/altercation/solarized/issues/127\n[5]: https://raw.github.com/neilpa/cmd-colors-solarized/master/PowerShell-light.png\n[6]: https://raw.github.com/neilpa/cmd-colors-solarized/master/PowerShell-dark.png\n[7]: https://raw.github.com/neilpa/cmd-colors-solarized/master/PowerShell-default.png\n[8]: https://raw.github.com/neilpa/cmd-colors-solarized/master/cmd-default.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilpa%2Fcmd-colors-solarized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneilpa%2Fcmd-colors-solarized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneilpa%2Fcmd-colors-solarized/lists"}