Critical Rhino
GitHub

Color scheme for code and terminal

Critical Rhino

Warm, low-glare and easy to read. Orange keywords, red strings, green comments, purple numbers and blue types on near-black or cream, every one of them readable at 4.5:1 or better on the current line, selections and diffs as well as the background.

Install Source on GitHub

For Neovim, VS Code and Cursor, Ghostty, starship, fzf, lazygit and tmux.

Variants
Dark · Light
Palette
17 colors
Syntax roles
26
Lowest text contrast
4.50:1

01 · Screenshots

In the real apps

Neovim and VS Code editing the same file, a shell in Ghostty with a starship prompt, and lazygit, each captured from the current themes. Switch the page between Dark and Light to see both variants.

Python in Neovim, darkPython in Neovim, light

02 · Editor

In the editor

Keywords are orange, strings red, comments green, types and built-ins blue, numbers purple and decorators yellow. Italics mark documentation and constants; bold marks emphasis. Switch files to see the same roles in TypeScript, Markdown and a diff.

1from dataclasses import dataclass
2
3# Field notes: weights are estimated from drone photos.
4MAX_WEIGHT_KG = 3600
5
6@dataclass(frozen=True)
7class Rhino:
8 """One sighting from the reserve's field log."""
9 name: str
10 weight_kg: float = 0.0
11 tagged: bool = False
12
13 def describe(self) -> str:
14 status = "tagged" if self.tagged else "untagged"
15 return f"{self.name}: {self.weight_kg:,.0f} kg ({status})\n"
16
17def heaviest(herd: list[Rhino]) -> Rhino | None:
18 # TODO: report ties instead of picking the first.
19 weighed = [r for r in herd if 0 < r.weight_kg <= MAX_WEIGHT_KG]
20 return max(weighed, key=lambda r: r.weight_kg, default=None)

03 · Palette

The palette

Six warm accents and a terminal cyan, set on near-black and cream. Each accent has a text tone for each variant: the same hue and chroma, with lightness moved just far enough to read at 4.5:1. The grays are warmed toward Loden so the interface sits comfortably with the cream.

Accents

Red

#AE3C38L 0.52 · C 0.150 · H 26°
on darkAa#E66E72
on lightAa#A7354A
Code
strings, invalid code, inline code, deleted lines
UI
errors, deleted files, deleted-line marks, gutter staged deleted, removed-line tint
Terminal
red, bright red

Orange

#E86F41L 0.68 · C 0.162 · H 41°
on darkAa#E37523
on lightAa#9F4200
Code
keywords, interpolation, italics, link URLs
UI
conflicts, search current, debugging status bar

Yellow

#FDD172L 0.88 · C 0.124 · H 85°
on darkAa#FDD172
on lightAa#795901
Code
doc tags, decorators
UI
line numbers, ruler, warnings, modified files, diff text bg, searchdark active line number
Terminal
yellow, bright yellow

Green

#76A041L 0.65 · C 0.133 · H 129°
on darkAa#76A041
on lightAa#446902
Code
comments, doc comments, TODO markers, quotes, inserted lines
UI
added files, added-line marks, gutter staged added, inserted-line tint, remote indicator
Terminal
green, bright green

Cyan

#13978AL 0.61 · C 0.105 · H 184°
on darkAa#2AA497
on lightAa#016A60
UI
hint
Terminal
cyan, bright cyan

Blue

#59759AL 0.56 · C 0.067 · H 256°
on darkAa#7895BC
on lightAa#456084
Code
escapes, types, built-ins, link text, diff headers
UI
status bar, info, changed-line marks, gutter staged modified, diff changed bg
Terminal
blue, bright bluedark cursor

Purple

#9C618AL 0.57 · C 0.094 · H 339°
on darkAa#BD80AA
on lightAa#844B73
Code
numbers, bold
UI
no-folder status bar
Terminal
magenta, bright magenta

Grounds and highlights

Black

