跳到主要內容

Electron Highlighter

Electron Highlighter 是一套深色終端機配色(冷色),背景色 #23283d,文字色 #a5b6d4,對比度 7.1:1

取得設定檔
背景色
#23283d
前景色
#a5b6d4
文字對比度
7.10:1AAA
強調色對比度
8.66:1最低 5.40
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
❯

Electron Highlighter 的設定檔

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

Electron Highlighter

存到 ~/.config/ghostty/themes/Electron Highlighter,再在 config 或 config.ghostty 裏寫 theme = Electron Highlighter

更多 Ghostty 配色
原始檔案
# Theme: Electron Highlighter (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/electron-highlighter?format=ghostty

palette = 0=#15161f
palette = 1=#ff6c8d
palette = 2=#00ffc3
palette = 3=#ffebb1
palette = 4=#77abff
palette = 5=#daa4f4
palette = 6=#00e5ff
palette = 7=#7187b7
palette = 8=#4b5b8c
palette = 9=#ff6c8d
palette = 10=#00ffc3
palette = 11=#ffebb1
palette = 12=#77abff
palette = 13=#daa4f4
palette = 14=#00e5ff
palette = 15=#c3cde2
background = #23283d
foreground = #a5b6d4
cursor-color = #a5b6d4
cursor-text = #171b29
selection-background = #293257
selection-foreground = #a5b6d4

Electron Highlighter 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#23283drgb(35 40 61)hsl(228 27% 19%)oklch(28.2% 0.039 273.4)—
前景色foreground#a5b6d4rgb(165 182 212)hsl(218 35% 74%)oklch(77.3% 0.047 261.8)7.10 AAA
光標cursor#a5b6d4rgb(165 182 212)hsl(218 35% 74%)oklch(77.3% 0.047 261.8)7.10 AAA
光標文字cursorText#171b29rgb(23 27 41)hsl(227 28% 13%)oklch(22.5% 0.028 271.7)1.18 低於 AA
選取範圍selection#293257rgb(41 50 87)hsl(228 36% 25%)oklch(32.8% 0.067 271.9)1.17 低於 AA
選取文字selectionText#a5b6d4rgb(165 182 212)hsl(218 35% 74%)oklch(77.3% 0.047 261.8)7.10 AAA
黑color0#15161frgb(21 22 31)hsl(234 19% 10%)oklch(20.3% 0.018 279.7)1.24 低於 AA
紅color1#ff6c8drgb(255 108 141)hsl(347 100% 71%)oklch(72.0% 0.181 8.9)5.40 AA
綠color2#00ffc3rgb(0 255 195)hsl(166 100% 50%)oklch(88.8% 0.180 167.9)11.16 AAA
黃color3#ffebb1rgb(255 235 177)hsl(45 100% 85%)oklch(94.2% 0.077 91.3)12.32 AAA
藍color4#77abffrgb(119 171 255)hsl(217 100% 73%)oklch(74.0% 0.134 259.6)6.28 AA
洋紅color5#daa4f4rgb(218 164 244)hsl(281 78% 80%)oklch(79.6% 0.124 314.4)7.35 AAA
青color6#00e5ffrgb(0 229 255)hsl(186 100% 50%)oklch(84.4% 0.146 209.3)9.46 AAA
白color7#7187b7rgb(113 135 183)hsl(221 33% 58%)oklch(62.5% 0.077 265.2)4.06 AA 大字體
亮黑color8#4b5b8crgb(75 91 140)hsl(225 30% 42%)oklch(48.0% 0.082 269.4)2.20 低於 AA
亮紅color9#ff6c8drgb(255 108 141)hsl(347 100% 71%)oklch(72.0% 0.181 8.9)5.40 AA
亮綠color10#00ffc3rgb(0 255 195)hsl(166 100% 50%)oklch(88.8% 0.180 167.9)11.16 AAA
亮黃color11#ffebb1rgb(255 235 177)hsl(45 100% 85%)oklch(94.2% 0.077 91.3)12.32 AAA
亮藍color12#77abffrgb(119 171 255)hsl(217 100% 73%)oklch(74.0% 0.134 259.6)6.28 AA
亮洋紅color13#daa4f4rgb(218 164 244)hsl(281 78% 80%)oklch(79.6% 0.124 314.4)7.35 AAA
亮青color14#00e5ffrgb(0 229 255)hsl(186 100% 50%)oklch(84.4% 0.146 209.3)9.46 AAA
亮白color15#c3cde2rgb(195 205 226)hsl(221 35% 83%)oklch(84.7% 0.031 265.3)9.12 AAA

關於 Electron Highlighter

Electron Highlighter 採用冷色調的深色背景(#23283d),預設前景色為 #a5b6d4。正文的 WCAG 對比度為 7.10:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.66:1,最低 5.40:1。

色板整體色彩飽和度適中,其中紅色為 #ff6c8d、綠色為 #00ffc3、藍色為 #77abff、洋紅為 #daa4f4。

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

與 Electron Highlighter 相似的配色

資料來源:iTerm2 Color Schemes (MIT)