跳到主要內容

Swayr

Swayr 是一套深色終端機配色(暖色),背景色 #1c1709,文字色 #c2b9a1,對比度 9.1:1

取得設定檔
背景色
#1c1709
前景色
#c2b9a1
文字對比度
9.14:1AAA
強調色對比度
5.58:1最低 1.63
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
❯

Swayr 的設定檔

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

Swayr

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

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

palette = 0=#1c1709
palette = 1=#8e4317
palette = 2=#787200
palette = 3=#945c00
palette = 4=#315094
palette = 5=#5c2e40
palette = 6=#00617d
palette = 7=#c2b9a1
palette = 8=#4f4939
palette = 9=#f07935
palette = 10=#d9d138
palette = 11=#ffab26
palette = 12=#8aa9ed
palette = 13=#ff8cb8
palette = 14=#43bfe0
palette = 15=#f2e8c9
background = #1c1709
foreground = #c2b9a1
cursor-color = #c2b9a1
cursor-text = #1c1709
selection-background = #413a2a
selection-foreground = #c2b9a1

Swayr 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1c1709rgb(28 23 9)hsl(44 51% 7%)oklch(20.6% 0.026 90.4)—
前景色foreground#c2b9a1rgb(194 185 161)hsl(44 21% 70%)oklch(78.7% 0.034 89.9)9.14 AAA
游標cursor#c2b9a1rgb(194 185 161)hsl(44 21% 70%)oklch(78.7% 0.034 89.9)9.14 AAA
游標文字cursorText#1c1709rgb(28 23 9)hsl(44 51% 7%)oklch(20.6% 0.026 90.4)1.00 低於 AA
選取範圍selection#413a2argb(65 58 42)hsl(42 21% 21%)oklch(35.1% 0.028 87.1)1.58 低於 AA
選取文字selectionText#c2b9a1rgb(194 185 161)hsl(44 21% 70%)oklch(78.7% 0.034 89.9)9.14 AAA
黑color0#1c1709rgb(28 23 9)hsl(44 51% 7%)oklch(20.6% 0.026 90.4)1.00 低於 AA
紅color1#8e4317rgb(142 67 23)hsl(22 72% 32%)oklch(47.2% 0.116 47.1)2.52 低於 AA
綠color2#787200rgb(120 114 0)hsl(57 100% 24%)oklch(54.0% 0.115 106.0)3.58 AA 大字級
黃color3#945c00rgb(148 92 0)hsl(37 100% 29%)oklch(52.5% 0.114 69.1)3.22 AA 大字級
藍color4#315094rgb(49 80 148)hsl(221 50% 39%)oklch(44.4% 0.118 263.8)2.30 低於 AA
洋紅color5#5c2e40rgb(92 46 64)hsl(337 33% 27%)oklch(36.7% 0.071 356.3)1.63 低於 AA
青color6#00617drgb(0 97 125)hsl(193 100% 25%)oklch(45.9% 0.088 226.1)2.56 低於 AA
白color7#c2b9a1rgb(194 185 161)hsl(44 21% 70%)oklch(78.7% 0.034 89.9)9.14 AAA
亮黑color8#4f4939rgb(79 73 57)hsl(44 16% 27%)oklch(40.6% 0.027 89.9)1.99 低於 AA
亮紅color9#f07935rgb(240 121 53)hsl(22 86% 57%)oklch(70.3% 0.166 47.1)6.37 AA
亮綠color10#d9d138rgb(217 209 56)hsl(57 68% 54%)oklch(84.2% 0.164 106.4)11.16 AAA
亮黃color11#ffab26rgb(255 171 38)hsl(37 100% 57%)oklch(80.4% 0.163 71.8)9.44 AAA
亮藍color12#8aa9edrgb(138 169 237)hsl(221 73% 74%)oklch(73.8% 0.105 265.1)7.64 AAA
亮洋紅color13#ff8cb8rgb(255 140 184)hsl(337 100% 77%)oklch(77.7% 0.147 356.7)8.25 AAA
亮青color14#43bfe0rgb(67 191 224)hsl(193 72% 57%)oklch(75.0% 0.116 219.3)8.31 AAA
亮白color15#f2e8c9rgb(242 232 201)hsl(45 61% 87%)oklch(93.1% 0.042 92.2)14.59 AAA

關於 Swayr

Swayr 採用暖色調的深色背景(#1c1709),預設前景色為 #c2b9a1。內文的 WCAG 對比度為 9.14:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.58:1,最低 1.63:1。

色票整體色彩彩度適中,其中紅色為 #8e4317、綠色為 #787200、藍色為 #315094、洋紅為 #5c2e40。

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

與 Swayr 相似的配色

資料來源:terminal.sexy (MIT)