#202020
on lightAa#202020
Code
light code text, regular expressions, constants, headings
UI
search foreground, search current foreground, debugging status text, remote indicator textdark editor backgroundlight UI text, badge text, muted text, active line number, matching brackets
Terminal
dark backgroundlight text, black

White

#F7EEDC
on darkAa#F7EEDC
Code
dark code text, regular expressions, constants, headings
UI
status bar text, selected item text, matches in the selected row, filter box text, no-folder status textdark UI text, badge text, muted text, matching bracketslight editor background
Terminal
bright whitedark textlight background

Loden

#3D3A39
UI
title bar and inputs, current linelight side bar and tabs, borders, badges, word highlight

Gray Accent 2

#2D2D2Dwarm #2F2C2B
UI
dark side bar and tabs, word highlight

Gray (Dark)

#4D4D4Dwarm #504C4B
UI
dark borders, badges, dim foreground
Terminal
dark bright black

Gray (Light)

#808080warm #847F7D
UI
light dim foreground
Terminal
whitelight bright black

Gray Accent 1

#3C3F41

Not assigned to a role yet.

Blue Accent 1

#2F65CA
on darkAa#5791FA
on lightAa#2459BD
UI
list selection, focus, links, match highlightslight soft selection, text selection
Terminal
light cursor, selection

Blue Accent 2

#0D293E
UI
dark soft selection, text selection
Terminal
dark selection

Red (Muted)

#AC5A58
UI
list filter box

04 · Roles

Syntax roles

26 roles in 7 colors, the same in both variants, so a keyword means the same thing on cream as on near-black. Anything without a role is plain text.

Text

#F7EEDC#202020
  • herd.lengthcode textidentifiers, functions, parameters, properties, operators
  • /^(\w+),/regular expressionsdrawn as plain text, so patterns stay calm
  • MAX_WEIGHT_KGconstantsItalic · named constants, enum members, static fields
  • # Reserve logheadingsBold · Markdown # headings

Orange

#E37523#9F4200
  • returnkeywordscontrol flow, storage, modifiers, true / false / null
  • ${ }interpolation${ } and other embedded-code delimiters
  • *north*italicsItalic · Markdown *emphasis*
  • (sightings.csv)link URLsthe (target) part of a Markdown link

Red

#E66E72#A7354A
  • "untagged"stringstemplate literals, attribute values, JSON values
  • \qinvalid codeStruck through · invalid escapes, unresolved references
  • `2,140 kg`inline codeMarkdown `code spans`
  • - # TODOdeleted lineslines starting with - in a diff

Green

#76A041#446902
  • # from drone photoscommentsline and block comments
  • """One sighting."""doc commentsItalic · docstrings and /** */ blocks
  • TODOTODO markersBold italic · TODO and FIXME inside comments
  • > At dawnquotesMarkdown > block quotes
  • + top = max(…)inserted lineslines starting with + in a diff

Yellow

#FDD172#795901
  • @paramdoc tags@param, @return and other tags in doc comments
  • @dataclassdecoratorsdecorators and annotations

Blue

#7895BC#456084
  • \nescapes\n, \t and other escapes in strings
  • Rhinotypesclasses, interfaces, enums, type parameters
  • selfbuilt-insbuilt-in functions and types, self and cls
  • the sightingslink textUnderlined · the [text] part of a Markdown link
  • @@ -17,4 +17,5 @@diff headersfile names and @@ hunk headers

Purple

#BD80AA#844B73
  • 3600numbersintegers, floats, hex and other numeric literals
  • **adult**boldBold · Markdown **strong** text

05 · Readability

Readable on every surface

Code isn't only drawn on the background. Every text color is measured against the current line, a selection, inserted and removed diff lines, the hovers and widgets that show code, changed lines in side-by-side diffs and highlighted references, and reaches 4.5:1 on all of them. Interface text meets the same bar: file names, muted labels, line numbers and the status bar. Distinct syntax colors stay at least 0.08 apart in OKLab, so a string never passes for a keyword.

Dark

