Palette
Accents
Surfaces
Highlights
Text
Derived
Marquee
- Role
- rust
- Hex
- #ba5152
- OKLCH
- 0.57 0.135 30
- Keywords and builtins
- Diagnostic errors
- Cursor
Preview
// WCAG contrast ratio between two hex colors.
const GAMMA = 2.4;
function channel(value: number): number {
const s = value / 255;
return s <= 0.04045 ? s / 12.92 : ((s + 0.055) / 1.055) ** GAMMA;
}
function luminance(hex: string): number {
const [r, g, b] = [1, 3, 5]
.map(i => channel(parseInt(hex.slice(i, i + 2), 16)));
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
}
export function contrast(a: string, b: string): number {
const [hi, lo] = [luminance(a), luminance(b)].sort((x, y) => y - x);
return (hi + 0.05) / (lo + 0.05);
}
contrast("#e2d3c1", "#18110d"); // 12.73, Bone on Asphalt
main · 0 errors, 0 warningsLn 19, Col 1 · UTF-8
~/motel main $ ls
assets/ downloads/ ports/ scripts/ palette.json README.md
~/motel main $ git status --short
M palette.json
M ports/warp.yaml
D ports/old.yaml
A ports/ghostty
~/motel main $ git diff --stat
palette.json | 2 +-
ports/warp.yaml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
~/motel main $ for c in {0..15}; do printf '\e[48;5;%sm ' $c; done
~/motel main $
Appearance
Sample controls. Nothing here is saved.
Color themeSelection uses Tobacco, borders use Umber.Motel ▾
- error Type 'string' is not assignable to type 'number'.
- warning 'lo' is assigned a value but never used.
- info 3 references
- hint This can be converted to a template string.
- ok Settings saved.
Syntax highlighting is sparse. Variables, parameters, and function names use the default text color (“Bone”); keywords, strings, types, and numbers get an accent.
Ports
Every file is generated from palette.json, except the VS Code theme, which is tuned by hand.
| Editors | ||
|---|---|---|
| Cursor & VS Code | Unzip, package it, then run Extensions: Install from VSIX and pick Motel as the color theme.Cursor’s Agents window doesn’t use VS Code themes. | motel-vscode.zip |
| Zed | Put it in ~/.config/zed/themes/ and choose Motel in the theme selector. | motel.json |
| Neovim | Save as colors/motel.lua in your config, then :colorscheme motel. | motel.lua |
| Helix | Save to ~/.config/helix/themes/ and set theme = "motel". | motel.toml |
| Sublime Text | Drop it in the Packages/User folder and select it as the color scheme. | Motel.sublime-color-scheme |
| T3 Code | Run t3 theme set motel.json. It publishes the file and switches to it. | motel.json |
| Terminals | ||
| Warp | Save as ~/.warp/themes/motel.yaml, then pick Motel under Appearance. | motel.yaml |
| Ghostty | Copy to ~/.config/ghostty/themes/motel and set theme = motel. | motel |
| iTerm2 | Profiles → Colors → Color Presets → Import. | Motel.itermcolors |
| Kitty | include motel.conf from kitty.conf. | motel.conf |
| Alacritty | Add the file to the import list in alacritty.toml. | motel.toml |
| WezTerm | Merge the table into color_schemes in your config. | motel.lua |
| Windows Terminal | Paste the scheme into the schemes array in settings.json. | motel.json |
| tmux | source-file it from ~/.tmux.conf. | motel.conf |
| Shell | ||
| zsh | Source it from ~/.zshrc. Sets LS_COLORS and EZA_COLORS. | motel-zsh.sh |
| fish | Save to ~/.config/fish/conf.d/. | motel.fish |
| fzf | Source it from your shell rc file. | motel.sh |
| bat | Add it as a custom theme. See the bat docs. | motel.tmTheme |
| Starship | Paste into starship.toml and set palette = "motel". | motel.toml |
| Apps and the web | ||
| Chrome | Unzip. Open chrome://extensions, turn on Developer mode, and choose Load unpacked. | motel-chrome.zip |
| Slack | Preferences → Themes → Custom. Paste the line of hex values. | slack.txt |
| Obsidian | Use it as a CSS snippet, or put it in a theme folder. | theme.css |
| CSS | Custom properties for every role. Import it in a page. | variables.css |
Download it all:
motel-complete.zip · 23 KB