跳到主要內容

One Black

One Black 是一套深色終端機配色(純黑),背景色 #000000,文字色 #abb2bf,對比度 9.8:1

取得設定檔
背景色
#000000
前景色
#abb2bf
文字對比度
9.85:1AAA
強調色對比度
9.22:1最低 5.64
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
❯

One Black 的設定檔

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

One Black

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

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

palette = 0=#000000
palette = 1=#e05561
palette = 2=#8cc265
palette = 3=#e6b965
palette = 4=#4aa5f0
palette = 5=#c162de
palette = 6=#42b3c2
palette = 7=#abb2bf
palette = 8=#545862
palette = 9=#ff616e
palette = 10=#a5e075
palette = 11=#f0a45d
palette = 12=#4dc4ff
palette = 13=#de73ff
palette = 14=#4cd1e0
palette = 15=#ffffff
background = #000000
foreground = #abb2bf
cursor-color = #abb2bf
cursor-text = #000000
selection-background = #131416
selection-foreground = #abb2bf

One Black 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)—
前景色foreground#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)9.85 AAA
光標cursor#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)9.85 AAA
光標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低於 AA
選取範圍selection#131416rgb(19 20 22)hsl(220 7% 8%)oklch(19.1% 0.004 264.5)1.14 低於 AA
選取文字selectionText#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)9.85 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低於 AA
紅color1#e05561rgb(224 85 97)hsl(355 69% 61%)oklch(63.6% 0.173 18.5)5.64 AA
綠color2#8cc265rgb(140 194 101)hsl(95 43% 58%)oklch(75.5% 0.136 133.5)10.02 AAA
黃color3#e6b965rgb(230 185 101)hsl(39 72% 65%)oklch(80.9% 0.115 81.5)11.49 AAA
藍color4#4aa5f0rgb(74 165 240)hsl(207 85% 62%)oklch(70.0% 0.140 246.5)7.93 AAA
洋紅color5#c162dergb(193 98 222)hsl(286 65% 63%)oklch(65.7% 0.197 317.7)6.07 AA
青color6#42b3c2rgb(66 179 194)hsl(187 51% 51%)oklch(70.9% 0.102 207.5)8.46 AAA
白color7#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)9.85 AAA
亮黑color8#545862rgb(84 88 98)hsl(223 8% 36%)oklch(46.0% 0.017 268.3)2.95 低於 AA
亮紅color9#ff616ergb(255 97 110)hsl(355 100% 69%)oklch(70.0% 0.192 18.8)7.19 AAA
亮綠color10#a5e075rgb(165 224 117)hsl(93 63% 67%)oklch(84.3% 0.151 132.5)13.52 AAA
亮黃color11#f0a45drgb(240 164 93)hsl(29 83% 65%)oklch(77.9% 0.126 62.3)10.17 AAA
亮藍color12#4dc4ffrgb(77 196 255)hsl(200 100% 65%)oklch(77.8% 0.134 234.0)10.66 AAA
亮洋紅color13#de73ffrgb(222 115 255)hsl(286 100% 73%)oklch(73.1% 0.217 317.6)8.00 AAA
亮青color14#4cd1e0rgb(76 209 224)hsl(186 70% 59%)oklch(79.5% 0.115 205.8)11.50 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA

關於 One Black

One Black 採用中性色調的深色背景(#000000),預設前景色為 #abb2bf。正文的 WCAG 對比度為 9.85:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.22:1,最低 5.64:1。

色板整體色彩飽和度適中,其中紅色為 #e05561、綠色為 #8cc265、藍色為 #4aa5f0、洋紅為 #c162de。

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

與 One Black 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)