跳到主要內容

Slate

Slate 是一套深色終端機配色(柔和、低彩度),背景色 #222222,文字色 #35b1d2,對比度 6.3:1

取得設定檔
背景色
#222222
前景色
#35b1d2
文字對比度
6.34:1AA
強調色對比度
8.21:1最低 1.66
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
❯

Slate 的設定檔

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

Slate

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

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

palette = 0=#222222
palette = 1=#e2a8bf
palette = 2=#81d778
palette = 3=#c4c9c0
palette = 4=#264b49
palette = 5=#a481d3
palette = 6=#15ab9c
palette = 7=#02c5e0
palette = 8=#ffffff
palette = 9=#ffcdd9
palette = 10=#beffa8
palette = 11=#d0ccca
palette = 12=#7ab0d2
palette = 13=#c5a7d9
palette = 14=#8cdfe0
palette = 15=#e0e0e0
background = #222222
foreground = #35b1d2
cursor-color = #87d3c4
cursor-text = #323232
selection-background = #0f3754
selection-foreground = #2dffc0

Slate 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#222222rgb(34 34 34)hsl(0 0% 13%)oklch(25.2% 0.000 0)—
前景色foreground#35b1d2rgb(53 177 210)hsl(193 64% 52%)oklch(70.8% 0.115 219.9)6.34 AA
游標cursor#87d3c4rgb(135 211 196)hsl(168 46% 68%)oklch(81.3% 0.079 180.3)9.20 AAA
游標文字cursorText#323232rgb(50 50 50)hsl(0 0% 20%)oklch(31.7% 0.000 0)1.24 低於 AA
選取範圍selection#0f3754rgb(15 55 84)hsl(205 70% 19%)oklch(32.5% 0.068 244.3)1.28 低於 AA
選取文字selectionText#2dffc0rgb(45 255 192)hsl(162 100% 59%)oklch(89.0% 0.177 166.2)12.26 AAA
黑color0#222222rgb(34 34 34)hsl(0 0% 13%)oklch(25.2% 0.000 0)1.00 低於 AA
紅color1#e2a8bfrgb(226 168 191)hsl(336 50% 77%)oklch(79.2% 0.074 353.3)8.02 AAA
綠color2#81d778rgb(129 215 120)hsl(114 54% 66%)oklch(80.2% 0.154 142.0)9.03 AAA
黃color3#c4c9c0rgb(196 201 192)hsl(93 8% 77%)oklch(82.9% 0.014 130.8)9.44 AAA
藍color4#264b49rgb(38 75 73)hsl(177 33% 22%)oklch(38.5% 0.043 191.0)1.66 低於 AA
洋紅color5#a481d3rgb(164 129 211)hsl(266 48% 67%)oklch(66.8% 0.123 302.9)5.05 AA
青color6#15ab9crgb(21 171 156)hsl(174 78% 38%)oklch(66.7% 0.115 183.7)5.56 AA
白color7#02c5e0rgb(2 197 224)hsl(187 98% 44%)oklch(75.6% 0.132 212.0)7.63 AAA
亮黑color8#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)15.91 AAA
亮紅color9#ffcdd9rgb(255 205 217)hsl(346 100% 90%)oklch(89.5% 0.058 2.3)11.35 AAA
亮綠color10#beffa8rgb(190 255 168)hsl(105 100% 83%)oklch(93.6% 0.131 138.0)13.68 AAA
亮黃color11#d0cccargb(208 204 202)hsl(20 6% 80%)oklch(84.8% 0.005 48.7)9.98 AAA
亮藍color12#7ab0d2rgb(122 176 210)hsl(203 49% 65%)oklch(73.2% 0.075 236.8)6.79 AA
亮洋紅color13#c5a7d9rgb(197 167 217)hsl(276 40% 75%)oklch(77.1% 0.077 311.6)7.50 AAA
亮青color14#8cdfe0rgb(140 223 224)hsl(181 58% 71%)oklch(85.1% 0.081 196.7)10.41 AAA
亮白color15#e0e0e0rgb(224 224 224)hsl(0 0% 88%)oklch(90.7% 0.000 0)12.05 AAA

關於 Slate

Slate 採用中性色調的深色背景(#222222),預設前景色為 #35b1d2。內文的 WCAG 對比度為 6.34:1(AA),12 種 ANSI 彩色槽位平均對比度 8.21:1,最低 1.66:1。

色票整體色彩彩度偏低,其中紅色為 #e2a8bf、綠色為 #81d778、藍色為 #264b49、洋紅為 #a481d3。

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

與 Slate 相似的配色

資料來源:iTerm2 Color Schemes (MIT)