跳到主要內容

Oxocarbon

Oxocarbon 是一套深色終端機配色(鮮豔),背景色 #161616,文字色 #f2f4f8,對比度 16.4:1

取得設定檔
背景色
#161616
前景色
#f2f4f8
文字對比度
16.43:1AAA
強調色對比度
7.79:1最低 5.58
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
❯

Oxocarbon 的設定檔

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

Oxocarbon

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

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

palette = 0=#161616
palette = 1=#00dfdb
palette = 2=#00b4ff
palette = 3=#ff4297
palette = 4=#00c15a
palette = 5=#c693ff
palette = 6=#ff74b8
palette = 7=#f2f4f8
palette = 8=#585858
palette = 9=#00dfdb
palette = 10=#00b4ff
palette = 11=#ff4297
palette = 12=#00c15a
palette = 13=#c693ff
palette = 14=#ff74b8
palette = 15=#f2f4f8
background = #161616
foreground = #f2f4f8
cursor-color = #ffffff
cursor-text = #000000
selection-background = #393939
selection-foreground = #161616

Oxocarbon 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#161616rgb(22 22 22)hsl(0 0% 9%)oklch(20.0% 0.000 0)—
前景色foreground#f2f4f8rgb(242 244 248)hsl(220 30% 96%)oklch(96.7% 0.006 264.5)16.43 AAA
游標cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.10 AAA
游標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.16 低於 AA
選取範圍selection#393939rgb(57 57 57)hsl(0 0% 22%)oklch(34.5% 0.000 0)1.57 低於 AA
選取文字selectionText#161616rgb(22 22 22)hsl(0 0% 9%)oklch(20.0% 0.000 0)1.00 低於 AA
黑color0#161616rgb(22 22 22)hsl(0 0% 9%)oklch(20.0% 0.000 0)1.00 低於 AA
紅color1#00dfdbrgb(0 223 219)hsl(179 100% 44%)oklch(81.7% 0.140 192.5)10.84 AAA
綠color2#00b4ffrgb(0 180 255)hsl(198 100% 50%)oklch(73.0% 0.160 237.4)7.73 AAA
黃color3#ff4297rgb(255 66 151)hsl(333 100% 63%)oklch(68.0% 0.232 358.2)5.58 AA
藍color4#00c15argb(0 193 90)hsl(148 100% 38%)oklch(70.9% 0.195 150.1)7.56 AAA
洋紅color5#c693ffrgb(198 147 255)hsl(268 100% 79%)oklch(75.3% 0.158 304.7)7.77 AAA
青color6#ff74b8rgb(255 116 184)hsl(331 100% 73%)oklch(74.3% 0.183 351.9)7.27 AAA
白color7#f2f4f8rgb(242 244 248)hsl(220 30% 96%)oklch(96.7% 0.006 264.5)16.43 AAA
亮黑color8#585858rgb(88 88 88)hsl(0 0% 35%)oklch(46.0% 0.000 0)2.54 低於 AA
亮紅color9#00dfdbrgb(0 223 219)hsl(179 100% 44%)oklch(81.7% 0.140 192.5)10.84 AAA
亮綠color10#00b4ffrgb(0 180 255)hsl(198 100% 50%)oklch(73.0% 0.160 237.4)7.73 AAA
亮黃color11#ff4297rgb(255 66 151)hsl(333 100% 63%)oklch(68.0% 0.232 358.2)5.58 AA
亮藍color12#00c15argb(0 193 90)hsl(148 100% 38%)oklch(70.9% 0.195 150.1)7.56 AAA
亮洋紅color13#c693ffrgb(198 147 255)hsl(268 100% 79%)oklch(75.3% 0.158 304.7)7.77 AAA
亮青color14#ff74b8rgb(255 116 184)hsl(331 100% 73%)oklch(74.3% 0.183 351.9)7.27 AAA
亮白color15#f2f4f8rgb(242 244 248)hsl(220 30% 96%)oklch(96.7% 0.006 264.5)16.43 AAA

關於 Oxocarbon

Oxocarbon 採用中性色調的深色背景(#161616),預設前景色為 #f2f4f8。內文的 WCAG 對比度為 16.43:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.79:1,最低 5.58:1。

色票整體色彩彩度較高,其中紅色為 #00dfdb、綠色為 #00b4ff、藍色為 #00c15a、洋紅為 #c693ff。此配色歸屬 Oxocarbon 主題系列。

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

與 Oxocarbon 相似的配色

資料來源:iTerm2 Color Schemes (MIT)