跳到主要內容

After Hours

After Hours 是一套深色終端機配色(純黑、高對比),背景色 #0f0b0a,文字色 #e6e1d9,對比度 15.0:1

取得設定檔
背景色
#0f0b0a
前景色
#e6e1d9
文字對比度
15.04:1AAA
強調色對比度
10.21:1最低 7.06
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
❯

After Hours 的設定檔

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

After Hours

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

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

palette = 0=#2a1f1a
palette = 1=#ff6b6b
palette = 2=#4ade80
palette = 3=#f59e0b
palette = 4=#60a5fa
palette = 5=#c084fc
palette = 6=#2dd4bf
palette = 7=#cbb89f
palette = 8=#6b5b4f
palette = 9=#ff8b8b
palette = 10=#86efac
palette = 11=#fbbf24
palette = 12=#93c5fd
palette = 13=#d8b4fe
palette = 14=#5eead4
palette = 15=#fdfaf6
background = #0f0b0a
foreground = #e6e1d9
cursor-color = #d4af37
cursor-text = #0f0b0a
selection-background = #3d2f27
selection-foreground = #e6e1d9

After Hours 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0f0b0argb(15 11 10)hsl(12 20% 5%)oklch(15.4% 0.007 34.3)—
前景色foreground#e6e1d9rgb(230 225 217)hsl(37 21% 88%)oklch(91.1% 0.012 79.8)15.04 AAA
游標cursor#d4af37rgb(212 175 55)hsl(46 65% 52%)oklch(76.7% 0.139 91.1)9.31 AAA
游標文字cursorText#0f0b0argb(15 11 10)hsl(12 20% 5%)oklch(15.4% 0.007 34.3)1.00 低於 AA
選取範圍selection#3d2f27rgb(61 47 39)hsl(22 22% 20%)oklch(31.8% 0.025 51.3)1.52 低於 AA
選取文字selectionText#e6e1d9rgb(230 225 217)hsl(37 21% 88%)oklch(91.1% 0.012 79.8)15.04 AAA
黑color0#2a1f1argb(42 31 26)hsl(19 24% 13%)oklch(25.1% 0.020 45.7)1.22 低於 AA
紅color1#ff6b6brgb(255 107 107)hsl(0 100% 71%)oklch(71.2% 0.181 22.8)7.06 AAA
綠color2#4ade80rgb(74 222 128)hsl(142 69% 58%)oklch(80.0% 0.182 151.7)11.24 AAA
黃color3#f59e0brgb(245 158 11)hsl(38 92% 50%)oklch(76.9% 0.165 70.1)9.12 AAA
藍color4#60a5fargb(96 165 250)hsl(213 94% 68%)oklch(71.4% 0.143 254.6)7.70 AAA
洋紅color5#c084fcrgb(192 132 252)hsl(270 95% 75%)oklch(72.2% 0.177 305.5)7.41 AAA
青color6#2dd4bfrgb(45 212 191)hsl(172 66% 50%)oklch(78.5% 0.133 181.9)10.52 AAA
白color7#cbb89frgb(203 184 159)hsl(34 30% 71%)oklch(79.2% 0.041 74.7)10.16 AAA
亮黑color8#6b5b4frgb(107 91 79)hsl(26 15% 36%)oklch(48.3% 0.028 58.9)3.02 AA 大字級
亮紅color9#ff8b8brgb(255 139 139)hsl(0 100% 77%)oklch(76.3% 0.141 20.9)8.69 AAA
亮綠color10#86efacrgb(134 239 172)hsl(142 77% 73%)oklch(87.1% 0.136 154.4)13.94 AAA
亮黃color11#fbbf24rgb(251 191 36)hsl(43 96% 56%)oklch(83.7% 0.164 84.4)11.73 AAA
亮藍color12#93c5fdrgb(147 197 253)hsl(212 96% 78%)oklch(80.9% 0.096 251.8)10.86 AAA
亮洋紅color13#d8b4fergb(216 180 254)hsl(269 97% 85%)oklch(82.7% 0.108 306.4)11.08 AAA
亮青color14#5eead4rgb(94 234 212)hsl(171 77% 64%)oklch(85.5% 0.125 181.1)13.24 AAA
亮白color15#fdfaf6rgb(253 250 246)hsl(34 64% 98%)oklch(98.6% 0.006 75.4)18.82 AAA

關於 After Hours

After Hours 採用中性色調的深色背景(#0f0b0a),預設前景色為 #e6e1d9。內文的 WCAG 對比度為 15.04:1(AAA),12 種 ANSI 彩色槽位平均對比度 10.21:1,最低 7.06:1。

色票整體色彩彩度適中,其中紅色為 #ff6b6b、綠色為 #4ade80、藍色為 #60a5fa、洋紅為 #c084fc。

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

與 After Hours 相似的配色

資料來源:iTerm2 Color Schemes (MIT)