跳到主要內容

Swamp Dark

Swamp Dark 是一套深色終端機配色(暖色),背景色 #242015,文字色 #d2c3a4,對比度 9.3:1

取得設定檔
背景色
#242015
前景色
#d2c3a4
文字對比度
9.35:1AAA
強調色對比度
4.26:1最低 2.46
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
❯

Swamp Dark 的設定檔

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

Swamp Dark

存到 ~/.config/ghostty/themes/Swamp Dark,再在 config 或 config.ghostty 裏寫 theme = Swamp Dark

更多 Ghostty 配色
原始檔案
# Theme: Swamp Dark (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/swamp-dark?format=ghostty

palette = 0=#242015
palette = 1=#db930d
palette = 2=#7a7653
palette = 3=#a82d56
palette = 4=#c1666b
palette = 5=#91506c
palette = 6=#db930d
palette = 7=#d2c3a4
palette = 8=#5f4e41
palette = 9=#db930d
palette = 10=#7a7653
palette = 11=#a82d56
palette = 12=#c1666b
palette = 13=#91506c
palette = 14=#db930d
palette = 15=#f1e9d0
background = #242015
foreground = #d2c3a4
cursor-color = #d2c3a4
cursor-text = #242015
selection-background = #4b4434
selection-foreground = #d2c3a4

Swamp Dark 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#242015rgb(36 32 21)hsl(44 26% 11%)oklch(24.4% 0.021 90.4)—
前景色foreground#d2c3a4rgb(210 195 164)hsl(40 34% 73%)oklch(82.2% 0.045 85.2)9.35 AAA
光標cursor#d2c3a4rgb(210 195 164)hsl(40 34% 73%)oklch(82.2% 0.045 85.2)9.35 AAA
光標文字cursorText#242015rgb(36 32 21)hsl(44 26% 11%)oklch(24.4% 0.021 90.4)1.00 低於 AA
選取範圍selection#4b4434rgb(75 68 52)hsl(42 18% 25%)oklch(38.9% 0.027 87.1)1.68 低於 AA
選取文字selectionText#d2c3a4rgb(210 195 164)hsl(40 34% 73%)oklch(82.2% 0.045 85.2)9.35 AAA
黑color0#242015rgb(36 32 21)hsl(44 26% 11%)oklch(24.4% 0.021 90.4)1.00 低於 AA
紅color1#db930drgb(219 147 13)hsl(39 89% 45%)oklch(71.8% 0.150 73.7)6.34 AA
綠color2#7a7653rgb(122 118 83)hsl(54 19% 40%)oklch(56.0% 0.051 102.4)3.52 AA 大字體
黃color3#a82d56rgb(168 45 86)hsl(340 58% 42%)oklch(49.8% 0.161 5.2)2.46 低於 AA
藍color4#c1666brgb(193 102 107)hsl(357 42% 58%)oklch(61.7% 0.116 17.6)4.16 AA 大字體
洋紅color5#91506crgb(145 80 108)hsl(334 29% 44%)oklch(51.7% 0.093 353.6)2.76 低於 AA
青color6#db930drgb(219 147 13)hsl(39 89% 45%)oklch(71.8% 0.150 73.7)6.34 AA
白color7#d2c3a4rgb(210 195 164)hsl(40 34% 73%)oklch(82.2% 0.045 85.2)9.35 AAA
亮黑color8#5f4e41rgb(95 78 65)hsl(26 19% 31%)oklch(43.7% 0.031 59.3)2.05 低於 AA
亮紅color9#db930drgb(219 147 13)hsl(39 89% 45%)oklch(71.8% 0.150 73.7)6.34 AA
亮綠color10#7a7653rgb(122 118 83)hsl(54 19% 40%)oklch(56.0% 0.051 102.4)3.52 AA 大字體
亮黃color11#a82d56rgb(168 45 86)hsl(340 58% 42%)oklch(49.8% 0.161 5.2)2.46 低於 AA
亮藍color12#c1666brgb(193 102 107)hsl(357 42% 58%)oklch(61.7% 0.116 17.6)4.16 AA 大字體
亮洋紅color13#91506crgb(145 80 108)hsl(334 29% 44%)oklch(51.7% 0.093 353.6)2.76 低於 AA
亮青color14#db930drgb(219 147 13)hsl(39 89% 45%)oklch(71.8% 0.150 73.7)6.34 AA
亮白color15#f1e9d0rgb(241 233 208)hsl(45 54% 88%)oklch(93.4% 0.034 92.3)13.39 AAA

關於 Swamp Dark

Swamp Dark 採用暖色調的深色背景(#242015),預設前景色為 #d2c3a4。正文的 WCAG 對比度為 9.35:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.26:1,最低 2.46:1。

色板整體色彩飽和度適中,其中紅色為 #db930d、綠色為 #7a7653、藍色為 #c1666b、洋紅為 #91506c。

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

與 Swamp Dark 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)