跳到正文

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/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)