Text colorBackgroundCurrent lineSelectionInsertedRemovedWidgets
Textcode text14.1312.3812.9812.6412.3912.02
Orangekeywords5.304.644.874.744.654.51
Redstrings5.314.654.874.744.654.51
Yellowdecorators11.289.8810.3610.089.899.59
Greencomments5.334.674.904.774.684.53
Bluetypes5.294.644.864.734.644.50
Purplenumbers5.304.644.874.744.654.51
Blue Accent 1links5.304.644.874.744.654.51

Lowest 4.50:1 · interface text at least 4.50:1 · closest syntax colors Orange and Red, 0.086 apart in OKLab

Light

Text colorBackgroundCurrent lineSelectionInsertedRemovedWidgets
Textcode text14.1312.4111.4212.5212.2712.56
Orangekeywords5.604.924.534.964.864.98
Redstrings5.604.924.534.964.864.98
Yellowdecorators5.624.934.544.984.884.99
Greencomments5.584.904.514.944.844.95
Bluetypes5.594.914.524.954.854.97
Purplenumbers5.634.944.554.994.895.00
Blue Accent 1links5.624.944.554.984.885.00

Lowest 4.51:1 · interface text at least 4.50:1 · closest syntax colors Orange and Red, 0.082 apart in OKLab

06 · Terminal

In the terminal

Most programs print in the normal ANSI colors, so the six colored normals read at 4.5:1, on the background and inside a selection. The brights are lighter in both variants and stay at 3:1 or better. White is secondary text at 4.5:1, and bright black is the dim gray shells use for suggestions, at 3:1.

ranger@reserve: ~/reserve-log
ranger@reserve:~/reserve-log$ git log --oneline -3
a41c9e2 (HEAD -> main) Report ties in heaviest()
7d03b18 Add tagging status
19f6a2e Log weights in kg
ranger@reserve:~/reserve-log$ git status --short
 M sightings.py
A  herd.csv
?? exports/
ranger@reserve:~/reserve-log$ grep -n tagged sightings.py
sightings.py:11:    tagged: bool = False
sightings.py:14:        status = "tagged" if self.tagged else "untagged"
ranger@reserve:~/reserve-log$ pytest -q
..F.                                                    [100%]
FAILED tests/test_herd.py::test_ties - assert 1 == 2
1 failed, 3 passed, 1 warning in 0.04s
ranger@reserve:~/reserve-log$ ls -F
exports/  herd.csv  README.md  sightings.py  tagging.py  tests/
ranger@reserve:~/reserve-log$ git log --oneline -3
black#322F2E · 1.23:1#202020 · 14.13:1
red#E66E72 · 5.31:1#A7354A · 5.60:1
green#76A041 · 5.33:1#446902 · 5.58:1
yellow#FDD172 · 11.28:1#795901 · 5.62:1
blue#7895BC · 5.29:1#456084 · 5.59:1
magenta#BD80AA · 5.30:1#844B73 · 5.63:1
cyan#2AA497 · 5.32:1#016A60 · 5.64:1
white#979290 · 5.30:1#625D5B · 5.63:1
bright black#797473 · 3.54:1#7E7977 · 3.73:1
bright red#FFA1A5 · 8.45:1#C9554F · 3.72:1
bright green#A9D374 · 9.51:1#5D8624 · 3.72:1
bright yellow#FFFFA5 · 15.59:1#9B7402 · 3.72:1
bright blue#ABC8EF · 9.50:1#607CA2 · 3.72:1
bright magenta#F0B3DD · 9.46:1#A36790 · 3.72:1
bright cyan#5DD7CA · 9.34:1#05897D · 3.73:1
bright white#F7EEDC · 14.13:1#F7EEDC · 1.00:1

07 · Install

Install

Neovim installs like any colorscheme plugin, and VS Code and Cursor from their extension stores. The other themes are plain files: clone the repository somewhere it can stay and point each tool at it. The README has more on each tool.

