跳到主要內容

TokyoNight Moon

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

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

TokyoNight Moon 的設定檔

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

TokyoNight Moon

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

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

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

TokyoNight 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#2d3f76rgb(45 63 118)hsl(225 45% 32%)oklch(38.2% 0.096 268.0)1.52 低於 AA
選取文字selectionText#c8d3f5rgb(200 211 245)hsl(225 69% 87%)oklch(86.9% 0.049 271.2)10.26 AAA
黑color0#1b1d2brgb(27 29 43)hsl(233 23% 14%)oklch(23.5% 0.027 277.8)1.09 低於 AA
紅color1#ff757frgb(255 117 127)hsl(356 100% 73%)oklch(72.9% 0.168 17.8)5.90 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#c099ffrgb(192 153 255)hsl(263 100% 80%)oklch(75.8% 0.147 300.6)6.73 AA
青color6#86e1fcrgb(134 225 252)hsl(194 95% 76%)oklch(86.2% 0.095 219.0)10.33 AAA
白color7#828bb8rgb(130 139 184)hsl(230 28% 62%)oklch(64.6% 0.068 275.6)4.61 AA
亮黑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#ffc777rgb(255 199 119)hsl(35 100% 73%)oklch(86.3% 0.117 75.0)9.96 AAA
亮藍color12#82aaffrgb(130 170 255)hsl(221 100% 75%)oklch(74.4% 0.131 264.3)6.66 AA
亮洋紅color13#c099ffrgb(192 153 255)hsl(263 100% 80%)oklch(75.8% 0.147 300.6)6.73 AA
亮青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

關於 TokyoNight Moon

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

色票整體色彩彩度適中,其中紅色為 #ff757f、綠色為 #c3e88d、藍色為 #82aaff、洋紅為 #c099ff。此配色歸屬 Tokyo Night 主題系列。

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

與 TokyoNight Moon 相似的配色

資料來源:iTerm2 Color Schemes (Apache-2.0)