跳到正文

Leaf Light

Leaf Light 是一套浅色终端配色(柔和),背景色 #e1e4dc,文字色 #2e2c2f,对比度 10.8:1

获取配置
背景色
#e1e4dc
前景色
#2e2c2f
文字对比度
10.76:1AAA
强调色对比度
3.28:1最低 1.71
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
❯

Leaf Light 的配置文件

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

Leaf Light

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

更多 Ghostty 配色
原始文件
# Theme: Leaf Light (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/leaf-light?format=ghostty

palette = 0=#2e2c2f
palette = 1=#ba5860
palette = 2=#729b79
palette = 3=#ccaa6c
palette = 4=#5292c6
palette = 5=#8c6aa8
palette = 6=#489ca5
palette = 7=#e1e4dc
palette = 8=#403f42
palette = 9=#9d4b53
palette = 10=#59795f
palette = 11=#a78a58
palette = 12=#40739a
palette = 13=#715688
palette = 14=#3b8187
palette = 15=#b1b3ad
background = #e1e4dc
foreground = #2e2c2f
cursor-color = #2e2c2f
cursor-text = #e1e4dc
selection-background = #b0b2ad
selection-foreground = #2e2c2f

Leaf Light 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#e1e4dcrgb(225 228 220)hsl(83 13% 88%)oklch(91.4% 0.011 123.5)—
前景色foreground#2e2c2frgb(46 44 47)hsl(280 3% 18%)oklch(29.6% 0.006 314.7)10.76 AAA
光标cursor#2e2c2frgb(46 44 47)hsl(280 3% 18%)oklch(29.6% 0.006 314.7)10.76 AAA
光标文字cursorText#e1e4dcrgb(225 228 220)hsl(83 13% 88%)oklch(91.4% 0.011 123.5)1.00 低于 AA
选区selection#b0b2adrgb(176 178 173)hsl(84 3% 69%)oklch(76.0% 0.007 124.5)1.66 低于 AA
选区文字selectionText#2e2c2frgb(46 44 47)hsl(280 3% 18%)oklch(29.6% 0.006 314.7)10.76 AAA
黑color0#2e2c2frgb(46 44 47)hsl(280 3% 18%)oklch(29.6% 0.006 314.7)10.76 AAA
红color1#ba5860rgb(186 88 96)hsl(355 42% 54%)oklch(58.3% 0.127 16.8)3.51 AA 大字号
绿color2#729b79rgb(114 155 121)hsl(130 17% 53%)oklch(65.0% 0.067 149.4)2.44 低于 AA
黄color3#ccaa6crgb(204 170 108)hsl(39 48% 61%)oklch(75.5% 0.089 81.7)1.71 低于 AA
蓝color4#5292c6rgb(82 146 198)hsl(207 50% 55%)oklch(63.9% 0.103 244.9)2.60 低于 AA
品红color5#8c6aa8rgb(140 106 168)hsl(273 26% 54%)oklch(58.2% 0.100 308.7)3.44 AA 大字号
青color6#489ca5rgb(72 156 165)hsl(186 39% 46%)oklch(64.5% 0.082 204.8)2.48 低于 AA
白color7#e1e4dcrgb(225 228 220)hsl(83 13% 88%)oklch(91.4% 0.011 123.5)1.00 低于 AA
亮黑color8#403f42rgb(64 63 66)hsl(260 2% 25%)oklch(37.0% 0.005 301.3)8.13 AAA
亮红color9#9d4b53rgb(157 75 83)hsl(354 35% 45%)oklch(51.8% 0.109 15.6)4.58 AA
亮绿color10#59795frgb(89 121 95)hsl(131 15% 41%)oklch(54.4% 0.054 150.0)3.78 AA 大字号
亮黄color11#a78a58rgb(167 138 88)hsl(38 31% 50%)oklch(64.9% 0.076 80.4)2.54 低于 AA
亮蓝color12#40739argb(64 115 154)hsl(206 41% 43%)oklch(53.7% 0.083 243.3)3.95 AA 大字号
亮品红color13#715688rgb(113 86 136)hsl(272 23% 44%)oklch(50.1% 0.083 308.4)4.82 AA
亮青color14#3b8187rgb(59 129 135)hsl(185 39% 38%)oklch(56.1% 0.071 202.9)3.49 AA 大字号
亮白color15#b1b3adrgb(177 179 173)hsl(80 4% 69%)oklch(76.3% 0.009 121.7)1.65 低于 AA

关于 Leaf Light

Leaf Light 采用中性色调的浅色背景(#e1e4dc),默认前景色为 #2e2c2f。正文的 WCAG 对比度为 10.76:1(AAA),12 种 ANSI 彩色槽位平均对比度 3.28:1,最低 1.71:1。

色板整体色彩饱和度适中,其中红色为 #ba5860、绿色为 #729b79、蓝色为 #5292c6、品红为 #8c6aa8。

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

与 Leaf Light 相似的配色

数据来源:Gogh (MIT OR Apache-2.0)