跳到主要內容

Iterm

Iterm 是一套深色終端機配色(高對比、冷色),背景色 #101421,文字色 #fffbf6,對比度 17.8:1

取得設定檔
背景色
#101421
前景色
#fffbf6
文字對比度
17.82:1AAA
強調色對比度
9.03:1最低 3.50
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
❯

Iterm 的設定檔

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

Iterm

存到 ~/.config/ghostty/themes/Iterm,再在 config 或 config.ghostty 裡寫 theme = Iterm

更多 Ghostty 配色
原始檔
# Theme: Iterm (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/iterm?format=ghostty

palette = 0=#2e2e2e
palette = 1=#eb4129
palette = 2=#abe047
palette = 3=#f6c744
palette = 4=#47a0f3
palette = 5=#7b5cb0
palette = 6=#64dbed
palette = 7=#e5e9f0
palette = 8=#565656
palette = 9=#ec5357
palette = 10=#c0e17d
palette = 11=#f9da6a
palette = 12=#49a4f8
palette = 13=#a47de9
palette = 14=#99faf2
palette = 15=#ffffff
background = #101421
foreground = #fffbf6
cursor-color = #fffbf6
cursor-text = #101421
selection-background = #424550
selection-foreground = #fffbf6

Iterm 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#101421rgb(16 20 33)hsl(226 35% 10%)oklch(19.4% 0.027 270.6)—
前景色foreground#fffbf6rgb(255 251 246)hsl(33 100% 98%)oklch(99.0% 0.008 73.7)17.82 AAA
游標cursor#fffbf6rgb(255 251 246)hsl(33 100% 98%)oklch(99.0% 0.008 73.7)17.82 AAA
游標文字cursorText#101421rgb(16 20 33)hsl(226 35% 10%)oklch(19.4% 0.027 270.6)1.00 低於 AA
選取範圍selection#424550rgb(66 69 80)hsl(227 10% 29%)oklch(39.2% 0.019 273.4)1.92 低於 AA
選取文字selectionText#fffbf6rgb(255 251 246)hsl(33 100% 98%)oklch(99.0% 0.008 73.7)17.82 AAA
黑color0#2e2e2ergb(46 46 46)hsl(0 0% 18%)oklch(30.1% 0.000 0)1.35 低於 AA
紅color1#eb4129rgb(235 65 41)hsl(7 83% 54%)oklch(62.4% 0.210 31.3)4.65 AA
綠color2#abe047rgb(171 224 71)hsl(81 71% 58%)oklch(84.1% 0.186 126.7)11.79 AAA
黃color3#f6c744rgb(246 199 68)hsl(44 91% 62%)oklch(84.9% 0.151 88.4)11.51 AAA
藍color4#47a0f3rgb(71 160 243)hsl(209 88% 62%)oklch(69.0% 0.149 249.6)6.63 AA
洋紅color5#7b5cb0rgb(123 92 176)hsl(262 35% 53%)oklch(54.4% 0.130 299.1)3.50 AA 大字級
青color6#64dbedrgb(100 219 237)hsl(188 79% 66%)oklch(83.0% 0.109 208.7)11.27 AAA
白color7#e5e9f0rgb(229 233 240)hsl(218 27% 92%)oklch(93.3% 0.010 261.8)15.07 AAA
亮黑color8#565656rgb(86 86 86)hsl(0 0% 34%)oklch(45.3% 0.000 0)2.50 低於 AA
亮紅color9#ec5357rgb(236 83 87)hsl(358 80% 63%)oklch(65.0% 0.189 22.6)5.19 AA
亮綠color10#c0e17drgb(192 225 125)hsl(80 63% 69%)oklch(86.4% 0.132 124.1)12.51 AAA
亮黃color11#f9da6argb(249 218 106)hsl(47 92% 70%)oklch(89.3% 0.135 94.0)13.34 AAA
亮藍color12#49a4f8rgb(73 164 248)hsl(209 93% 63%)oklch(70.2% 0.151 249.3)6.95 AA
亮洋紅color13#a47de9rgb(164 125 233)hsl(262 71% 70%)oklch(67.3% 0.158 298.7)5.85 AA
亮青color14#99faf2rgb(153 250 242)hsl(175 91% 79%)oklch(92.3% 0.093 189.0)15.13 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.36 AAA

關於 Iterm

Iterm 採用冷色調的深色背景(#101421),預設前景色為 #fffbf6。內文的 WCAG 對比度為 17.82:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.03:1,最低 3.50:1。

色票整體色彩彩度適中,其中紅色為 #eb4129、綠色為 #abe047、藍色為 #47a0f3、洋紅為 #7b5cb0。

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

與 Iterm 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)