跳到主要內容

Spring

Spring 是一套淺色終端機配色(柔和),背景色 #ffffff,文字色 #4d4d4c,對比度 8.5:1

取得設定檔
背景色
#ffffff
前景色
#4d4d4c
文字對比度
8.46:1AAA
強調色對比度
3.29:1最低 1.81
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
❯

Spring 的設定檔

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

Spring

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

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

palette = 0=#000000
palette = 1=#ff4d83
palette = 2=#1f8c3b
palette = 3=#1fc95b
palette = 4=#1dd3ee
palette = 5=#8959a8
palette = 6=#3e999f
palette = 7=#ffffff
palette = 8=#000000
palette = 9=#ff0021
palette = 10=#1fc231
palette = 11=#d5b807
palette = 12=#15a9fd
palette = 13=#8959a8
palette = 14=#3e999f
palette = 15=#ffffff
background = #ffffff
foreground = #4d4d4c
cursor-color = #4d4d4c
cursor-text = #ffffff
selection-background = #d6d6d6
selection-foreground = #4d4d4c

Spring 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)—
前景色foreground#4d4d4crgb(77 77 76)hsl(60 1% 30%)oklch(42.0% 0.002 106.5)8.46 AAA
光標cursor#4d4d4crgb(77 77 76)hsl(60 1% 30%)oklch(42.0% 0.002 106.5)8.46 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
選取範圍selection#d6d6d6rgb(214 214 214)hsl(0 0% 84%)oklch(87.6% 0.000 0)1.45 低於 AA
選取文字selectionText#4d4d4crgb(77 77 76)hsl(60 1% 30%)oklch(42.0% 0.002 106.5)8.46 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)21.00 AAA
紅color1#ff4d83rgb(255 77 131)hsl(342 100% 65%)oklch(68.4% 0.216 6.7)3.16 AA 大字體
綠color2#1f8c3brgb(31 140 59)hsl(135 64% 34%)oklch(56.3% 0.152 147.4)4.31 AA 大字體
黃color3#1fc95brgb(31 201 91)hsl(141 73% 45%)oklch(73.2% 0.200 148.8)2.20 低於 AA
藍color4#1dd3eergb(29 211 238)hsl(188 86% 52%)oklch(79.7% 0.135 211.4)1.81 低於 AA
洋紅color5#8959a8rgb(137 89 168)hsl(276 31% 50%)oklch(54.9% 0.129 310.8)5.17 AA
青color6#3e999frgb(62 153 159)hsl(184 44% 43%)oklch(63.1% 0.086 201.3)3.35 AA 大字體
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
亮黑color8#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)21.00 AAA
亮紅color9#ff0021rgb(255 0 33)hsl(352 100% 50%)oklch(62.9% 0.256 26.6)3.98 AA 大字體
亮綠color10#1fc231rgb(31 194 49)hsl(127 72% 44%)oklch(71.0% 0.222 143.8)2.38 低於 AA
亮黃color11#d5b807rgb(213 184 7)hsl(52 94% 43%)oklch(78.4% 0.161 97.6)1.96 低於 AA
亮藍color12#15a9fdrgb(21 169 253)hsl(202 98% 54%)oklch(70.5% 0.165 242.6)2.58 低於 AA
亮洋紅color13#8959a8rgb(137 89 168)hsl(276 31% 50%)oklch(54.9% 0.129 310.8)5.17 AA
亮青color14#3e999frgb(62 153 159)hsl(184 44% 43%)oklch(63.1% 0.086 201.3)3.35 AA 大字體
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA

關於 Spring

Spring 採用中性色調的淺色背景(#ffffff),預設前景色為 #4d4d4c。正文的 WCAG 對比度為 8.46:1(AAA),12 種 ANSI 彩色槽位平均對比度 3.29:1,最低 1.81:1。

色板整體色彩飽和度適中,其中紅色為 #ff4d83、綠色為 #1f8c3b、藍色為 #1dd3ee、洋紅為 #8959a8。

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

與 Spring 相似的配色

資料來源:iTerm2 Color Schemes (MIT)