跳到主要內容

Batman

Batman 是一套深色終端機配色(柔和、單色),背景色 #1b1d1e,文字色 #6f6f6f,對比度 3.4:1

取得設定檔
背景色
#1b1d1e
前景色
#6f6f6f
文字對比度
3.37:1AA 大字體
強調色對比度
9.00:1最低 2.71
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
❯

Batman 的設定檔

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

Batman

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

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

palette = 0=#1b1d1e
palette = 1=#e6dc44
palette = 2=#c8be46
palette = 3=#f4fd22
palette = 4=#737174
palette = 5=#747271
palette = 6=#62605f
palette = 7=#c6c5bf
palette = 8=#505354
palette = 9=#fff78e
palette = 10=#fff27d
palette = 11=#feed6c
palette = 12=#919495
palette = 13=#9a9a9d
palette = 14=#a3a3a6
palette = 15=#dadbd6
background = #1b1d1e
foreground = #6f6f6f
cursor-color = #fcef0c
cursor-text = #000000
selection-background = #4d504c
selection-foreground = #f0e04a

Batman 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1b1d1ergb(27 29 30)hsl(200 5% 11%)oklch(22.9% 0.004 229.0)—
前景色foreground#6f6f6frgb(111 111 111)hsl(0 0% 44%)oklch(54.2% 0.000 0)3.37 AA 大字體
光標cursor#fcef0crgb(252 239 12)hsl(57 98% 52%)oklch(93.3% 0.197 105.6)14.09 AAA
光標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.24 低於 AA
選取範圍selection#4d504crgb(77 80 76)hsl(105 3% 31%)oklch(42.7% 0.008 137.8)2.07 低於 AA
選取文字selectionText#f0e04argb(240 224 74)hsl(54 85% 62%)oklch(89.4% 0.164 103.1)12.46 AAA
黑color0#1b1d1ergb(27 29 30)hsl(200 5% 11%)oklch(22.9% 0.004 229.0)1.00 低於 AA
紅color1#e6dc44rgb(230 220 68)hsl(56 76% 58%)oklch(87.7% 0.165 105.6)11.83 AAA
綠color2#c8be46rgb(200 190 70)hsl(55 54% 53%)oklch(78.8% 0.139 104.5)8.79 AAA
黃color3#f4fd22rgb(244 253 34)hsl(62 98% 56%)oklch(95.6% 0.207 112.4)15.24 AAA
藍color4#737174rgb(115 113 116)hsl(280 1% 45%)oklch(55.1% 0.005 314.8)3.50 AA 大字體
洋紅color5#747271rgb(116 114 113)hsl(20 1% 45%)oklch(55.4% 0.003 48.7)3.54 AA 大字體
青color6#62605frgb(98 96 95)hsl(20 2% 38%)oklch(49.1% 0.003 48.7)2.71 低於 AA
白color7#c6c5bfrgb(198 197 191)hsl(51 6% 76%)oklch(82.3% 0.008 98.9)9.78 AAA
亮黑color8#505354rgb(80 83 84)hsl(195 2% 32%)oklch(44.0% 0.004 219.6)2.18 低於 AA
亮紅color9#fff78ergb(255 247 142)hsl(56 100% 78%)oklch(96.1% 0.127 104.7)15.27 AAA
亮綠color10#fff27drgb(255 242 125)hsl(54 100% 75%)oklch(94.8% 0.139 103.0)14.70 AAA
亮黃color11#feed6crgb(254 237 108)hsl(53 99% 71%)oklch(93.5% 0.149 101.9)14.14 AAA
亮藍color12#919495rgb(145 148 149)hsl(195 2% 58%)oklch(66.4% 0.004 219.5)5.54 AA
亮洋紅color13#9a9a9drgb(154 154 157)hsl(240 2% 61%)oklch(68.7% 0.004 286.3)6.03 AA
亮青color14#a3a3a6rgb(163 163 166)hsl(240 2% 65%)oklch(71.6% 0.004 286.3)6.73 AA
亮白color15#dadbd6rgb(218 219 214)hsl(72 6% 85%)oklch(88.9% 0.007 115.7)12.15 AAA

關於 Batman

Batman 採用中性色調的深色背景(#1b1d1e),預設前景色為 #6f6f6f。正文的 WCAG 對比度為 3.37:1(AA 大字體),12 種 ANSI 彩色槽位平均對比度 9.00:1,最低 2.71:1。

色板整體色彩飽和度偏低,其中紅色為 #e6dc44、綠色為 #c8be46、藍色為 #737174、洋紅為 #747271。

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

與 Batman 相似的配色

資料來源:iTerm2 Color Schemes (MIT)