跳到主要內容

Leaf Dark

Leaf Dark 是一套深色終端機配色,背景色 #2e2c2f,文字色 #e1e4dc,對比度 10.8:1

取得設定檔
背景色
#2e2c2f
前景色
#e1e4dc
文字對比度
10.76:1AAA
強調色對比度
5.38:1最低 3.07
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 Dark 的設定檔

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

Leaf Dark

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

更多 Ghostty 配色
原始檔
# Theme: Leaf Dark (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/leaf-dark?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=#d6797a
palette = 10=#98cca4
palette = 11=#e3c882
palette = 12=#76ace6
palette = 13=#b798e6
palette = 14=#77c5da
palette = 15=#fcfff6
background = #2e2c2f
foreground = #e1e4dc
cursor-color = #e1e4dc
cursor-text = #2e2c2f
selection-background = #565556
selection-foreground = #e1e4dc

Leaf Dark 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2e2c2frgb(46 44 47)hsl(280 3% 18%)oklch(29.6% 0.006 314.7)—
前景色foreground#e1e4dcrgb(225 228 220)hsl(83 13% 88%)oklch(91.4% 0.011 123.5)10.76 AAA
游標cursor#e1e4dcrgb(225 228 220)hsl(83 13% 88%)oklch(91.4% 0.011 123.5)10.76 AAA
游標文字cursorText#2e2c2frgb(46 44 47)hsl(280 3% 18%)oklch(29.6% 0.006 314.7)1.00 低於 AA
選取範圍selection#565556rgb(86 85 86)hsl(300 1% 34%)oklch(45.1% 0.002 325.6)1.86 低於 AA
選取文字selectionText#e1e4dcrgb(225 228 220)hsl(83 13% 88%)oklch(91.4% 0.011 123.5)10.76 AAA
黑color0#2e2c2frgb(46 44 47)hsl(280 3% 18%)oklch(29.6% 0.006 314.7)1.00 低於 AA
紅color1#ba5860rgb(186 88 96)hsl(355 42% 54%)oklch(58.3% 0.127 16.8)3.07 AA 大字級
綠color2#729b79rgb(114 155 121)hsl(130 17% 53%)oklch(65.0% 0.067 149.4)4.40 AA 大字級
黃color3#ccaa6crgb(204 170 108)hsl(39 48% 61%)oklch(75.5% 0.089 81.7)6.28 AA
藍color4#5292c6rgb(82 146 198)hsl(207 50% 55%)oklch(63.9% 0.103 244.9)4.14 AA 大字級
洋紅color5#8c6aa8rgb(140 106 168)hsl(273 26% 54%)oklch(58.2% 0.100 308.7)3.12 AA 大字級
青color6#489ca5rgb(72 156 165)hsl(186 39% 46%)oklch(64.5% 0.082 204.8)4.33 AA 大字級
白color7#e1e4dcrgb(225 228 220)hsl(83 13% 88%)oklch(91.4% 0.011 123.5)10.76 AAA
亮黑color8#403f42rgb(64 63 66)hsl(260 2% 25%)oklch(37.0% 0.005 301.3)1.32 低於 AA
亮紅color9#d6797argb(214 121 122)hsl(359 53% 66%)oklch(67.9% 0.116 19.9)4.53 AA
亮綠color10#98cca4rgb(152 204 164)hsl(134 34% 70%)oklch(79.8% 0.078 151.4)7.58 AAA
亮黃color11#e3c882rgb(227 200 130)hsl(43 63% 70%)oklch(84.0% 0.094 89.2)8.47 AAA
亮藍color12#76ace6rgb(118 172 230)hsl(211 69% 68%)oklch(73.0% 0.102 251.1)5.81 AA
亮洋紅color13#b798e6rgb(183 152 230)hsl(264 61% 75%)oklch(73.6% 0.115 301.9)5.70 AA
亮青color14#77c5dargb(119 197 218)hsl(193 57% 66%)oklch(78.1% 0.082 217.0)7.11 AAA
亮白color15#fcfff6rgb(252 255 246)hsl(80 100% 98%)oklch(99.5% 0.012 121.7)13.69 AAA

關於 Leaf Dark

Leaf Dark 採用中性色調的深色背景(#2e2c2f),預設前景色為 #e1e4dc。內文的 WCAG 對比度為 10.76:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.38:1,最低 3.07: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 Dark 相似的配色

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