跳到正文

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/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)