跳到主要內容

Kokuban

Kokuban 是一套深色終端機配色,背景色 #0d4a08,文字色 #d8e2d7,對比度 7.9:1

取得設定檔
背景色
#0d4a08
前景色
#d8e2d7
文字對比度
7.89:1AAA
強調色對比度
5.04:1最低 2.35
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
❯

Kokuban 的設定檔

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

Kokuban

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

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

palette = 0=#2e8744
palette = 1=#d84e4c
palette = 2=#95da5a
palette = 3=#d6e264
palette = 4=#4b9ed7
palette = 5=#945fc5
palette = 6=#d89b25
palette = 7=#d8e2d7
palette = 8=#34934f
palette = 9=#ff4f59
palette = 10=#aff56a
palette = 11=#fcff75
palette = 12=#57aeff
palette = 13=#ae63e9
palette = 14=#ffaa2b
palette = 15=#fffefe
background = #0d4a08
foreground = #d8e2d7
cursor-color = #d8e2d7
cursor-text = #0d4a08
selection-background = #436e3e
selection-foreground = #d8e2d7

Kokuban 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0d4a08rgb(13 74 8)hsl(115 80% 16%)oklch(35.8% 0.112 142.0)—
前景色foreground#d8e2d7rgb(216 226 215)hsl(115 16% 86%)oklch(90.2% 0.018 142.8)7.89 AAA
光標cursor#d8e2d7rgb(216 226 215)hsl(115 16% 86%)oklch(90.2% 0.018 142.8)7.89 AAA
光標文字cursorText#0d4a08rgb(13 74 8)hsl(115 80% 16%)oklch(35.8% 0.112 142.0)1.00 低於 AA
選取範圍selection#436e3ergb(67 110 62)hsl(114 28% 34%)oklch(49.4% 0.088 141.8)1.77 低於 AA
選取文字selectionText#d8e2d7rgb(216 226 215)hsl(115 16% 86%)oklch(90.2% 0.018 142.8)7.89 AAA
黑color0#2e8744rgb(46 135 68)hsl(135 49% 35%)oklch(55.4% 0.132 148.4)2.33 低於 AA
紅color1#d84e4crgb(216 78 76)hsl(1 64% 57%)oklch(61.1% 0.174 24.6)2.56 低於 AA
綠color2#95da5argb(149 218 90)hsl(92 63% 60%)oklch(81.6% 0.175 132.8)6.23 AA
黃color3#d6e264rgb(214 226 100)hsl(66 68% 64%)oklch(87.9% 0.150 114.0)7.46 AAA
藍color4#4b9ed7rgb(75 158 215)hsl(204 64% 57%)oklch(67.2% 0.117 241.5)3.59 AA 大字體
洋紅color5#945fc5rgb(148 95 197)hsl(271 47% 57%)oklch(58.7% 0.157 306.1)2.35 低於 AA
青color6#d89b25rgb(216 155 37)hsl(40 71% 50%)oklch(73.0% 0.142 78.1)4.32 AA 大字體
白color7#d8e2d7rgb(216 226 215)hsl(115 16% 86%)oklch(90.2% 0.018 142.8)7.89 AAA
亮黑color8#34934frgb(52 147 79)hsl(137 48% 39%)oklch(59.0% 0.135 149.6)2.72 低於 AA
亮紅color9#ff4f59rgb(255 79 89)hsl(357 100% 65%)oklch(67.7% 0.212 21.8)3.26 AA 大字體
亮綠color10#aff56argb(175 245 106)hsl(90 87% 69%)oklch(89.5% 0.185 131.6)8.05 AAA
亮黃color11#fcff75rgb(252 255 117)hsl(61 100% 73%)oklch(97.1% 0.160 110.2)9.85 AAA
亮藍color12#57aeffrgb(87 174 255)hsl(209 100% 67%)oklch(73.2% 0.145 249.0)4.45 AA 大字體
亮洋紅color13#ae63e9rgb(174 99 233)hsl(274 75% 65%)oklch(64.3% 0.200 307.5)2.88 低於 AA
亮青color14#ffaa2brgb(255 170 43)hsl(36 100% 58%)oklch(80.3% 0.162 70.8)5.52 AA
亮白color15#fffefergb(255 254 254)hsl(0 100% 100%)oklch(99.8% 0.001 17.2)10.43 AAA

關於 Kokuban

Kokuban 採用中性色調的深色背景(#0d4a08),預設前景色為 #d8e2d7。正文的 WCAG 對比度為 7.89:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.04:1,最低 2.35:1。

色板整體色彩飽和度適中,其中紅色為 #d84e4c、綠色為 #95da5a、藍色為 #4b9ed7、洋紅為 #945fc5。

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

與 Kokuban 相似的配色

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