跳到主要內容

Halflife

Halflife 是一套深色終端機配色,背景色 #222222,文字色 #cccccc,對比度 9.9:1

取得設定檔
背景色
#222222
前景色
#cccccc
文字對比度
9.91:1AAA
強調色對比度
7.16:1最低 2.42
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
❯

Halflife 的設定檔

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

Halflife

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

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

palette = 0=#2f2f2f
palette = 1=#ba0e2e
palette = 2=#fc913a
palette = 3=#7d8991
palette = 4=#f9d423
palette = 5=#7d8991
palette = 6=#f85931
palette = 7=#d9d9d9
palette = 8=#484848
palette = 9=#e61f44
palette = 10=#fec99e
palette = 11=#b4bbc0
palette = 12=#fce786
palette = 13=#b4bbc0
palette = 14=#fba894
palette = 15=#f2f2f2
background = #222222
foreground = #cccccc
cursor-color = #f8f8f0
cursor-text = #cccccc
selection-background = #f85931
selection-foreground = #ffffff

Halflife 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#222222rgb(34 34 34)hsl(0 0% 13%)oklch(25.2% 0.000 0)—
前景色foreground#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)9.91 AAA
游標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)14.91 AAA
游標文字cursorText#ccccccrgb(204 204 204)hsl(0 0% 80%)oklch(84.5% 0.000 0)9.91 AAA
選取範圍selection#f85931rgb(248 89 49)hsl(12 93% 58%)oklch(67.1% 0.202 35.0)4.90 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)15.91 AAA
黑color0#2f2f2frgb(47 47 47)hsl(0 0% 18%)oklch(30.5% 0.000 0)1.19 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.42 低於 AA
綠color2#fc913argb(252 145 58)hsl(27 97% 61%)oklch(75.7% 0.161 55.5)7.01 AAA
黃color3#7d8991rgb(125 137 145)hsl(204 8% 53%)oklch(62.3% 0.019 236.9)4.44 AA 大字級
藍color4#f9d423rgb(249 212 35)hsl(50 95% 56%)oklch(87.6% 0.174 95.6)10.96 AAA
洋紅color5#7d8991rgb(125 137 145)hsl(204 8% 53%)oklch(62.3% 0.019 236.9)4.44 AA 大字級
青color6#f85931rgb(248 89 49)hsl(12 93% 58%)oklch(67.1% 0.202 35.0)4.90 AA
白color7#d9d9d9rgb(217 217 217)hsl(0 0% 85%)oklch(88.5% 0.000 0)11.27 AAA
亮黑color8#484848rgb(72 72 72)hsl(0 0% 28%)oklch(40.2% 0.000 0)1.74 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)3.52 AA 大字級
亮綠color10#fec99ergb(254 201 158)hsl(27 98% 81%)oklch(87.3% 0.083 60.5)10.65 AAA
亮黃color11#b4bbc0rgb(180 187 192)hsl(205 9% 73%)oklch(78.8% 0.011 238.6)8.19 AAA
亮藍color12#fce786rgb(252 231 134)hsl(49 95% 76%)oklch(92.5% 0.120 97.4)12.81 AAA
亮洋紅color13#b4bbc0rgb(180 187 192)hsl(205 9% 73%)oklch(78.8% 0.011 238.6)8.19 AAA
亮青color14#fba894rgb(251 168 148)hsl(12 93% 78%)oklch(80.8% 0.103 34.2)8.43 AAA
亮白color15#f2f2f2rgb(242 242 242)hsl(0 0% 95%)oklch(96.1% 0.000 0)14.21 AAA

關於 Halflife

Halflife 採用中性色調的深色背景(#222222),預設前景色為 #cccccc。內文的 WCAG 對比度為 9.91:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.16:1,最低 2.42:1。

色票整體色彩彩度適中,其中紅色為 #ba0e2e、綠色為 #fc913a、藍色為 #f9d423、洋紅為 #7d8991。

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

與 Halflife 相似的配色

資料來源:Rainglow (MIT)