跳到主要內容

Neutron

Neutron 是一套深色終端機配色,背景色 #1c1e22,文字色 #e6e8ef,對比度 13.6:1

取得設定檔
背景色
#1c1e22
前景色
#e6e8ef
文字對比度
13.63:1AAA
強調色對比度
5.30:1最低 2.98
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
❯

Neutron 的設定檔

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

Neutron

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

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

palette = 0=#23252b
palette = 1=#b54036
palette = 2=#5ab977
palette = 3=#deb566
palette = 4=#6a7c93
palette = 5=#a4799d
palette = 6=#3f94a8
palette = 7=#e6e8ef
palette = 8=#23252b
palette = 9=#b54036
palette = 10=#5ab977
palette = 11=#deb566
palette = 12=#6a7c93
palette = 13=#a4799d
palette = 14=#3f94a8
palette = 15=#ebedf2
background = #1c1e22
foreground = #e6e8ef
cursor-color = #f6f7ec
cursor-text = #c4c5b5
selection-background = #2f363e
selection-foreground = #7d8fa4

Neutron 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1c1e22rgb(28 30 34)hsl(220 10% 12%)oklch(23.5% 0.008 264.4)—
前景色foreground#e6e8efrgb(230 232 239)hsl(227 22% 92%)oklch(93.1% 0.010 273.4)13.63 AAA
光標cursor#f6f7ecrgb(246 247 236)hsl(65 41% 95%)oklch(97.2% 0.015 110.9)15.45 AAA
光標文字cursorText#c4c5b5rgb(196 197 181)hsl(64 12% 74%)oklch(81.8% 0.022 109.8)9.54 AAA
選取範圍selection#2f363ergb(47 54 62)hsl(212 14% 21%)oklch(33.0% 0.017 251.8)1.37 低於 AA
選取文字selectionText#7d8fa4rgb(125 143 164)hsl(212 18% 57%)oklch(64.3% 0.038 252.4)5.04 AA
黑color0#23252brgb(35 37 43)hsl(225 10% 15%)oklch(26.5% 0.012 271.0)1.09 低於 AA
紅color1#b54036rgb(181 64 54)hsl(5 54% 46%)oklch(53.4% 0.154 28.2)2.98 低於 AA
綠color2#5ab977rgb(90 185 119)hsl(138 40% 54%)oklch(71.1% 0.132 151.6)6.87 AA
黃color3#deb566rgb(222 181 102)hsl(40 65% 64%)oklch(79.3% 0.109 82.5)8.67 AAA
藍color4#6a7c93rgb(106 124 147)hsl(214 16% 50%)oklch(58.0% 0.041 254.7)3.91 AA 大字體
洋紅color5#a4799drgb(164 121 157)hsl(310 19% 56%)oklch(63.0% 0.073 332.2)4.61 AA
青color6#3f94a8rgb(63 148 168)hsl(191 45% 45%)oklch(62.3% 0.086 215.8)4.78 AA
白color7#e6e8efrgb(230 232 239)hsl(227 22% 92%)oklch(93.1% 0.010 273.4)13.63 AAA
亮黑color8#23252brgb(35 37 43)hsl(225 10% 15%)oklch(26.5% 0.012 271.0)1.09 低於 AA
亮紅color9#b54036rgb(181 64 54)hsl(5 54% 46%)oklch(53.4% 0.154 28.2)2.98 低於 AA
亮綠color10#5ab977rgb(90 185 119)hsl(138 40% 54%)oklch(71.1% 0.132 151.6)6.87 AA
亮黃color11#deb566rgb(222 181 102)hsl(40 65% 64%)oklch(79.3% 0.109 82.5)8.67 AAA
亮藍color12#6a7c93rgb(106 124 147)hsl(214 16% 50%)oklch(58.0% 0.041 254.7)3.91 AA 大字體
亮洋紅color13#a4799drgb(164 121 157)hsl(310 19% 56%)oklch(63.0% 0.073 332.2)4.61 AA
亮青color14#3f94a8rgb(63 148 168)hsl(191 45% 45%)oklch(62.3% 0.086 215.8)4.78 AA
亮白color15#ebedf2rgb(235 237 242)hsl(223 21% 94%)oklch(94.6% 0.007 268.5)14.25 AAA

關於 Neutron

Neutron 採用中性色調的深色背景(#1c1e22),預設前景色為 #e6e8ef。正文的 WCAG 對比度為 13.63:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.30:1,最低 2.98:1。

色板整體色彩飽和度適中,其中紅色為 #b54036、綠色為 #5ab977、藍色為 #6a7c93、洋紅為 #a4799d。

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

與 Neutron 相似的配色

資料來源:iTerm2 Color Schemes (MIT)