跳到正文

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