A standard colorscheme plugin for Neovim 0.10 or later. critical-rhino follows 'background'; critical-rhino-dark and critical-rhino-light pick one. lualine picks up the matching theme by itself, and the README covers LazyVim and bufferline.

lazy.nvim plugin spec
{
  "matthewaburton/critical-rhino",
  lazy = false,
  priority = 1000,
  config = function()
    vim.cmd.colorscheme("critical-rhino")
  end,
},

08 · Reference

Every role

The values theme files are built from. Code colors are each accent's text tone for that variant. Translucent colors are shown blended onto their background, with the color and opacity underneath.

Syntax · 26 roles
RoleDarkLightStyle
textcode text#F7EEDCText#202020Textplain
commentcomments#76A041Green#446902Greenplain
doc_commentdoc comments#76A041Green#446902Greenitalic
doc_tagdoc tags#FDD172Yellow#795901Yellowplain
todoTODO markers#76A041Green#446902Greenbold, italic
keywordkeywords#E37523Orange#9F4200Orangeplain
stringstrings#E66E72Red#A7354ARedplain
string_escapeescapes#7895BCBlue#456084Blueplain
regexregular expressions#F7EEDCText#202020Textplain
numbernumbers#BD80AAPurple#844B73Purpleplain
constantconstants#F7EEDCText#202020Textitalic
typetypes#7895BCBlue#456084Blueplain
builtinbuilt-ins#7895BCBlue#456084Blueplain
decoratordecorators#FDD172Yellow#795901Yellowplain
interpolationinterpolation#E37523Orange#9F4200Orangeplain
invalidinvalid code#E66E72Red#A7354ARedstrikethrough
headingheadings#F7EEDCText#202020Textbold
boldbold#BD80AAPurple#844B73Purplebold
italicitalics#E37523Orange#9F4200Orangeitalic
link_textlink text#7895BCBlue#456084Blueunderline
link_urllink URLs#E37523Orange#9F4200Orangeplain
quotequotes#76A041Green#446902Greenplain
inline_codeinline code#E66E72Red#A7354ARedplain
diff_headerdiff headers#7895BCBlue#456084Blueplain
diff_insertedinserted lines#76A041Green#446902Greenplain
diff_deleteddeleted lines#E66E72Red#A7354ARedplain
Interface · 56 roles
RoleDarkLight
backgroundeditor background#202020Black#F7EEDCWhite
foregroundUI text#F7EEDCWhite#202020Black
surfaceside bar and tabs#2F2C2BWarm Gray Accent 2#EAE1D1Loden 7%
surface_raisedtitle bar and inputs#3D3A39Loden#DFD7C7Loden 13%
borderborders#504C4BWarm Gray (Dark)#BFB8ABLoden 30%
badgebadges#504C4BWarm Gray (Dark)#BFB8ABLoden 30%
badge_foregroundbadge text#F7EEDCWhite#202020Black
muted_foregroundmuted text#9F9A8FWhite 59%#615E58Black 70%
line_numbersline numbers#9E854FYellow 57%#866817Yellow text tone 90%
line_number_activeactive line number#FDD172Yellow#202020Black
current_linecurrent line#2C2A2ALoden 40%#E8E0CFLoden 8%
rulerruler#786741Yellow 40%#CBBA8FYellow text tone 35%
bracket_matchmatching brackets#F7EEDCWhite#202020Black
accentstatus bar#536E93Blue fill#536E93Blue fill
accent_foregroundstatus bar text#F7EEDCWhite#F7EEDCWhite
selectionlist selection#2F65CABlue Accent 1#2F65CABlue Accent 1
selection_foregroundselected item text#F7EEDCWhite#F7EEDCWhite
focus#5791FABlue Accent 1 text tone#2459BDBlue Accent 1 text tone
hover#181818#000000 25%#FBF6EE#FFFFFF 50%
selection_softsoft selection#0D293EBlue Accent 2#D7DFECPale Blue wash
editor_selectiontext selection#0D293EBlue Accent 2#CBD9F0Blue wash
linklinks#5791FABlue Accent 1 text tone#2459BDBlue Accent 1 text tone
match_highlightmatch highlights#5791FABlue Accent 1 text tone#2459BDBlue Accent 1 text tone
match_highlight_selectedmatches in the selected row#F7EEDCWhite#F7EEDCWhite
filter_widgetlist filter box#A65553Red (Muted) fill#A65553Red (Muted) fill
filter_widget_foregroundfilter box text#F7EEDCWhite#F7EEDCWhite
errorerrors#E66E72Red text tone#A7354ARed text tone
warningwarnings#FDD172Yellow text tone#795901Yellow text tone
infoinfo#7895BCBlue text tone#456084Blue text tone
hint#2AA497Cyan text tone#016A60Cyan text tone
dim_foreground#797473Bright Black#7E7977Bright Black
git_addedadded files#76A041Green text tone#446902Green text tone
git_modifiedmodified files#FDD172Yellow text tone#795901Yellow text tone
git_deleteddeleted files#E66E72Red text tone#A7354ARed text tone
git_conflictconflicts#E37523Orange text tone#9F4200Orange text tone
gutter_addedadded-line marks#76A041Green text tone#446902Green text tone
gutter_modifiedchanged-line marks#7895BCBlue text tone#456084Blue text tone
gutter_deleteddeleted-line marks#E66E72Red text tone#A7354ARed text tone
gutter_staged_added#58811EGreen#5F852BGreen
gutter_staged_modified#5B779CBlue#607CA2Blue
gutter_staged_deleted#C34F55Red#C85365Red
diff_inserted_bginserted-line tint#272A23Green 8%#E5E3C6Green 14%
diff_removed_bgremoved-line tint#3A2524Red 18%#F0DCCCRed 10%
diff_changed_bg#232D3BChanged wash#D8E4F4Changed wash
diff_text_bg#372A0FChanged Text wash#F6E5C2Changed Text wash
word_highlight#2F2C2BWarm Gray Accent 2#EAE1D1Loden 7%
search#FDD172Yellow#FDD172Yellow
search_foreground#202020Black#202020Black
search_current#E37523Orange text tone#E86F41Orange
search_current_foreground#202020Black#202020Black
status_debuggingdebugging status bar#E86F41Orange#E86F41Orange
status_debugging_foregrounddebugging status text#202020Black#202020Black
status_no_folderno-folder status bar#945982Purple fill#945982Purple fill
status_no_folder_foregroundno-folder status text#F7EEDCWhite#F7EEDCWhite
status_remoteremote indicator#76A041Green#76A041Green
status_remote_foregroundremote indicator text#202020Black#202020Black
Terminal · 20 colors
RoleDarkLight
background#202020Black#F7EEDCWhite
foregroundtext#F7EEDCWhite#202020Black
cursor#7895BCBlue text tone#2F65CABlue Accent 1
selection#0D293EBlue Accent 2#CBD9F0Blue wash
black#322F2ETerminal Black#202020Black
red#E66E72Red text tone#A7354ARed text tone
green#76A041Green text tone#446902Green text tone
yellow#FDD172Yellow text tone#795901Yellow text tone
blue#7895BCBlue text tone#456084Blue text tone
magenta#BD80AAPurple text tone#844B73Purple text tone
cyan#2AA497Cyan text tone#016A60Cyan text tone
white#979290Terminal White#625D5BTerminal White
bright_black#797473Bright Black#7E7977Bright Black
bright_red#FFA1A5Bright Red#C9554FBright Red
bright_green#A9D374Bright Green#5D8624Bright Green
bright_yellow#FFFFA5Bright Yellow#9B7402Bright Yellow
bright_blue#ABC8EFBright Blue#607CA2Bright Blue
bright_magenta#F0B3DDBright Magenta#A36790Bright Magenta
bright_cyan#5DD7CABright Cyan#05897DBright Cyan
bright_white#F7EEDCWhite#F7EEDCWhite