跳到主要內容

Afterimage

Afterimage 是一套淺色終端機配色,背景色 #fff7fb,文字色 #211522,對比度 16.7:1

取得設定檔
背景色
#fff7fb
前景色
#211522
文字對比度
16.69:1AAA
強調色對比度
8.38:1最低 7.26
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
❯

Afterimage 的設定檔

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

Afterimage

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

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

palette = 0=#332a33
palette = 1=#881f3b
palette = 2=#175b36
palette = 3=#695000
palette = 4=#1a478e
palette = 5=#623080
palette = 6=#005765
palette = 7=#403640
palette = 8=#504650
palette = 9=#932746
palette = 10=#155735
palette = 11=#624900
palette = 12=#143b77
palette = 13=#693889
palette = 14=#004956
palette = 15=#4a404a
background = #fff7fb
foreground = #211522
cursor-color = #6f356e
cursor-text = #fff7fb
selection-background = #ecdde6
selection-foreground = #211522

Afterimage 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fff7fbrgb(255 247 251)hsl(330 100% 98%)oklch(98.3% 0.010 345.4)—
前景色foreground#211522rgb(33 21 34)hsl(295 24% 11%)oklch(21.7% 0.031 324.0)16.69 AAA
光標cursor#6f356ergb(111 53 110)hsl(301 35% 32%)oklch(42.7% 0.113 328.0)8.28 AAA
光標文字cursorText#fff7fbrgb(255 247 251)hsl(330 100% 98%)oklch(98.3% 0.010 345.4)1.00 低於 AA
選取範圍selection#ecdde6rgb(236 221 230)hsl(324 28% 90%)oklch(91.2% 0.020 340.7)1.24 低於 AA
選取文字selectionText#211522rgb(33 21 34)hsl(295 24% 11%)oklch(21.7% 0.031 324.0)16.69 AAA
黑color0#332a33rgb(51 42 51)hsl(300 10% 18%)oklch(29.9% 0.020 326.1)13.13 AAA
紅color1#881f3brgb(136 31 59)hsl(344 63% 33%)oklch(42.1% 0.140 10.3)8.65 AAA
綠color2#175b36rgb(23 91 54)hsl(147 60% 22%)oklch(41.9% 0.091 154.9)7.71 AAA
黃color3#695000rgb(105 80 0)hsl(46 100% 21%)oklch(44.5% 0.091 87.8)7.26 AAA
藍color4#1a478ergb(26 71 142)hsl(217 69% 33%)oklch(41.0% 0.128 259.4)8.54 AAA
洋紅color5#623080rgb(98 48 128)hsl(278 45% 35%)oklch(41.3% 0.135 310.7)8.85 AAA
青color6#005765rgb(0 87 101)hsl(188 100% 20%)oklch(42.0% 0.074 213.3)7.82 AAA
白color7#403640rgb(64 54 64)hsl(300 8% 23%)oklch(34.7% 0.022 326.0)10.96 AAA
亮黑color8#504650rgb(80 70 80)hsl(300 7% 29%)oklch(40.8% 0.021 326.0)8.55 AAA
亮紅color9#932746rgb(147 39 70)hsl(343 58% 36%)oklch(45.1% 0.144 8.1)7.62 AAA
亮綠color10#155735rgb(21 87 53)hsl(149 61% 21%)oklch(40.7% 0.087 156.1)8.15 AAA
亮黃color11#624900rgb(98 73 0)hsl(45 100% 19%)oklch(42.1% 0.086 86.0)8.07 AAA
亮藍color12#143b77rgb(20 59 119)hsl(216 71% 27%)oklch(36.2% 0.112 259.1)10.38 AAA
亮洋紅color13#693889rgb(105 56 137)hsl(276 42% 38%)oklch(44.0% 0.135 309.9)7.89 AAA
亮青color14#004956rgb(0 73 86)hsl(189 100% 17%)oklch(37.3% 0.066 214.7)9.56 AAA
亮白color15#4a404argb(74 64 74)hsl(300 7% 27%)oklch(38.5% 0.021 326.0)9.39 AAA

關於 Afterimage

Afterimage 採用中性色調的淺色背景(#fff7fb),預設前景色為 #211522。正文的 WCAG 對比度為 16.69:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.38:1,最低 7.26:1。

色板整體色彩飽和度適中,其中紅色為 #881f3b、綠色為 #175b36、藍色為 #1a478e、洋紅為 #623080。

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

與 Afterimage 相似的配色

資料來源:iTerm2 Color Schemes (MIT)