跳到正文

Loyal Contrast

Loyal Contrast 是一套深色终端配色(冷色),背景色 #1d1b23,文字色 #bbb1c9,对比度 8.3:1

获取配置
背景色
#1d1b23
前景色
#bbb1c9
文字对比度
8.31:1AAA
强调色对比度
8.03:1最低 2.59
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
❯

Loyal Contrast 的配置文件

16 种格式,都从同一份色板生成

Loyal Contrast

存到 ~/.config/ghostty/themes/Loyal Contrast,再在 config 或 config.ghostty 里写 theme = Loyal Contrast

更多 Ghostty 配色
原始文件
# Theme: Loyal Contrast (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/loyal-contrast?format=ghostty

palette = 0=#292631
palette = 1=#ba0e2e
palette = 2=#3cbbb1
palette = 3=#ee4266
palette = 4=#b3adba
palette = 5=#9484d6
palette = 6=#b3adba
palette = 7=#c8c0d3
palette = 8=#413c4e
palette = 9=#e61f44
palette = 10=#85d8d1
palette = 11=#f6a0b2
palette = 12=#e6e4e9
palette = 13=#d7d0ef
palette = 14=#e6e4e9
palette = 15=#e2dee8
background = #1d1b23
foreground = #bbb1c9
cursor-color = #f8f8f0
cursor-text = #bbb1c9
selection-background = #3cbbb1
selection-foreground = #ffffff

Loyal Contrast 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#1d1b23rgb(29 27 35)hsl(255 13% 12%)oklch(22.8% 0.016 296.6)—
前景色foreground#bbb1c9rgb(187 177 201)hsl(265 18% 74%)oklch(77.6% 0.035 304.4)8.31 AAA
光标cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)15.95 AAA
光标文字cursorText#bbb1c9rgb(187 177 201)hsl(265 18% 74%)oklch(77.6% 0.035 304.4)8.31 AAA
选区selection#3cbbb1rgb(60 187 177)hsl(175 51% 48%)oklch(72.1% 0.110 187.4)7.24 AAA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.03 AAA
黑color0#292631rgb(41 38 49)hsl(256 13% 17%)oklch(27.7% 0.020 297.5)1.15 低于 AA
红color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.59 低于 AA
绿color2#3cbbb1rgb(60 187 177)hsl(175 51% 48%)oklch(72.1% 0.110 187.4)7.24 AAA
黄color3#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)4.55 AA
蓝color4#b3adbargb(179 173 186)hsl(268 9% 70%)oklch(75.7% 0.019 306.6)7.79 AAA
品红color5#9484d6rgb(148 132 214)hsl(252 50% 68%)oklch(66.1% 0.120 291.7)5.30 AA
青color6#b3adbargb(179 173 186)hsl(268 9% 70%)oklch(75.7% 0.019 306.6)7.79 AAA
白color7#c8c0d3rgb(200 192 211)hsl(265 18% 79%)oklch(82.0% 0.028 304.8)9.68 AAA
亮黑color8#413c4ergb(65 60 78)hsl(257 13% 27%)oklch(36.9% 0.031 297.6)1.61 低于 AA
亮红color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)3.77 AA 大字号
亮绿color10#85d8d1rgb(133 216 209)hsl(175 52% 68%)oklch(82.7% 0.082 188.8)10.33 AAA
亮黄color11#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)8.59 AAA
亮蓝color12#e6e4e9rgb(230 228 233)hsl(264 10% 90%)oklch(92.2% 0.007 304.2)13.49 AAA
亮品红color13#d7d0efrgb(215 208 239)hsl(254 49% 88%)oklch(87.3% 0.043 295.8)11.48 AAA
亮青color14#e6e4e9rgb(230 228 233)hsl(264 10% 90%)oklch(92.2% 0.007 304.2)13.49 AAA
亮白color15#e2dee8rgb(226 222 232)hsl(264 18% 89%)oklch(90.7% 0.014 304.1)12.85 AAA

关于 Loyal Contrast

Loyal Contrast 采用冷色调的深色背景(#1d1b23),默认前景色为 #bbb1c9。正文的 WCAG 对比度为 8.31:1(AAA),12 种 ANSI 彩色槽位平均对比度 8.03:1,最低 2.59:1。

色板整体色彩饱和度适中,其中红色为 #ba0e2e、绿色为 #3cbbb1、蓝色为 #b3adba、品红为 #9484d6。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Loyal Contrast 相似的配色

数据来源:Rainglow (MIT)