跳到主要內容

Sonokai

Sonokai 是一套深色終端機配色,背景色 #2c2e34,文字色 #e2e2e3,對比度 10.5:1

取得設定檔
背景色
#2c2e34
前景色
#e2e2e3
文字對比度
10.48:1AAA
強調色對比度
6.60:1最低 4.52
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
❯

Sonokai 的設定檔

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

Sonokai

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

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

palette = 0=#181819
palette = 1=#fc5d7c
palette = 2=#9ed072
palette = 3=#e7c664
palette = 4=#76cce0
palette = 5=#b39df3
palette = 6=#f39660
palette = 7=#e2e2e3
palette = 8=#7f8490
palette = 9=#fc5d7c
palette = 10=#9ed072
palette = 11=#e7c664
palette = 12=#76cce0
palette = 13=#b39df3
palette = 14=#f39660
palette = 15=#e2e2e3
background = #2c2e34
foreground = #e2e2e3
cursor-color = #e2e2e3
cursor-text = #2c2e34
selection-background = #414550
selection-foreground = #e2e2e3

Sonokai 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2c2e34rgb(44 46 52)hsl(225 8% 19%)oklch(30.2% 0.011 271.0)—
前景色foreground#e2e2e3rgb(226 226 227)hsl(240 2% 89%)oklch(91.3% 0.001 286.4)10.48 AAA
游標cursor#e2e2e3rgb(226 226 227)hsl(240 2% 89%)oklch(91.3% 0.001 286.4)10.48 AAA
游標文字cursorText#2c2e34rgb(44 46 52)hsl(225 8% 19%)oklch(30.2% 0.011 271.0)1.00 低於 AA
選取範圍selection#414550rgb(65 69 80)hsl(224 10% 28%)oklch(39.1% 0.019 269.6)1.42 低於 AA
選取文字selectionText#e2e2e3rgb(226 226 227)hsl(240 2% 89%)oklch(91.3% 0.001 286.4)10.48 AAA
黑color0#181819rgb(24 24 25)hsl(240 2% 10%)oklch(20.9% 0.002 286.2)1.31 低於 AA
紅color1#fc5d7crgb(252 93 124)hsl(348 96% 68%)oklch(69.4% 0.194 12.0)4.52 AA
綠color2#9ed072rgb(158 208 114)hsl(92 50% 63%)oklch(80.1% 0.134 131.7)7.57 AAA
黃color3#e7c664rgb(231 198 100)hsl(45 73% 65%)oklch(83.6% 0.123 91.0)8.18 AAA
藍color4#76cce0rgb(118 204 224)hsl(191 63% 67%)oklch(79.8% 0.088 214.4)7.42 AAA
洋紅color5#b39df3rgb(179 157 243)hsl(255 78% 78%)oklch(74.8% 0.123 295.0)5.84 AA
青color6#f39660rgb(243 150 96)hsl(22 86% 66%)oklch(75.8% 0.132 49.9)6.04 AA
白color7#e2e2e3rgb(226 226 227)hsl(240 2% 89%)oklch(91.3% 0.001 286.4)10.48 AAA
亮黑color8#7f8490rgb(127 132 144)hsl(222 7% 53%)oklch(61.3% 0.019 267.7)3.62 AA 大字級
亮紅color9#fc5d7crgb(252 93 124)hsl(348 96% 68%)oklch(69.4% 0.194 12.0)4.52 AA
亮綠color10#9ed072rgb(158 208 114)hsl(92 50% 63%)oklch(80.1% 0.134 131.7)7.57 AAA
亮黃color11#e7c664rgb(231 198 100)hsl(45 73% 65%)oklch(83.6% 0.123 91.0)8.18 AAA
亮藍color12#76cce0rgb(118 204 224)hsl(191 63% 67%)oklch(79.8% 0.088 214.4)7.42 AAA
亮洋紅color13#b39df3rgb(179 157 243)hsl(255 78% 78%)oklch(74.8% 0.123 295.0)5.84 AA
亮青color14#f39660rgb(243 150 96)hsl(22 86% 66%)oklch(75.8% 0.132 49.9)6.04 AA
亮白color15#e2e2e3rgb(226 226 227)hsl(240 2% 89%)oklch(91.3% 0.001 286.4)10.48 AAA

關於 Sonokai

Sonokai 採用中性色調的深色背景(#2c2e34),預設前景色為 #e2e2e3。內文的 WCAG 對比度為 10.48:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.60:1,最低 4.52:1。

色票整體色彩彩度適中,其中紅色為 #fc5d7c、綠色為 #9ed072、藍色為 #76cce0、洋紅為 #b39df3。此配色歸屬 Monokai 主題系列。

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

與 Sonokai 相似的配色

資料來源:iTerm2 Color Schemes (MIT)