跳到正文

Kanso Pearl

Kanso Pearl 是一套浅色终端配色,背景色 #f2f1ef,文字色 #22262d,对比度 13.4:1

获取配置
背景色
#f2f1ef
前景色
#22262d
文字对比度
13.45:1AAA
强调色对比度
4.12:1最低 2.87
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
❯

Kanso Pearl 的配置文件

16 种格式,都从同一份色板生成

Kanso Pearl

存到 ~/.config/ghostty/themes/Kanso Pearl,再在 config 或 config.ghostty 里写 theme = Kanso Pearl

更多 Ghostty 配色
原始文件
# Theme: Kanso Pearl (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/kanso-pearl?format=ghostty

palette = 0=#22262d
palette = 1=#c84053
palette = 2=#6f894e
palette = 3=#77713f
palette = 4=#4d699b
palette = 5=#b35b79
palette = 6=#597b75
palette = 7=#545464
palette = 8=#6d6f6e
palette = 9=#d7474b
palette = 10=#6e915f
palette = 11=#836f4a
palette = 12=#6693bf
palette = 13=#624c83
palette = 14=#5e857a
palette = 15=#43436c
background = #f2f1ef
foreground = #22262d
cursor-color = #22262d
cursor-text = #f2f1ef
selection-background = #e2e1df
selection-foreground = #22262d

Kanso Pearl 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#f2f1efrgb(242 241 239)hsl(40 10% 94%)oklch(95.8% 0.003 84.6)—
前景色foreground#22262drgb(34 38 45)hsl(218 14% 15%)oklch(26.8% 0.014 261.7)13.45 AAA
光标cursor#22262drgb(34 38 45)hsl(218 14% 15%)oklch(26.8% 0.014 261.7)13.45 AAA
光标文字cursorText#f2f1efrgb(242 241 239)hsl(40 10% 94%)oklch(95.8% 0.003 84.6)1.00 低于 AA
选区selection#e2e1dfrgb(226 225 223)hsl(40 5% 88%)oklch(91.0% 0.003 84.6)1.16 低于 AA
选区文字selectionText#22262drgb(34 38 45)hsl(218 14% 15%)oklch(26.8% 0.014 261.7)13.45 AAA
黑color0#22262drgb(34 38 45)hsl(218 14% 15%)oklch(26.8% 0.014 261.7)13.45 AAA
红color1#c84053rgb(200 64 83)hsl(352 55% 52%)oklch(57.1% 0.171 16.5)4.31 AA 大字号
绿color2#6f894ergb(111 137 78)hsl(86 27% 42%)oklch(59.5% 0.089 128.3)3.47 AA 大字号
黄color3#77713frgb(119 113 63)hsl(54 31% 36%)oklch(54.2% 0.070 102.4)4.41 AA 大字号
蓝color4#4d699brgb(77 105 155)hsl(218 34% 45%)oklch(52.1% 0.086 261.5)4.88 AA
品红color5#b35b79rgb(179 91 121)hsl(340 37% 53%)oklch(58.5% 0.118 359.8)3.97 AA 大字号
青color6#597b75rgb(89 123 117)hsl(169 16% 42%)oklch(55.5% 0.040 182.7)4.12 AA 大字号
白color7#545464rgb(84 84 100)hsl(240 9% 36%)oklch(45.2% 0.026 285.3)6.58 AA
亮黑color8#6d6f6ergb(109 111 110)hsl(150 1% 43%)oklch(54.0% 0.003 165.0)4.48 AA 大字号
亮红color9#d7474brgb(215 71 75)hsl(358 64% 56%)oklch(60.1% 0.180 22.9)3.80 AA 大字号
亮绿color10#6e915frgb(110 145 95)hsl(102 21% 47%)oklch(61.7% 0.083 136.6)3.16 AA 大字号
亮黄color11#836f4argb(131 111 74)hsl(39 28% 40%)oklch(55.1% 0.058 82.3)4.29 AA 大字号
亮蓝color12#6693bfrgb(102 147 191)hsl(210 41% 57%)oklch(64.8% 0.082 248.7)2.87 低于 AA
亮品红color13#624c83rgb(98 76 131)hsl(264 27% 41%)oklch(46.3% 0.090 301.4)6.46 AA
亮青color14#5e857argb(94 133 122)hsl(163 17% 45%)oklch(58.4% 0.047 175.2)3.64 AA 大字号
亮白color15#43436crgb(67 67 108)hsl(240 23% 34%)oklch(40.2% 0.068 282.9)8.24 AAA

关于 Kanso Pearl

Kanso Pearl 采用中性色调的浅色背景(#f2f1ef),默认前景色为 #22262d。正文的 WCAG 对比度为 13.45:1(AAA),12 种 ANSI 彩色槽位平均对比度 4.12:1,最低 2.87:1。

色板整体色彩饱和度适中,其中红色为 #c84053、绿色为 #6f894e、蓝色为 #4d699b、品红为 #b35b79。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Kanso Pearl 相似的配色

数据来源:iTerm2 Color Schemes (MIT)