跳到主要內容

Elementary

Elementary 是一套深色終端機配色(鮮豔),背景色 #181818,文字色 #efefef,對比度 15.4:1

取得設定檔
背景色
#181818
前景色
#efefef
文字對比度
15.44:1AAA
強調色對比度
5.69:1最低 1.70
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
❯

Elementary 的設定檔

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

Elementary

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

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

palette = 0=#242424
palette = 1=#d71c15
palette = 2=#5aa513
palette = 3=#fdb40c
palette = 4=#063b8c
palette = 5=#e40038
palette = 6=#2595e1
palette = 7=#efefef
palette = 8=#4b4b4b
palette = 9=#fc1c18
palette = 10=#6bc219
palette = 11=#fec80e
palette = 12=#0955ff
palette = 13=#fb0050
palette = 14=#3ea8fc
palette = 15=#8c00ec
background = #181818
foreground = #efefef
cursor-color = #bbbbbb
cursor-text = #ffffff
selection-background = #b5d5ff
selection-foreground = #000000

Elementary 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#181818rgb(24 24 24)hsl(0 0% 9%)oklch(20.9% 0.000 0)—
前景色foreground#efefefrgb(239 239 239)hsl(0 0% 94%)oklch(95.2% 0.000 0)15.44 AAA
游標cursor#bbbbbbrgb(187 187 187)hsl(0 0% 73%)oklch(79.2% 0.000 0)9.25 AAA
游標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)17.76 AAA
選取範圍selection#b5d5ffrgb(181 213 255)hsl(214 100% 85%)oklch(86.4% 0.068 255.3)11.78 AAA
選取文字selectionText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.18 低於 AA
黑color0#242424rgb(36 36 36)hsl(0 0% 14%)oklch(26.0% 0.000 0)1.14 低於 AA
紅color1#d71c15rgb(215 28 21)hsl(2 82% 46%)oklch(56.1% 0.217 29.0)3.44 AA 大字級
綠color2#5aa513rgb(90 165 19)hsl(91 79% 36%)oklch(64.8% 0.182 134.6)5.77 AA
黃color3#fdb40crgb(253 180 12)hsl(42 98% 52%)oklch(81.8% 0.168 78.9)9.90 AAA
藍color4#063b8crgb(6 59 140)hsl(216 92% 29%)oklch(37.6% 0.145 259.9)1.70 低於 AA
洋紅color5#e40038rgb(228 0 56)hsl(345 100% 45%)oklch(58.1% 0.234 20.9)3.68 AA 大字級
青color6#2595e1rgb(37 149 225)hsl(204 76% 51%)oklch(64.6% 0.148 244.5)5.47 AA
白color7#efefefrgb(239 239 239)hsl(0 0% 94%)oklch(95.2% 0.000 0)15.44 AAA
亮黑color8#4b4b4brgb(75 75 75)hsl(0 0% 29%)oklch(41.3% 0.000 0)2.04 低於 AA
亮紅color9#fc1c18rgb(252 28 24)hsl(1 97% 54%)oklch(63.0% 0.248 28.8)4.50 AA 大字級
亮綠color10#6bc219rgb(107 194 25)hsl(91 77% 43%)oklch(73.1% 0.205 134.6)7.91 AAA
亮黃color11#fec80ergb(254 200 14)hsl(47 99% 53%)oklch(85.7% 0.173 88.6)11.40 AAA
亮藍color12#0955ffrgb(9 85 255)hsl(221 100% 52%)oklch(53.4% 0.259 263.1)3.18 AA 大字級
亮洋紅color13#fb0050rgb(251 0 80)hsl(341 100% 49%)oklch(62.7% 0.251 16.4)4.41 AA 大字級
亮青color14#3ea8fcrgb(62 168 252)hsl(207 97% 62%)oklch(70.9% 0.156 246.6)6.94 AA
亮白color15#8c00ecrgb(140 0 236)hsl(276 100% 46%)oklch(52.6% 0.279 301.5)2.81 低於 AA

關於 Elementary

Elementary 採用中性色調的深色背景(#181818),預設前景色為 #efefef。內文的 WCAG 對比度為 15.44:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.69:1,最低 1.70:1。

色票整體色彩彩度較高,其中紅色為 #d71c15、綠色為 #5aa513、藍色為 #063b8c、洋紅為 #e40038。

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

與 Elementary 相似的配色

資料來源:iTerm2 Color Schemes (LGPL-3.0-or-later)