Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribute new 8-bit theme: Ansi 16 #2029

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,6 @@
[submodule "assets/syntaxes/02_Extra/Dart"]
path = assets/syntaxes/02_Extra/Dart
url = https://github.com/elMuso/Dartlight.git
[submodule "assets/themes/ansi16"]
path = assets/themes/ansi16
url = https://github.com/chtenb/ansi16
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ even when truecolor support is available:
- `base16-256` is designed for [base16-shell](https://github.com/chriskempson/base16-shell).
It replaces certain bright colors with 8-bit colors from 16 to 21. **Do not** use this simply
because you have a 256-color terminal but are not using base16-shell.
- `terminal-ansi16` looks decent on any terminal. It uses 4-bit colors (3-bit colors plus bright variants) in accordance with the [Ansi 16](https://github.com/chtenb/ansi16) guidelines. If your editor and terminal have the same Ansi 16 color theme, their syntax highlighting will match.

Although these themes are more restricted, they have three advantages over truecolor themes. They:

Expand Down
1 change: 1 addition & 0 deletions assets/themes/ansi16
Submodule ansi16 added at 109224
4 changes: 4 additions & 0 deletions tests/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ fn all_themes_are_present() {
"base16-256",
"gruvbox-dark",
"gruvbox-light",
"material-ansi16",
"noctis-lux-ansi16",
"synthwave-material-ansi16",
"terminal-ansi16",
"zenburn"
]
);
Expand Down