跳到主要內容

Elegant

Elegant 是一套深色終端機配色,背景色 #292b31,文字色 #ced2d6,對比度 9.3:1

取得設定檔
背景色
#292b31
前景色
#ced2d6
文字對比度
9.31:1AAA
強調色對比度
6.56:1最低 3.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
❯

Elegant 的設定檔

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

Elegant

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

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

palette = 0=#0a1222
palette = 1=#ff0257
palette = 2=#85cc95
palette = 3=#ffcb8b
palette = 4=#8dabe1
palette = 5=#c792eb
palette = 6=#78ccf0
palette = 7=#ffffff
palette = 8=#575656
palette = 9=#ff0057
palette = 10=#85cc95
palette = 11=#ffcb8b
palette = 12=#8dabe1
palette = 13=#c792eb
palette = 14=#3facef
palette = 15=#ffffff
background = #292b31
foreground = #ced2d6
cursor-color = #00beff
cursor-text = #ffffff
selection-background = #d5d5d5
selection-foreground = #144385

Elegant 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#292b31rgb(41 43 49)hsl(225 9% 18%)oklch(29.0% 0.011 271.0)—
前景色foreground#ced2d6rgb(206 210 214)hsl(210 9% 82%)oklch(86.2% 0.007 247.9)9.31 AAA
游標cursor#00beffrgb(0 190 255)hsl(195 100% 50%)oklch(75.3% 0.154 232.2)6.61 AA
游標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.15 AAA
選取範圍selection#d5d5d5rgb(213 213 213)hsl(0 0% 84%)oklch(87.3% 0.000 0)9.64 AAA
選取文字selectionText#144385rgb(20 67 133)hsl(215 74% 30%)oklch(39.2% 0.122 258.0)1.46 低於 AA
黑color0#0a1222rgb(10 18 34)hsl(220 55% 9%)oklch(18.4% 0.035 263.2)1.32 低於 AA
紅color1#ff0257rgb(255 2 87)hsl(340 100% 50%)oklch(63.6% 0.254 15.0)3.64 AA 大字級
綠color2#85cc95rgb(133 204 149)hsl(134 41% 66%)oklch(78.4% 0.106 150.5)7.46 AAA
黃color3#ffcb8brgb(255 203 139)hsl(33 100% 77%)oklch(87.4% 0.100 71.7)9.55 AAA
藍color4#8dabe1rgb(141 171 225)hsl(219 58% 72%)oklch(73.9% 0.085 261.9)6.09 AA
洋紅color5#c792ebrgb(199 146 235)hsl(276 69% 75%)oklch(74.3% 0.136 310.7)5.89 AA
青color6#78ccf0rgb(120 204 240)hsl(198 80% 71%)oklch(80.5% 0.096 227.6)7.88 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.15 AAA
亮黑color8#575656rgb(87 86 86)hsl(0 1% 34%)oklch(45.4% 0.001 17.2)1.93 低於 AA
亮紅color9#ff0057rgb(255 0 87)hsl(340 100% 50%)oklch(63.6% 0.254 14.9)3.63 AA 大字級
亮綠color10#85cc95rgb(133 204 149)hsl(134 41% 66%)oklch(78.4% 0.106 150.5)7.46 AAA
亮黃color11#ffcb8brgb(255 203 139)hsl(33 100% 77%)oklch(87.4% 0.100 71.7)9.55 AAA
亮藍color12#8dabe1rgb(141 171 225)hsl(219 58% 72%)oklch(73.9% 0.085 261.9)6.09 AA
亮洋紅color13#c792ebrgb(199 146 235)hsl(276 69% 75%)oklch(74.3% 0.136 310.7)5.89 AA
亮青color14#3facefrgb(63 172 239)hsl(203 85% 59%)oklch(71.2% 0.138 240.1)5.63 AA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.15 AAA

關於 Elegant

Elegant 採用中性色調的深色背景(#292b31),預設前景色為 #ced2d6。內文的 WCAG 對比度為 9.31:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.56:1,最低 3.63:1。

色票整體色彩彩度適中,其中紅色為 #ff0257、綠色為 #85cc95、藍色為 #8dabe1、洋紅為 #c792eb。

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

與 Elegant 相似的配色

資料來源:iTerm2 Color Schemes (MIT)