跳到主要內容

Tokyo Night Moon

Tokyo Night Moon 是一套深色終端機配色(粉彩、冷色),背景色 #222436,文字色 #c8d3f5,對比度 10.3:1

取得設定檔
背景色
#222436
前景色
#c8d3f5
文字對比度
10.26:1AAA
強調色對比度
8.94:1最低 5.90
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
❯

Tokyo Night Moon 的設定檔

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

Tokyo Night Moon

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

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

palette = 0=#222436
palette = 1=#c099ff
palette = 2=#c3e88d
palette = 3=#ffc777
palette = 4=#82aaff
palette = 5=#fca7ea
palette = 6=#86e1fc
palette = 7=#c8d3f5
palette = 8=#444a73
palette = 9=#ff757f
palette = 10=#c3e88d
palette = 11=#ffd793
palette = 12=#82aaff
palette = 13=#fca7ea
palette = 14=#86e1fc
palette = 15=#c8d3f5
background = #222436
foreground = #c8d3f5
cursor-color = #c8d3f5
cursor-text = #222436
selection-background = #2f334d
selection-foreground = #c8d3f5

Tokyo Night Moon 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#222436rgb(34 36 54)hsl(234 23% 17%)oklch(26.7% 0.034 279.0)—
前景色foreground#c8d3f5rgb(200 211 245)hsl(225 69% 87%)oklch(86.9% 0.049 271.2)10.26 AAA
光標cursor#c8d3f5rgb(200 211 245)hsl(225 69% 87%)oklch(86.9% 0.049 271.2)10.26 AAA
光標文字cursorText#222436rgb(34 36 54)hsl(234 23% 17%)oklch(26.7% 0.034 279.0)1.00 低於 AA
選取範圍selection#2f334drgb(47 51 77)hsl(232 24% 24%)oklch(32.9% 0.046 276.8)1.24 低於 AA
選取文字selectionText#c8d3f5rgb(200 211 245)hsl(225 69% 87%)oklch(86.9% 0.049 271.2)10.26 AAA
黑color0#222436rgb(34 36 54)hsl(234 23% 17%)oklch(26.7% 0.034 279.0)1.00 低於 AA
紅color1#c099ffrgb(192 153 255)hsl(263 100% 80%)oklch(75.8% 0.147 300.6)6.73 AA
綠color2#c3e88drgb(195 232 141)hsl(84 66% 73%)oklch(88.4% 0.124 126.8)11.10 AAA
黃color3#ffc777rgb(255 199 119)hsl(35 100% 73%)oklch(86.3% 0.117 75.0)9.96 AAA
藍color4#82aaffrgb(130 170 255)hsl(221 100% 75%)oklch(74.4% 0.131 264.3)6.66 AA
洋紅color5#fca7eargb(252 167 234)hsl(313 93% 82%)oklch(83.2% 0.130 334.7)8.63 AAA
青color6#86e1fcrgb(134 225 252)hsl(194 95% 76%)oklch(86.2% 0.095 219.0)10.33 AAA
白color7#c8d3f5rgb(200 211 245)hsl(225 69% 87%)oklch(86.9% 0.049 271.2)10.26 AAA
亮黑color8#444a73rgb(68 74 115)hsl(232 26% 36%)oklch(42.2% 0.069 276.7)1.80 低於 AA
亮紅color9#ff757frgb(255 117 127)hsl(356 100% 73%)oklch(72.9% 0.168 17.8)5.90 AA
亮綠color10#c3e88drgb(195 232 141)hsl(84 66% 73%)oklch(88.4% 0.124 126.8)11.10 AAA
亮黃color11#ffd793rgb(255 215 147)hsl(38 100% 79%)oklch(89.8% 0.096 80.3)11.21 AAA
亮藍color12#82aaffrgb(130 170 255)hsl(221 100% 75%)oklch(74.4% 0.131 264.3)6.66 AA
亮洋紅color13#fca7eargb(252 167 234)hsl(313 93% 82%)oklch(83.2% 0.130 334.7)8.63 AAA
亮青color14#86e1fcrgb(134 225 252)hsl(194 95% 76%)oklch(86.2% 0.095 219.0)10.33 AAA
亮白color15#c8d3f5rgb(200 211 245)hsl(225 69% 87%)oklch(86.9% 0.049 271.2)10.26 AAA

關於 Tokyo Night Moon

Tokyo Night Moon 採用冷色調的深色背景(#222436),預設前景色為 #c8d3f5。正文的 WCAG 對比度為 10.26:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.94:1,最低 5.90:1。

色板整體色彩飽和度適中,其中紅色為 #c099ff、綠色為 #c3e88d、藍色為 #82aaff、洋紅為 #fca7ea。該配色歸屬 Tokyo Night 主題系列。

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

與 Tokyo Night Moon 相似的配色

資料來源:Tinted Theming (Base16 & Base24) (MIT)