跳到主要內容

Salem

Salem 是一套深色終端機配色(冷色),背景色 #0f2a33,文字色 #e6dcc1,對比度 11.0:1

取得設定檔
背景色
#0f2a33
前景色
#e6dcc1
文字對比度
10.99:1AAA
強調色對比度
7.17:1最低 4.63
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
❯

Salem 的設定檔

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

Salem

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

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

palette = 0=#9daeb3
palette = 1=#e36b61
palette = 2=#94c17f
palette = 3=#e6bc62
palette = 4=#78a9f0
palette = 5=#b477cf
palette = 6=#69c9c7
palette = 7=#e6dcc1
palette = 8=#b6c5c9
palette = 9=#f06d5f
palette = 10=#a9d18c
palette = 11=#f4d58b
palette = 12=#94b9f4
palette = 13=#c98de0
palette = 14=#8bd9d7
palette = 15=#fff4da
background = #0f2a33
foreground = #e6dcc1
cursor-color = #f4e2a6
cursor-text = #0f2a33
selection-background = #29434e
selection-foreground = #fff4da

Salem 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#0f2a33rgb(15 42 51)hsl(195 55% 13%)oklch(26.8% 0.037 222.6)—
前景色foreground#e6dcc1rgb(230 220 193)hsl(44 43% 83%)oklch(89.5% 0.038 90.1)10.99 AAA
游標cursor#f4e2a6rgb(244 226 166)hsl(46 78% 80%)oklch(91.3% 0.079 93.4)11.63 AAA
游標文字cursorText#0f2a33rgb(15 42 51)hsl(195 55% 13%)oklch(26.8% 0.037 222.6)1.00 低於 AA
選取範圍selection#29434ergb(41 67 78)hsl(198 31% 23%)oklch(36.7% 0.037 226.6)1.43 低於 AA
選取文字selectionText#fff4dargb(255 244 218)hsl(42 100% 93%)oklch(96.9% 0.036 87.8)13.72 AAA
黑color0#9daeb3rgb(157 174 179)hsl(194 13% 66%)oklch(73.9% 0.020 217.3)6.53 AA
紅color1#e36b61rgb(227 107 97)hsl(5 70% 64%)oklch(66.9% 0.152 26.7)4.68 AA
綠color2#94c17frgb(148 193 127)hsl(101 35% 63%)oklch(76.2% 0.103 136.1)7.28 AAA
黃color3#e6bc62rgb(230 188 98)hsl(41 73% 64%)oklch(81.4% 0.119 84.6)8.39 AAA
藍color4#78a9f0rgb(120 169 240)hsl(216 80% 71%)oklch(72.9% 0.116 257.6)6.24 AA
洋紅color5#b477cfrgb(180 119 207)hsl(282 48% 64%)oklch(66.6% 0.141 314.9)4.63 AA
青color6#69c9c7rgb(105 201 199)hsl(179 47% 60%)oklch(77.7% 0.091 193.7)7.70 AAA
白color7#e6dcc1rgb(230 220 193)hsl(44 43% 83%)oklch(89.5% 0.038 90.1)10.99 AAA
亮黑color8#b6c5c9rgb(182 197 201)hsl(193 15% 75%)oklch(81.3% 0.017 215.5)8.45 AAA
亮紅color9#f06d5frgb(240 109 95)hsl(6 83% 66%)oklch(69.0% 0.164 28.2)5.04 AA
亮綠color10#a9d18crgb(169 209 140)hsl(95 43% 68%)oklch(81.5% 0.102 132.7)8.71 AAA
亮黃color11#f4d58brgb(244 213 139)hsl(42 83% 75%)oklch(88.3% 0.099 87.6)10.53 AAA
亮藍color12#94b9f4rgb(148 185 244)hsl(217 81% 77%)oklch(78.1% 0.094 259.6)7.51 AAA
亮洋紅color13#c98de0rgb(201 141 224)hsl(283 57% 72%)oklch(73.2% 0.133 316.3)5.98 AA
亮青color14#8bd9d7rgb(139 217 215)hsl(178 51% 70%)oklch(83.4% 0.077 193.7)9.29 AAA
亮白color15#fff4dargb(255 244 218)hsl(42 100% 93%)oklch(96.9% 0.036 87.8)13.72 AAA

關於 Salem

Salem 採用冷色調的深色背景(#0f2a33),預設前景色為 #e6dcc1。內文的 WCAG 對比度為 10.99:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.17:1,最低 4.63:1。

色票整體色彩彩度適中,其中紅色為 #e36b61、綠色為 #94c17f、藍色為 #78a9f0、洋紅為 #b477cf。

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

與 Salem 相似的配色

資料來源:iTerm2 Color Schemes (MIT)