跳到主要內容

Nighty

Nighty 是一套深色終端機配色(柔和),背景色 #2f2f2f,文字色 #dfdfdf,對比度 10.1:1

取得設定檔
背景色
#2f2f2f
前景色
#dfdfdf
文字對比度
10.05:1AAA
強調色對比度
3.70:1最低 1.26
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
❯

Nighty 的設定檔

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

Nighty

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

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

palette = 0=#373d48
palette = 1=#9b3e46
palette = 2=#095b32
palette = 3=#808020
palette = 4=#1d3e6f
palette = 5=#823065
palette = 6=#3a7458
palette = 7=#828282
palette = 8=#5c6370
palette = 9=#d0555f
palette = 10=#119955
palette = 11=#dfe048
palette = 12=#4674b8
palette = 13=#ed86c9
palette = 14=#70d2a4
palette = 15=#dfdfdf
background = #2f2f2f
foreground = #dfdfdf
cursor-color = #dfdfdf
cursor-text = #2f2f2f
selection-background = #565656
selection-foreground = #dfdfdf

Nighty 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2f2f2frgb(47 47 47)hsl(0 0% 18%)oklch(30.5% 0.000 0)—
前景色foreground#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA
游標cursor#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA
游標文字cursorText#2f2f2frgb(47 47 47)hsl(0 0% 18%)oklch(30.5% 0.000 0)1.00 低於 AA
選取範圍selection#565656rgb(86 86 86)hsl(0 0% 34%)oklch(45.3% 0.000 0)1.82 低於 AA
選取文字selectionText#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA
黑color0#373d48rgb(55 61 72)hsl(219 13% 25%)oklch(35.9% 0.021 262.6)1.23 低於 AA
紅color1#9b3e46rgb(155 62 70)hsl(355 43% 43%)oklch(49.2% 0.124 17.7)2.02 低於 AA
綠color2#095b32rgb(9 91 50)hsl(150 82% 20%)oklch(41.5% 0.100 154.5)1.63 低於 AA
黃color3#808020rgb(128 128 32)hsl(60 60% 31%)oklch(58.2% 0.114 109.5)3.20 AA 大字級
藍color4#1d3e6frgb(29 62 111)hsl(216 59% 27%)oklch(36.7% 0.093 258.3)1.26 低於 AA
洋紅color5#823065rgb(130 48 101)hsl(321 46% 35%)oklch(44.4% 0.129 344.0)1.63 低於 AA
青color6#3a7458rgb(58 116 88)hsl(151 33% 34%)oklch(51.1% 0.076 161.0)2.43 低於 AA
白color7#828282rgb(130 130 130)hsl(0 0% 51%)oklch(60.7% 0.000 0)3.48 AA 大字級
亮黑color8#5c6370rgb(92 99 112)hsl(219 10% 40%)oklch(49.8% 0.022 262.9)2.21 低於 AA
亮紅color9#d0555frgb(208 85 95)hsl(355 57% 57%)oklch(61.1% 0.156 18.1)3.28 AA 大字級
亮綠color10#119955rgb(17 153 85)hsl(150 80% 33%)oklch(60.1% 0.148 153.8)3.64 AA 大字級
亮黃color11#dfe048rgb(223 224 72)hsl(60 71% 58%)oklch(87.9% 0.167 109.8)9.50 AAA
亮藍color12#4674b8rgb(70 116 184)hsl(216 45% 50%)oklch(55.8% 0.118 258.0)2.84 低於 AA
亮洋紅color13#ed86c9rgb(237 134 201)hsl(321 74% 73%)oklch(75.1% 0.149 341.8)5.65 AA
亮青color14#70d2a4rgb(112 210 164)hsl(152 52% 63%)oklch(79.1% 0.115 161.8)7.30 AAA
亮白color15#dfdfdfrgb(223 223 223)hsl(0 0% 87%)oklch(90.4% 0.000 0)10.05 AAA

關於 Nighty

Nighty 採用中性色調的深色背景(#2f2f2f),預設前景色為 #dfdfdf。內文的 WCAG 對比度為 10.05:1(AAA),12 種 ANSI 彩色槽位平均對比度 3.70:1,最低 1.26:1。

色票整體色彩彩度適中,其中紅色為 #9b3e46、綠色為 #095b32、藍色為 #1d3e6f、洋紅為 #823065。

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

與 Nighty 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)