跳到正文

Elemental

Elemental 是一套深色终端配色(柔和),背景色 #22211d,文字色 #807a74,对比度 3.8:1

获取配置
背景色
#22211d
前景色
#807a74
文字对比度
3.80:1AA 大字号
强调色对比度
5.23:1最低 2.04
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
❯

Elemental 的配置文件

16 种格式,都从同一份色板生成

Elemental

存到 ~/.config/ghostty/themes/Elemental,再在 config 或 config.ghostty 里写 theme = Elemental

更多 Ghostty 配色
原始文件
# Theme: Elemental (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/elemental?format=ghostty

palette = 0=#3c3c30
palette = 1=#98290f
palette = 2=#479a43
palette = 3=#7f7111
palette = 4=#497f7d
palette = 5=#7f4e2f
palette = 6=#387f58
palette = 7=#807974
palette = 8=#555445
palette = 9=#e0502a
palette = 10=#61e070
palette = 11=#d69927
palette = 12=#79d9d9
palette = 13=#cd7c54
palette = 14=#59d599
palette = 15=#fff1e9
background = #22211d
foreground = #807a74
cursor-color = #facb80
cursor-text = #161611
selection-background = #413829
selection-foreground = #facd77

Elemental 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#22211drgb(34 33 29)hsl(48 8% 12%)oklch(24.7% 0.008 95.4)—
前景色foreground#807a74rgb(128 122 116)hsl(30 5% 48%)oklch(58.3% 0.012 67.6)3.80 AA 大字号
光标cursor#facb80rgb(250 203 128)hsl(37 92% 74%)oklch(86.7% 0.107 78.3)10.68 AAA
光标文字cursorText#161611rgb(22 22 17)hsl(60 13% 8%)oklch(19.8% 0.010 107.2)1.13 低于 AA
选区selection#413829rgb(65 56 41)hsl(38 23% 21%)oklch(34.6% 0.028 80.3)1.40 低于 AA
选区文字selectionText#facd77rgb(250 205 119)hsl(39 93% 72%)oklch(87.0% 0.116 82.4)10.79 AAA
黑color0#3c3c30rgb(60 60 48)hsl(60 11% 21%)oklch(35.2% 0.020 107.4)1.44 低于 AA
红color1#98290frgb(152 41 15)hsl(11 82% 33%)oklch(45.3% 0.151 33.9)2.04 低于 AA
绿color2#479a43rgb(71 154 67)hsl(117 39% 43%)oklch(61.4% 0.148 142.7)4.58 AA
黄color3#7f7111rgb(127 113 17)hsl(52 76% 28%)oklch(54.5% 0.108 100.2)3.28 AA 大字号
蓝color4#497f7drgb(73 127 125)hsl(178 27% 39%)oklch(55.9% 0.058 192.6)3.54 AA 大字号
品红color5#7f4e2frgb(127 78 47)hsl(23 46% 34%)oklch(47.3% 0.080 52.0)2.33 低于 AA
青color6#387f58rgb(56 127 88)hsl(147 39% 36%)oklch(54.0% 0.095 157.0)3.33 AA 大字号
白color7#807974rgb(128 121 116)hsl(25 5% 48%)oklch(58.1% 0.011 58.1)3.76 AA 大字号
亮黑color8#555445rgb(85 84 69)hsl(56 10% 30%)oklch(44.2% 0.024 104.2)2.10 低于 AA
亮红color9#e0502argb(224 80 42)hsl(13 75% 52%)oklch(62.2% 0.187 35.4)4.11 AA 大字号
亮绿color10#61e070rgb(97 224 112)hsl(127 67% 63%)oklch(81.0% 0.190 145.8)9.52 AAA
亮黄color11#d69927rgb(214 153 39)hsl(39 69% 50%)oklch(72.4% 0.140 77.5)6.48 AA
亮蓝color12#79d9d9rgb(121 217 217)hsl(180 56% 66%)oklch(82.7% 0.091 195.5)9.78 AAA
亮品红color13#cd7c54rgb(205 124 84)hsl(20 55% 57%)oklch(66.5% 0.115 46.4)5.07 AA
亮青color14#59d599rgb(89 213 153)hsl(151 60% 59%)oklch(78.7% 0.141 159.4)8.75 AAA
亮白color15#fff1e9rgb(255 241 233)hsl(22 100% 96%)oklch(96.7% 0.019 52.0)14.59 AAA

关于 Elemental

Elemental 采用中性色调的深色背景(#22211d),默认前景色为 #807a74。正文的 WCAG 对比度为 3.80:1(AA 大字号),12 种 ANSI 彩色槽位平均对比度 5.23:1,最低 2.04:1。

色板整体色彩饱和度适中,其中红色为 #98290f、绿色为 #479a43、蓝色为 #497f7d、品红为 #7f4e2f。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Elemental 相似的配色

数据来源:iTerm2 Color Schemes (MIT)