跳到主要內容

One Dark Pro

One Dark Pro 是一套深色終端機配色(柔和、冷色),背景色 #282c34,文字色 #abb2bf,對比度 6.6:1

取得設定檔
背景色
#282c34
前景色
#abb2bf
文字對比度
6.57:1AA
強調色對比度
6.15:1最低 2.95
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 Dark Pro 的設定檔

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

One Dark Pro

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

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

palette = 0=#3f4451
palette = 1=#e06c75
palette = 2=#98c379
palette = 3=#d19a66
palette = 4=#61afef
palette = 5=#c678dd
palette = 6=#56b6c2
palette = 7=#d7dae0
palette = 8=#4f5666
palette = 9=#be5046
palette = 10=#a5e075
palette = 11=#e5c07b
palette = 12=#4dc4ff
palette = 13=#de73ff
palette = 14=#4cd1e0
palette = 15=#e6e6e6
background = #282c34
foreground = #abb2bf
cursor-color = #abb2bf
cursor-text = #282c34
selection-background = #464a54
selection-foreground = #abb2bf

One Dark Pro 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#282c34rgb(40 44 52)hsl(220 13% 18%)oklch(29.3% 0.016 264.3)—
前景色foreground#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)6.57 AA
光標cursor#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)6.57 AA
光標文字cursorText#282c34rgb(40 44 52)hsl(220 13% 18%)oklch(29.3% 0.016 264.3)1.00 低於 AA
選取範圍selection#464a54rgb(70 74 84)hsl(223 9% 30%)oklch(40.9% 0.018 268.3)1.58 低於 AA
選取文字selectionText#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)6.57 AA
黑color0#3f4451rgb(63 68 81)hsl(223 12% 28%)oklch(38.7% 0.023 268.7)1.44 低於 AA
紅color1#e06c75rgb(224 108 117)hsl(355 65% 65%)oklch(67.1% 0.145 17.0)4.38 AA 大字體
綠color2#98c379rgb(152 195 121)hsl(95 38% 62%)oklch(76.8% 0.110 133.0)6.94 AA
黃color3#d19a66rgb(209 154 102)hsl(29 54% 61%)oklch(72.7% 0.095 63.8)5.68 AA
藍color4#61afefrgb(97 175 239)hsl(207 82% 66%)oklch(73.0% 0.121 245.3)5.92 AA
洋紅color5#c678ddrgb(198 120 221)hsl(286 60% 67%)oklch(69.4% 0.164 318.2)4.75 AA
青color6#56b6c2rgb(86 182 194)hsl(187 47% 55%)oklch(72.3% 0.092 206.3)5.91 AA
白color7#d7dae0rgb(215 218 224)hsl(220 13% 86%)oklch(88.8% 0.009 264.5)10.00 AAA
亮黑color8#4f5666rgb(79 86 102)hsl(222 13% 35%)oklch(45.3% 0.028 266.6)1.90 低於 AA
亮紅color9#be5046rgb(190 80 70)hsl(5 48% 51%)oklch(57.2% 0.144 27.7)2.95 低於 AA
亮綠color10#a5e075rgb(165 224 117)hsl(93 63% 67%)oklch(84.3% 0.151 132.5)9.01 AAA
亮黃color11#e5c07brgb(229 192 123)hsl(39 67% 69%)oklch(82.5% 0.097 82.3)8.10 AAA
亮藍color12#4dc4ffrgb(77 196 255)hsl(200 100% 65%)oklch(77.8% 0.134 234.0)7.10 AAA
亮洋紅color13#de73ffrgb(222 115 255)hsl(286 100% 73%)oklch(73.1% 0.217 317.6)5.33 AA
亮青color14#4cd1e0rgb(76 209 224)hsl(186 70% 59%)oklch(79.5% 0.115 205.8)7.67 AAA
亮白color15#e6e6e6rgb(230 230 230)hsl(0 0% 90%)oklch(92.5% 0.000 0)11.22 AAA

關於 One Dark Pro

One Dark Pro 採用冷色調的深色背景(#282c34),預設前景色為 #abb2bf。正文的 WCAG 對比度為 6.57:1(AA),12 種 ANSI 彩色槽位平均對比度 6.15:1,最低 2.95:1。

色板整體色彩飽和度適中,其中紅色為 #e06c75、綠色為 #98c379、藍色為 #61afef、洋紅為 #c678dd。該配色歸屬 One Dark & One Light 主題系列。

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

與 One Dark Pro 相似的配色

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