A vivid light color theme for VS Code, Vim, xterm, and tmux. Designed for brightly-lit environments with WCAG-verified contrast ratios.
Every color is verified against the warm off-white background (#F1EDE5). Keywords and control flow exceed AAA (7:1), all other syntax colors meet AA (4.5:1).
MorningHue highlights all standard Vim syntax groups, so any language Vim supports works automatically. Here are examples from several languages commonly used in hardware verification and software development.
A common problem with light themes: broken symlinks are invisible. MorningHue's dircolors configuration fixes this.
All contrast ratios are calculated against the background (#F1EDE5, luminance 0.849) using the WCAG 2.1 formula. Colors are sorted by contrast ratio.
| Color | Hex | cterm | Contrast Ratio | Grade | Usage |
|---|---|---|---|---|---|
#0000d7 | 20 | 9.08 : 1 | AAA | Keyword, module, structure | |
#870000 | 88 | 8.86 : 1 | AAA | PreProc, `define, `ifdef | |
#444444 | 238 | 8.33 : 1 | AAA | Normal text | |
#870087 | 90 | 7.56 : 1 | AAA | Control flow, always, if | |
#5f00d7 | 56 | 7.29 : 1 | AAA | Type, StorageClass | |
#005f00 | 22 | 6.82 : 1 | AA | String | |
#005f5f | 23 | 6.42 : 1 | AA | Boolean, tag | |
#af0000 | 124 | 6.37 : 1 | AA | Error, exception | |
#005f87 | 24 | 6.06 : 1 | AA | Function, Identifier | |
#005faf | 25 | 5.52 : 1 | AA | Operator, delimiter | |
#875f00 | 94 | 4.90 : 1 | AA | Number, constant | |
#af00d7 | 128 | 4.73 : 1 | AA | Statement, assert | |
#d70000 | 160 | 4.62 : 1 | AA | Import, include | |
#949494 | 246 | 2.60 : 1 | Subtle | Comment (italic) | |
#1c1c1c | — | 16.29 : 1 | AAA | ANSI color15 (bright white) — remapped for TUI tool visibility |
* ANSI palette slots color7 (#444444, listed above as Normal text) and color15 (#1c1c1c) are remapped to dark values. On a light background, tools like GitHub Copilot CLI render text in these slots; keeping them light would make the output invisible.
Engineers spend hours reading code on screen. A theme with poor contrast forces the eyes to work harder, leading to fatigue and missed details. MorningHue ensures:
PaperColor is an excellent theme, but several of its colors fall below the WCAG AA threshold on its own background. MorningHue addresses every one:
| Element | PaperColor | CR | MorningHue | CR | Change |
|---|---|---|---|---|---|
| Background | #eeeeee | — | #F1EDE5 | — | Warmer, less harsh |
| Strings | #5f8700 | 3.65 | #005f00 | 6.82 | +87% |
| Statement | #d70087 | 4.27 | #af00d7 | 4.73 | +11% |
| Operator | #0087af | 3.56 | #005faf | 5.52 | +55% |
| Numbers | #d75f00 | 3.28 | #875f00 | 4.90 | +49% |
| Boolean | #008700 | 4.05 | #005f5f | 6.42 | +59% |
| Broken symlinks | Invisible | Bold red on pink | Fixed | ||
Clone into your VS Code extensions directory:
Then restart VS Code, open the Command Palette (Ctrl+Shift+P), type Preferences: Color Theme, and select MorningHue.
Add to ~/.vimrc:
The ANSI white palette slots are remapped to dark values (color7 = #444444, color15 = #1c1c1c) so TUI tools like GitHub Copilot CLI render text visibly on the light background.
Add to ~/.tmux.conf:
Add to your shell rc file: