跳到主要內容

Nudge

Nudge 是一套深色終端機配色(純黑、柔和),背景色 #000000,文字色 #ffffff,對比度 21.0:1

取得設定檔
背景色
#000000
前景色
#ffffff
文字對比度
21.00:1AAA
強調色對比度
2.69:1最低 1.18
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
❯

Nudge 的設定檔

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

Nudge

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

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

palette = 0=#658280
palette = 1=#822f5d
palette = 2=#184a31
palette = 3=#9d4500
palette = 4=#304465
palette = 5=#330801
palette = 6=#175552
palette = 7=#110005
palette = 8=#8ca8a6
palette = 9=#a24b76
palette = 10=#28634d
palette = 11=#9d5823
palette = 12=#415c77
palette = 13=#532706
palette = 14=#3a6868
palette = 15=#330801
background = #000000
foreground = #ffffff
cursor-color = #ffffff
cursor-text = #000000
selection-background = #222222
selection-foreground = #ffffff

Nudge 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA
光標cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA
光標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低於 AA
選取範圍selection#222222rgb(34 34 34)hsl(0 0% 13%)oklch(25.2% 0.000 0)1.32 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA
黑color0#658280rgb(101 130 128)hsl(176 13% 45%)oklch(58.4% 0.033 191.1)5.06 AA
紅color1#822f5drgb(130 47 93)hsl(327 47% 35%)oklch(44.0% 0.126 349.2)2.51 低於 AA
綠color2#184a31rgb(24 74 49)hsl(150 51% 19%)oklch(36.8% 0.069 158.3)2.06 低於 AA
黃color3#9d4500rgb(157 69 0)hsl(26 100% 31%)oklch(49.8% 0.135 48.5)3.28 AA 大字體
藍color4#304465rgb(48 68 101)hsl(217 36% 29%)oklch(38.6% 0.062 260.1)2.14 低於 AA
洋紅color5#330801rgb(51 8 1)hsl(8 96% 10%)oklch(21.4% 0.071 35.3)1.18 低於 AA
青color6#175552rgb(23 85 82)hsl(177 57% 21%)oklch(41.0% 0.061 190.4)2.46 低於 AA
白color7#110005rgb(17 0 5)hsl(342 100% 3%)oklch(11.5% 0.047 358.1)1.03 低於 AA
亮黑color8#8ca8a6rgb(140 168 166)hsl(176 14% 60%)oklch(71.0% 0.031 191.2)8.27 AAA
亮紅color9#a24b76rgb(162 75 118)hsl(330 37% 46%)oklch(53.6% 0.125 351.3)3.80 AA 大字體
亮綠color10#28634drgb(40 99 77)hsl(158 42% 27%)oklch(45.4% 0.072 166.0)2.98 低於 AA
亮黃color11#9d5823rgb(157 88 35)hsl(26 64% 38%)oklch(53.2% 0.112 54.5)3.85 AA 大字體
亮藍color12#415c77rgb(65 92 119)hsl(210 29% 36%)oklch(46.5% 0.055 249.1)3.02 AA 大字體
亮洋紅color13#532706rgb(83 39 6)hsl(26 87% 17%)oklch(32.8% 0.078 52.0)1.66 低於 AA
亮青color14#3a6868rgb(58 104 104)hsl(180 28% 32%)oklch(48.5% 0.051 195.6)3.36 AA 大字體
亮白color15#330801rgb(51 8 1)hsl(8 96% 10%)oklch(21.4% 0.071 35.3)1.18 低於 AA

關於 Nudge

Nudge 採用中性色調的深色背景(#000000),預設前景色為 #ffffff。正文的 WCAG 對比度為 21.00:1(AAA),12 種 ANSI 彩色槽位平均對比度 2.69:1,最低 1.18:1。

色板整體色彩飽和度偏低,其中紅色為 #822f5d、綠色為 #184a31、藍色為 #304465、洋紅為 #330801。

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

與 Nudge 相似的配色

資料來源:terminal.sexy (MIT)