跳到正文

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