跳到主要內容

Spearmint Contrast

Spearmint Contrast 是一套深色終端機配色(單色、冷色),背景色 #1a2322,文字色 #c9dbd9,對比度 11.2:1

取得設定檔
背景色
#1a2322
前景色
#c9dbd9
文字對比度
11.18:1AAA
強調色對比度
7.08:1最低 2.44
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
❯

Spearmint Contrast 的設定檔

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

Spearmint Contrast

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

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

palette = 0=#253230
palette = 1=#ba0e2e
palette = 2=#69adb5
palette = 3=#25808a
palette = 4=#4cd7e0
palette = 5=#69adb5
palette = 6=#199fa8
palette = 7=#d8e5e4
palette = 8=#3b4f4d
palette = 9=#e61f44
palette = 10=#add2d7
palette = 11=#47c0ce
palette = 12=#a3eaef
palette = 13=#add2d7
palette = 14=#44d9e3
palette = 15=#f7faf9
background = #1a2322
foreground = #c9dbd9
cursor-color = #ffffff
cursor-text = #c9dbd9
selection-background = #25808a
selection-foreground = #ffffff

Spearmint Contrast 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1a2322rgb(26 35 34)hsl(173 15% 12%)oklch(24.7% 0.013 188.0)—
前景色foreground#c9dbd9rgb(201 219 217)hsl(173 20% 82%)oklch(87.7% 0.019 188.8)11.18 AAA
游標cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.06 AAA
游標文字cursorText#c9dbd9rgb(201 219 217)hsl(173 20% 82%)oklch(87.7% 0.019 188.8)11.18 AAA
選取範圍selection#25808argb(37 128 138)hsl(186 58% 34%)oklch(55.2% 0.083 205.8)3.47 AA 大字級
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.06 AAA
黑color0#253230rgb(37 50 48)hsl(171 15% 17%)oklch(30.5% 0.018 184.8)1.21 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.44 低於 AA
綠color2#69adb5rgb(105 173 181)hsl(186 34% 56%)oklch(70.5% 0.070 205.3)6.31 AA
黃color3#25808argb(37 128 138)hsl(186 58% 34%)oklch(55.2% 0.083 205.8)3.47 AA 大字級
藍color4#4cd7e0rgb(76 215 224)hsl(184 70% 59%)oklch(80.9% 0.118 201.3)9.26 AAA
洋紅color5#69adb5rgb(105 173 181)hsl(186 34% 56%)oklch(70.5% 0.070 205.3)6.31 AA
青color6#199fa8rgb(25 159 168)hsl(184 74% 38%)oklch(64.2% 0.105 202.3)5.02 AA
白color7#d8e5e4rgb(216 229 228)hsl(175 20% 87%)oklch(91.2% 0.014 191.4)12.43 AAA
亮黑color8#3b4f4drgb(59 79 77)hsl(174 14% 27%)oklch(41.0% 0.025 188.6)1.84 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)3.55 AA 大字級
亮綠color10#add2d7rgb(173 210 215)hsl(187 34% 76%)oklch(83.9% 0.040 206.5)9.93 AAA
亮黃color11#47c0cergb(71 192 206)hsl(186 58% 54%)oklch(74.7% 0.107 206.0)7.42 AAA
亮藍color12#a3eaefrgb(163 234 239)hsl(184 70% 79%)oklch(89.2% 0.071 201.5)11.91 AAA
亮洋紅color13#add2d7rgb(173 210 215)hsl(187 34% 76%)oklch(83.9% 0.040 206.5)9.93 AAA
亮青color14#44d9e3rgb(68 217 227)hsl(184 74% 58%)oklch(81.3% 0.122 201.6)9.39 AAA
亮白color15#f7faf9rgb(247 250 249)hsl(160 23% 97%)oklch(98.3% 0.003 174.5)15.29 AAA

關於 Spearmint Contrast

Spearmint Contrast 採用冷色調的深色背景(#1a2322),預設前景色為 #c9dbd9。內文的 WCAG 對比度為 11.18:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.08:1,最低 2.44:1。

色票整體色彩彩度適中,其中紅色為 #ba0e2e、綠色為 #69adb5、藍色為 #4cd7e0、洋紅為 #69adb5。

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

與 Spearmint Contrast 相似的配色

資料來源:Rainglow (MIT)