跳到主要內容

Niji

Niji 是一套深色終端機配色(高對比),背景色 #141515,文字色 #ffffff,對比度 18.3:1

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

Niji 的設定檔

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

Niji

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

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

palette = 0=#333333
palette = 1=#d23e08
palette = 2=#54ca74
palette = 3=#fff700
palette = 4=#2ab9ff
palette = 5=#ff50da
palette = 6=#1ef9f5
palette = 7=#ddd0c4
palette = 8=#515151
palette = 9=#ffb7b7
palette = 10=#c1ffae
palette = 11=#fcffb8
palette = 12=#8efff3
palette = 13=#ffa2ed
palette = 14=#bcffc7
palette = 15=#ffffff
background = #141515
foreground = #ffffff
cursor-color = #ffc663
cursor-text = #141515
selection-background = #515151
selection-foreground = #ffc663

Niji 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#141515rgb(20 21 21)hsl(180 2% 8%)oklch(19.5% 0.002 197.0)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.30 AAA
光標cursor#ffc663rgb(255 198 99)hsl(38 100% 69%)oklch(85.9% 0.133 79.2)11.77 AAA
光標文字cursorText#141515rgb(20 21 21)hsl(180 2% 8%)oklch(19.5% 0.002 197.0)1.00 低於 AA
選取範圍selection#515151rgb(81 81 81)hsl(0 0% 32%)oklch(43.5% 0.000 0)2.30 低於 AA
選取文字selectionText#ffc663rgb(255 198 99)hsl(38 100% 69%)oklch(85.9% 0.133 79.2)11.77 AAA
黑color0#333333rgb(51 51 51)hsl(0 0% 20%)oklch(32.1% 0.000 0)1.45 低於 AA
紅color1#d23e08rgb(210 62 8)hsl(16 93% 43%)oklch(57.7% 0.192 36.4)3.86 AA 大字體
綠color2#54ca74rgb(84 202 116)hsl(136 53% 56%)oklch(75.1% 0.162 149.7)8.78 AAA
黃color3#fff700rgb(255 247 0)hsl(58 100% 50%)oklch(95.1% 0.204 107.3)16.17 AAA
藍color4#2ab9ffrgb(42 185 255)hsl(200 100% 58%)oklch(74.5% 0.152 236.6)8.26 AAA
洋紅color5#ff50dargb(255 80 218)hsl(313 100% 66%)oklch(71.8% 0.251 337.6)6.46 AA
青color6#1ef9f5rgb(30 249 245)hsl(179 95% 55%)oklch(88.9% 0.149 192.7)13.87 AAA
白color7#ddd0c4rgb(221 208 196)hsl(29 27% 82%)oklch(86.5% 0.022 65.3)12.10 AAA
亮黑color8#515151rgb(81 81 81)hsl(0 0% 32%)oklch(43.5% 0.000 0)2.30 低於 AA
亮紅color9#ffb7b7rgb(255 183 183)hsl(0 100% 86%)oklch(84.7% 0.084 19.0)11.07 AAA
亮綠color10#c1ffaergb(193 255 174)hsl(106 100% 84%)oklch(93.9% 0.123 138.5)15.84 AAA
亮黃color11#fcffb8rgb(252 255 184)hsl(63 100% 86%)oklch(98.1% 0.090 110.0)17.54 AAA
亮藍color12#8efff3rgb(142 255 243)hsl(174 100% 78%)oklch(93.0% 0.106 186.7)15.46 AAA
亮洋紅color13#ffa2edrgb(255 162 237)hsl(312 100% 82%)oklch(82.8% 0.144 334.1)10.14 AAA
亮青color14#bcffc7rgb(188 255 199)hsl(130 100% 87%)oklch(94.1% 0.101 149.2)15.91 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.30 AAA

關於 Niji

Niji 採用中性色調的深色背景(#141515),預設前景色為 #ffffff。正文的 WCAG 對比度為 18.30:1(AAA),12 種 ANSI 彩色槽位平均對比度 11.95:1,最低 3.86:1。

色板整體色彩飽和度適中,其中紅色為 #d23e08、綠色為 #54ca74、藍色為 #2ab9ff、洋紅為 #ff50da。

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

與 Niji 相似的配色

資料來源:iTerm2 Color Schemes (MIT)