跳到主要內容

Onedark Dark

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

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

Onedark Dark 的設定檔

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

Onedark Dark

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

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

palette = 0=#000000
palette = 1=#ef596f
palette = 2=#89ca78
palette = 3=#e5c07b
palette = 4=#61afef
palette = 5=#d55fde
palette = 6=#2bbac5
palette = 7=#abb2bf
palette = 8=#434852
palette = 9=#ef596f
palette = 10=#89ca78
palette = 11=#e5c07b
palette = 12=#61afef
palette = 13=#d55fde
palette = 14=#2bbac5
palette = 15=#c8ccd4
background = #000000
foreground = #abb2bf
cursor-color = #abb2bf
cursor-text = #000000
selection-background = #131416
selection-foreground = #abb2bf

Onedark Dark 色板

色板各槽位的色值及其相對背景的 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#ef596frgb(239 89 111)hsl(351 82% 64%)oklch(66.7% 0.184 15.0)6.33 AA
綠color2#89ca78rgb(137 202 120)hsl(108 44% 63%)oklch(77.5% 0.130 139.3)10.78 AAA
黃color3#e5c07brgb(229 192 123)hsl(39 67% 69%)oklch(82.5% 0.097 82.3)12.16 AAA
藍color4#61afefrgb(97 175 239)hsl(207 82% 66%)oklch(73.0% 0.121 245.3)8.89 AAA
洋紅color5#d55fdergb(213 95 222)hsl(296 66% 62%)oklch(67.8% 0.211 324.8)6.52 AA
青color6#2bbac5rgb(43 186 197)hsl(184 64% 47%)oklch(72.2% 0.115 203.0)8.93 AAA
白color7#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)9.85 AAA
亮黑color8#434852rgb(67 72 82)hsl(220 10% 29%)oklch(40.1% 0.018 264.3)2.29 低於 AA
亮紅color9#ef596frgb(239 89 111)hsl(351 82% 64%)oklch(66.7% 0.184 15.0)6.33 AA
亮綠color10#89ca78rgb(137 202 120)hsl(108 44% 63%)oklch(77.5% 0.130 139.3)10.78 AAA
亮黃color11#e5c07brgb(229 192 123)hsl(39 67% 69%)oklch(82.5% 0.097 82.3)12.16 AAA
亮藍color12#61afefrgb(97 175 239)hsl(207 82% 66%)oklch(73.0% 0.121 245.3)8.89 AAA
亮洋紅color13#d55fdergb(213 95 222)hsl(296 66% 62%)oklch(67.8% 0.211 324.8)6.52 AA
亮青color14#2bbac5rgb(43 186 197)hsl(184 64% 47%)oklch(72.2% 0.115 203.0)8.93 AAA
亮白color15#c8ccd4rgb(200 204 212)hsl(220 12% 81%)oklch(84.4% 0.012 264.5)13.04 AAA

關於 Onedark Dark

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

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

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

與 Onedark Dark 相似的配色

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