跳到主要內容

Kanagawa

Kanagawa 是一套深色終端機配色(冷色),背景色 #1f1f28,文字色 #dcd7ba,對比度 11.3:1

取得設定檔
背景色
#1f1f28
前景色
#dcd7ba
文字對比度
11.26:1AAA
強調色對比度
5.05:1最低 3.22
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
❯

Kanagawa 的設定檔

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

Kanagawa

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

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

palette = 0=#1f1f28
palette = 1=#c34043
palette = 2=#76946a
palette = 3=#c0a36e
palette = 4=#7e9cd8
palette = 5=#957fb8
palette = 6=#6a9589
palette = 7=#dcd7ba
palette = 8=#54546d
palette = 9=#c34043
palette = 10=#76946a
palette = 11=#c0a36e
palette = 12=#7e9cd8
palette = 13=#957fb8
palette = 14=#6a9589
palette = 15=#717c7c
background = #1f1f28
foreground = #dcd7ba
cursor-color = #dcd7ba
cursor-text = #1f1f28
selection-background = #484849
selection-foreground = #dcd7ba

Kanagawa 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1f1f28rgb(31 31 40)hsl(240 13% 14%)oklch(24.3% 0.017 285.1)—
前景色foreground#dcd7bargb(220 215 186)hsl(51 33% 80%)oklch(87.6% 0.039 99.1)11.26 AAA
光標cursor#dcd7bargb(220 215 186)hsl(51 33% 80%)oklch(87.6% 0.039 99.1)11.26 AAA
光標文字cursorText#1f1f28rgb(31 31 40)hsl(240 13% 14%)oklch(24.3% 0.017 285.1)1.00 低於 AA
選取範圍selection#484849rgb(72 72 73)hsl(240 1% 28%)oklch(40.2% 0.002 286.3)1.79 低於 AA
選取文字selectionText#dcd7bargb(220 215 186)hsl(51 33% 80%)oklch(87.6% 0.039 99.1)11.26 AAA
黑color0#1f1f28rgb(31 31 40)hsl(240 13% 14%)oklch(24.3% 0.017 285.1)1.00 低於 AA
紅color1#c34043rgb(195 64 67)hsl(359 52% 51%)oklch(55.9% 0.167 23.1)3.22 AA 大字體
綠color2#76946argb(118 148 106)hsl(103 17% 50%)oklch(63.2% 0.070 136.9)4.84 AA
黃color3#c0a36ergb(192 163 110)hsl(39 39% 59%)oklch(72.9% 0.078 82.0)6.78 AA
藍color4#7e9cd8rgb(126 156 216)hsl(220 54% 67%)oklch(69.4% 0.095 263.7)5.94 AA
洋紅color5#957fb8rgb(149 127 184)hsl(263 29% 61%)oklch(63.8% 0.087 301.7)4.67 AA
青color6#6a9589rgb(106 149 137)hsl(163 17% 50%)oklch(63.5% 0.050 175.4)4.88 AA
白color7#dcd7bargb(220 215 186)hsl(51 33% 80%)oklch(87.6% 0.039 99.1)11.26 AAA
亮黑color8#54546drgb(84 84 109)hsl(240 13% 38%)oklch(45.6% 0.041 284.7)2.23 低於 AA
亮紅color9#c34043rgb(195 64 67)hsl(359 52% 51%)oklch(55.9% 0.167 23.1)3.22 AA 大字體
亮綠color10#76946argb(118 148 106)hsl(103 17% 50%)oklch(63.2% 0.070 136.9)4.84 AA
亮黃color11#c0a36ergb(192 163 110)hsl(39 39% 59%)oklch(72.9% 0.078 82.0)6.78 AA
亮藍color12#7e9cd8rgb(126 156 216)hsl(220 54% 67%)oklch(69.4% 0.095 263.7)5.94 AA
亮洋紅color13#957fb8rgb(149 127 184)hsl(263 29% 61%)oklch(63.8% 0.087 301.7)4.67 AA
亮青color14#6a9589rgb(106 149 137)hsl(163 17% 50%)oklch(63.5% 0.050 175.4)4.88 AA
亮白color15#717c7crgb(113 124 124)hsl(180 5% 46%)oklch(57.7% 0.013 196.8)3.80 AA 大字體

關於 Kanagawa

Kanagawa 採用冷色調的深色背景(#1f1f28),預設前景色為 #dcd7ba。正文的 WCAG 對比度為 11.26:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.05:1,最低 3.22:1。

色板整體色彩飽和度適中,其中紅色為 #c34043、綠色為 #76946a、藍色為 #7e9cd8、洋紅為 #957fb8。該配色歸屬 Kanagawa 主題系列。

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

與 Kanagawa 相似的配色

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