跳到主要內容

Sweet Mars

Sweet Mars 是一套深色終端機配色(低彩度、粉彩),背景色 #1a1e21,文字色 #b6b7b9,對比度 8.4:1

取得設定檔
背景色
#1a1e21
前景色
#b6b7b9
文字對比度
8.36:1AAA
強調色對比度
9.20:1最低 6.05
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
❯

Sweet Mars 的設定檔

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

Sweet Mars

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

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

palette = 0=#2e3436
palette = 1=#f67e7d
palette = 2=#cae7b9
palette = 3=#e1dd8f
palette = 4=#729fcf
palette = 5=#d7bcc8
palette = 6=#a0c1b9
palette = 7=#d3d7cf
palette = 8=#555753
palette = 9=#f67e7d
palette = 10=#cae7b9
palette = 11=#e1dd8f
palette = 12=#729fcf
palette = 13=#d7bcc8
palette = 14=#a0c1b9
palette = 15=#eeeeec
background = #1a1e21
foreground = #b6b7b9
cursor-color = #b6b7b9
cursor-text = #1a1e21
selection-background = #3c4043
selection-foreground = #b6b7b9

Sweet Mars 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1a1e21rgb(26 30 33)hsl(206 12% 12%)oklch(23.2% 0.008 240.2)—
前景色foreground#b6b7b9rgb(182 183 185)hsl(220 2% 72%)oklch(77.9% 0.003 264.5)8.36 AAA
游標cursor#b6b7b9rgb(182 183 185)hsl(220 2% 72%)oklch(77.9% 0.003 264.5)8.36 AAA
游標文字cursorText#1a1e21rgb(26 30 33)hsl(206 12% 12%)oklch(23.2% 0.008 240.2)1.00 低於 AA
選取範圍selection#3c4043rgb(60 64 67)hsl(206 6% 25%)oklch(36.9% 0.007 240.0)1.60 低於 AA
選取文字selectionText#b6b7b9rgb(182 183 185)hsl(220 2% 72%)oklch(77.9% 0.003 264.5)8.36 AAA
黑color0#2e3436rgb(46 52 54)hsl(195 8% 20%)oklch(32.0% 0.009 219.8)1.33 低於 AA
紅color1#f67e7drgb(246 126 125)hsl(0 87% 73%)oklch(72.9% 0.147 21.8)6.55 AA
綠color2#cae7b9rgb(202 231 185)hsl(98 49% 82%)oklch(89.5% 0.069 134.0)12.50 AAA
黃color3#e1dd8frgb(225 221 143)hsl(57 58% 72%)oklch(88.3% 0.099 105.7)11.94 AAA
藍color4#729fcfrgb(114 159 207)hsl(211 49% 63%)oklch(68.9% 0.086 250.7)6.05 AA
洋紅color5#d7bcc8rgb(215 188 200)hsl(333 25% 79%)oklch(82.2% 0.035 349.2)9.52 AAA
青color6#a0c1b9rgb(160 193 185)hsl(165 21% 69%)oklch(78.4% 0.037 178.9)8.65 AAA
白color7#d3d7cfrgb(211 215 207)hsl(90 9% 83%)oklch(87.4% 0.012 128.6)11.50 AAA
亮黑color8#555753rgb(85 87 83)hsl(90 2% 33%)oklch(45.4% 0.007 128.6)2.30 低於 AA
亮紅color9#f67e7drgb(246 126 125)hsl(0 87% 73%)oklch(72.9% 0.147 21.8)6.55 AA
亮綠color10#cae7b9rgb(202 231 185)hsl(98 49% 82%)oklch(89.5% 0.069 134.0)12.50 AAA
亮黃color11#e1dd8frgb(225 221 143)hsl(57 58% 72%)oklch(88.3% 0.099 105.7)11.94 AAA
亮藍color12#729fcfrgb(114 159 207)hsl(211 49% 63%)oklch(68.9% 0.086 250.7)6.05 AA
亮洋紅color13#d7bcc8rgb(215 188 200)hsl(333 25% 79%)oklch(82.2% 0.035 349.2)9.52 AAA
亮青color14#a0c1b9rgb(160 193 185)hsl(165 21% 69%)oklch(78.4% 0.037 178.9)8.65 AAA
亮白color15#eeeeecrgb(238 238 236)hsl(60 6% 93%)oklch(94.9% 0.003 106.5)14.44 AAA

關於 Sweet Mars

Sweet Mars 採用中性色調的深色背景(#1a1e21),預設前景色為 #b6b7b9。內文的 WCAG 對比度為 8.36:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.20:1,最低 6.05:1。

色票整體色彩彩度偏低,其中紅色為 #f67e7d、綠色為 #cae7b9、藍色為 #729fcf、洋紅為 #d7bcc8。

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

與 Sweet Mars 相似的配色

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