跳到主要內容

Dark Ocean

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

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

Dark Ocean 的設定檔

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

Dark Ocean

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

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

palette = 0=#000000
palette = 1=#571dc2
palette = 2=#14db49
palette = 3=#403d70
palette = 4=#385a70
palette = 5=#384894
palette = 6=#4f3a5e
palette = 7=#999999
palette = 8=#38372c
palette = 9=#7c54b0
palette = 10=#a2e655
palette = 11=#9c6f59
palette = 12=#323f5c
palette = 13=#5e6c99
palette = 14=#667d77
palette = 15=#ffffff
background = #000000
foreground = #ffffff
cursor-color = #ffffff
cursor-text = #000000
selection-background = #222222
selection-foreground = #ffffff

Dark Ocean 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA
光標cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA
光標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低於 AA
選取範圍selection#222222rgb(34 34 34)hsl(0 0% 13%)oklch(25.2% 0.000 0)1.32 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低於 AA
紅color1#571dc2rgb(87 29 194)hsl(261 74% 44%)oklch(43.6% 0.226 288.9)2.36 低於 AA
綠color2#14db49rgb(20 219 73)hsl(136 83% 47%)oklch(77.7% 0.235 145.8)11.26 AAA
黃color3#403d70rgb(64 61 112)hsl(244 29% 34%)oklch(38.9% 0.085 284.4)2.12 低於 AA
藍color4#385a70rgb(56 90 112)hsl(204 33% 33%)oklch(45.1% 0.054 238.0)2.86 低於 AA
洋紅color5#384894rgb(56 72 148)hsl(230 45% 40%)oklch(43.1% 0.126 271.3)2.52 低於 AA
青color6#4f3a5ergb(79 58 94)hsl(275 24% 30%)oklch(38.7% 0.065 310.3)2.10 低於 AA
白color7#999999rgb(153 153 153)hsl(0 0% 60%)oklch(68.3% 0.000 0)7.37 AAA
亮黑color8#38372crgb(56 55 44)hsl(55 12% 20%)oklch(33.4% 0.019 103.1)1.75 低於 AA
亮紅color9#7c54b0rgb(124 84 176)hsl(266 37% 51%)oklch(53.1% 0.143 301.8)3.75 AA 大字體
亮綠color10#a2e655rgb(162 230 85)hsl(88 74% 62%)oklch(85.1% 0.188 130.9)13.99 AAA
亮黃color11#9c6f59rgb(156 111 89)hsl(20 27% 48%)oklch(58.2% 0.066 47.0)4.83 AA
亮藍color12#323f5crgb(50 63 92)hsl(221 30% 28%)oklch(37.0% 0.053 265.4)2.00 低於 AA
亮洋紅color13#5e6c99rgb(94 108 153)hsl(226 24% 48%)oklch(53.8% 0.073 270.6)4.08 AA 大字體
亮青color14#667d77rgb(102 125 119)hsl(164 10% 45%)oklch(57.0% 0.028 177.7)4.76 AA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA

關於 Dark Ocean

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

色板整體色彩飽和度適中,其中紅色為 #571dc2、綠色為 #14db49、藍色為 #385a70、洋紅為 #384894。

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

與 Dark Ocean 相似的配色

資料來源:terminal.sexy (MIT)