跳到主要內容

Shel

Shel 是一套深色終端機配色(柔和、暖色),背景色 #2a201f,文字色 #4882cd,對比度 4.0:1

取得設定檔
背景色
#2a201f
前景色
#4882cd
文字對比度
4.04:1AA 大字體
強調色對比度
6.15:1最低 1.82
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
❯

Shel 的設定檔

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

Shel

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

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

palette = 0=#2c2423
palette = 1=#ab2463
palette = 2=#6ca323
palette = 3=#ab6423
palette = 4=#2c64a2
palette = 5=#6c24a2
palette = 6=#2ca363
palette = 7=#918988
palette = 8=#918988
palette = 9=#f588b9
palette = 10=#c2ee86
palette = 11=#f5ba86
palette = 12=#8fbaec
palette = 13=#c288ec
palette = 14=#8feeb9
palette = 15=#f5eeec
background = #2a201f
foreground = #4882cd
cursor-color = #4882cd
cursor-text = #2a201f
selection-background = #343746
selection-foreground = #4882cd

Shel 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2a201frgb(42 32 31)hsl(5 15% 14%)oklch(25.5% 0.016 24.9)—
前景色foreground#4882cdrgb(72 130 205)hsl(214 57% 54%)oklch(60.2% 0.130 255.7)4.04 AA 大字體
光標cursor#4882cdrgb(72 130 205)hsl(214 57% 54%)oklch(60.2% 0.130 255.7)4.04 AA 大字體
光標文字cursorText#2a201frgb(42 32 31)hsl(5 15% 14%)oklch(25.5% 0.016 24.9)1.00 低於 AA
選取範圍selection#343746rgb(52 55 70)hsl(230 15% 24%)oklch(34.0% 0.027 276.0)1.34 低於 AA
選取文字selectionText#4882cdrgb(72 130 205)hsl(214 57% 54%)oklch(60.2% 0.130 255.7)4.04 AA 大字體
黑color0#2c2423rgb(44 36 35)hsl(7 11% 15%)oklch(26.9% 0.012 26.3)1.04 低於 AA
紅color1#ab2463rgb(171 36 99)hsl(332 65% 41%)oklch(50.0% 0.177 357.8)2.39 低於 AA
綠color2#6ca323rgb(108 163 35)hsl(86 65% 39%)oklch(65.3% 0.164 130.8)5.21 AA
黃color3#ab6423rgb(171 100 35)hsl(29 66% 40%)oklch(57.2% 0.119 58.5)3.46 AA 大字體
藍color4#2c64a2rgb(44 100 162)hsl(212 57% 40%)oklch(49.7% 0.116 253.1)2.61 低於 AA
洋紅color5#6c24a2rgb(108 36 162)hsl(274 64% 39%)oklch(43.7% 0.190 305.7)1.82 低於 AA
青color6#2ca363rgb(44 163 99)hsl(148 57% 41%)oklch(63.5% 0.141 154.8)4.93 AA
白color7#918988rgb(145 137 136)hsl(7 4% 55%)oklch(63.7% 0.010 26.1)4.63 AA
亮黑color8#918988rgb(145 137 136)hsl(7 4% 55%)oklch(63.7% 0.010 26.1)4.63 AA
亮紅color9#f588b9rgb(245 136 185)hsl(333 84% 75%)oklch(75.9% 0.143 352.7)6.87 AA
亮綠color10#c2ee86rgb(194 238 134)hsl(85 75% 73%)oklch(89.5% 0.140 127.7)11.98 AAA
亮黃color11#f5ba86rgb(245 186 134)hsl(28 85% 74%)oklch(83.1% 0.096 62.3)9.25 AAA
亮藍color12#8fbaecrgb(143 186 236)hsl(212 71% 74%)oklch(77.6% 0.085 252.6)7.85 AAA
亮洋紅color13#c288ecrgb(194 136 236)hsl(275 72% 73%)oklch(72.2% 0.152 309.8)6.06 AA
亮青color14#8feeb9rgb(143 238 185)hsl(147 74% 75%)oklch(87.6% 0.118 158.3)11.40 AAA
亮白color15#f5eeecrgb(245 238 236)hsl(13 31% 94%)oklch(95.4% 0.008 36.6)13.83 AAA

關於 Shel

Shel 採用暖色調的深色背景(#2a201f),預設前景色為 #4882cd。正文的 WCAG 對比度為 4.04:1(AA 大字體),12 種 ANSI 彩色槽位平均對比度 6.15:1,最低 1.82:1。

色板整體色彩飽和度適中,其中紅色為 #ab2463、綠色為 #6ca323、藍色為 #2c64a2、洋紅為 #6c24a2。

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

與 Shel 相似的配色

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