跳到主要內容

Nvim Light

Nvim Light 是一套淺色終端機配色,背景色 #e0e2ea,文字色 #14161b,對比度 14.0:1

取得設定檔
背景色
#e0e2ea
前景色
#14161b
文字對比度
13.99:1AAA
強調色對比度
7.92:1最低 4.39
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status — Konsole
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ ls -la
drwxr-xr-x 12 ada staff 384 Oct 30 09:12 .
drwxr-xr-x 8 ada staff 256 Oct 29 18:40 ..
-rw-r--r-- 1 ada staff 1.2K Oct 30 09:10 .gitignore
drwxr-xr-x 5 ada staff 160 Oct 30 09:12 src
drwxr-xr-x 3 ada staff 96 Oct 28 11:02 public
-rwxr-xr-x 1 ada staff 2.4K Oct 30 08:57 build.sh
-rw-r--r-- 1 ada staff 4.1K Oct 30 09:01 package.json
lrwxr-xr-x 1 ada staff 18 Oct 27 14:33 node_modules -> ../cache/modules
-rw-r--r-- 1 ada staff 48K Oct 26 10:15 logo.png
-rw-r--r-- 1 ada staff 9.8M Oct 25 21:47 backup.tar.gz
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ git status
On branch main
Your branch is ahead of 'origin/main' by 2 commits.
Changes to be committed:
new file: src/theme.css
modified: README.md
Changes not staged for commit:
modified: src/app.tsx
deleted: legacy/colors.js
Untracked files:
notes.md
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯

Nvim Light 的設定檔

16 種格式,都從同一份色板產生

Nvim Light

存到 ~/.config/ghostty/themes/Nvim Light,再在 config 或 config.ghostty 裏寫 theme = Nvim Light

更多 Ghostty 配色
原始檔案
# Theme: Nvim Light (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/nvim-light?format=ghostty

palette = 0=#07080d
palette = 1=#590008
palette = 2=#005523
palette = 3=#6b5300
palette = 4=#004c73
palette = 5=#470045
palette = 6=#007373
palette = 7=#eef1f8
palette = 8=#4f5258
palette = 9=#590008
palette = 10=#005523
palette = 11=#6b5300
palette = 12=#004c73
palette = 13=#470045
palette = 14=#007373
palette = 15=#eef1f8
background = #e0e2ea
foreground = #14161b
cursor-color = #9b9ea4
cursor-text = #14161b
selection-background = #9b9ea4
selection-foreground = #14161b

Nvim Light 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#e0e2eargb(224 226 234)hsl(228 19% 90%)oklch(91.4% 0.011 274.9)—
前景色foreground#14161brgb(20 22 27)hsl(223 15% 9%)oklch(20.0% 0.010 268.2)13.99 AAA
光標cursor#9b9ea4rgb(155 158 164)hsl(220 5% 63%)oklch(69.9% 0.009 264.5)2.08 低於 AA
光標文字cursorText#14161brgb(20 22 27)hsl(223 15% 9%)oklch(20.0% 0.010 268.2)13.99 AAA
選取範圍selection#9b9ea4rgb(155 158 164)hsl(220 5% 63%)oklch(69.9% 0.009 264.5)2.08 低於 AA
選取文字selectionText#14161brgb(20 22 27)hsl(223 15% 9%)oklch(20.0% 0.010 268.2)13.99 AAA
黑color0#07080drgb(7 8 13)hsl(230 30% 4%)oklch(13.6% 0.012 274.6)15.47 AAA
紅color1#590008rgb(89 0 8)hsl(355 100% 17%)oklch(29.2% 0.119 25.0)11.37 AAA
綠color2#005523rgb(0 85 35)hsl(145 100% 17%)oklch(39.3% 0.109 149.8)6.99 AA
黃color3#6b5300rgb(107 83 0)hsl(47 100% 21%)oklch(45.4% 0.093 89.3)5.67 AA
藍color4#004c73rgb(0 76 115)hsl(200 100% 23%)oklch(39.8% 0.092 240.4)7.12 AAA
洋紅color5#470045rgb(71 0 69)hsl(302 100% 14%)oklch(27.8% 0.127 329.7)11.99 AAA
青color6#007373rgb(0 115 115)hsl(180 100% 23%)oklch(50.3% 0.086 194.8)4.39 AA 大字體
白color7#eef1f8rgb(238 241 248)hsl(222 42% 95%)oklch(95.8% 0.010 267.4)1.14 低於 AA
亮黑color8#4f5258rgb(79 82 88)hsl(220 5% 33%)oklch(43.8% 0.011 264.5)6.06 AA
亮紅color9#590008rgb(89 0 8)hsl(355 100% 17%)oklch(29.2% 0.119 25.0)11.37 AAA
亮綠color10#005523rgb(0 85 35)hsl(145 100% 17%)oklch(39.3% 0.109 149.8)6.99 AA
亮黃color11#6b5300rgb(107 83 0)hsl(47 100% 21%)oklch(45.4% 0.093 89.3)5.67 AA
亮藍color12#004c73rgb(0 76 115)hsl(200 100% 23%)oklch(39.8% 0.092 240.4)7.12 AAA
亮洋紅color13#470045rgb(71 0 69)hsl(302 100% 14%)oklch(27.8% 0.127 329.7)11.99 AAA
亮青color14#007373rgb(0 115 115)hsl(180 100% 23%)oklch(50.3% 0.086 194.8)4.39 AA 大字體
亮白color15#eef1f8rgb(238 241 248)hsl(222 42% 95%)oklch(95.8% 0.010 267.4)1.14 低於 AA

關於 Nvim Light

Nvim Light 採用中性色調的淺色背景(#e0e2ea),預設前景色為 #14161b。正文的 WCAG 對比度為 13.99:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.92:1,最低 4.39:1。

色板整體色彩飽和度適中,其中紅色為 #590008、綠色為 #005523、藍色為 #004c73、洋紅為 #470045。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合終端機、CSS 變數、Tailwind CSS 及 JSON 色板格式。

與 Nvim Light 相似的配色

資料來源:iTerm2 Color Schemes (Apache-2.0)