跳到主要內容

Loyal

Loyal 是一套深色終端機配色(柔和、冷色),背景色 #413e4f,文字色 #bbb1c9,對比度 5.1:1

取得設定檔
背景色
#413e4f
前景色
#bbb1c9
文字對比度
5.06:1AA
強調色對比度
4.89:1最低 1.57
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 的設定檔

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

Loyal

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

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

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

Loyal 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#413e4frgb(65 62 79)hsl(251 12% 28%)oklch(37.4% 0.029 293.0)—
前景色foreground#bbb1c9rgb(187 177 201)hsl(265 18% 74%)oklch(77.6% 0.035 304.4)5.06 AA
游標cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)9.71 AAA
游標文字cursorText#bbb1c9rgb(187 177 201)hsl(265 18% 74%)oklch(77.6% 0.035 304.4)5.06 AA
選取範圍selection#3cbbb1rgb(60 187 177)hsl(175 51% 48%)oklch(72.1% 0.110 187.4)4.41 AA 大字級
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)10.36 AAA
黑color0#4d495drgb(77 73 93)hsl(252 12% 33%)oklch(41.7% 0.033 294.1)1.20 低於 AA
紅color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)1.57 低於 AA
綠color2#3cbbb1rgb(60 187 177)hsl(175 51% 48%)oklch(72.1% 0.110 187.4)4.41 AA 大字級
黃color3#ee4266rgb(238 66 102)hsl(347 83% 60%)oklch(63.9% 0.207 13.5)2.77 低於 AA
藍color4#b3adbargb(179 173 186)hsl(268 9% 70%)oklch(75.7% 0.019 306.6)4.74 AA
洋紅color5#9484d6rgb(148 132 214)hsl(252 50% 68%)oklch(66.1% 0.120 291.7)3.22 AA 大字級
青color6#b3adbargb(179 173 186)hsl(268 9% 70%)oklch(75.7% 0.019 306.6)4.74 AA
白color7#c8c0d3rgb(200 192 211)hsl(265 18% 79%)oklch(82.0% 0.028 304.8)5.89 AA
亮黑color8#64607argb(100 96 122)hsl(249 12% 43%)oklch(50.3% 0.041 291.9)1.72 低於 AA
亮紅color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)2.29 低於 AA
亮綠color10#85d8d1rgb(133 216 209)hsl(175 52% 68%)oklch(82.7% 0.082 188.8)6.29 AA
亮黃color11#f6a0b2rgb(246 160 178)hsl(347 83% 80%)oklch(79.6% 0.104 6.1)5.23 AA
亮藍color12#e6e4e9rgb(230 228 233)hsl(264 10% 90%)oklch(92.2% 0.007 304.2)8.21 AAA
亮洋紅color13#d7d0efrgb(215 208 239)hsl(254 49% 88%)oklch(87.3% 0.043 295.8)6.99 AA
亮青color14#e6e4e9rgb(230 228 233)hsl(264 10% 90%)oklch(92.2% 0.007 304.2)8.21 AAA
亮白color15#e2dee8rgb(226 222 232)hsl(264 18% 89%)oklch(90.7% 0.014 304.1)7.82 AAA

關於 Loyal

Loyal 採用冷色調的深色背景(#413e4f),預設前景色為 #bbb1c9。內文的 WCAG 對比度為 5.06:1(AA),12 種 ANSI 彩色槽位平均對比度 4.89:1,最低 1.57: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 相似的配色

資料來源:Rainglow (MIT)