跳到主要內容

TokyoNight Day

TokyoNight Day 是一套淺色終端機配色(柔和),背景色 #e1e2e7,文字色 #3760bf,對比度 4.5:1

取得設定檔
背景色
#e1e2e7
前景色
#3760bf
文字對比度
4.52:1AA
強調色對比度
3.58:1最低 3.01
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 Day 的設定檔

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

TokyoNight Day

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

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

palette = 0=#e9e9ed
palette = 1=#f52a65
palette = 2=#587539
palette = 3=#8c6c3e
palette = 4=#2e7de9
palette = 5=#9854f1
palette = 6=#007197
palette = 7=#6172b0
palette = 8=#a1a6c5
palette = 9=#f52a65
palette = 10=#587539
palette = 11=#8c6c3e
palette = 12=#2e7de9
palette = 13=#9854f1
palette = 14=#007197
palette = 15=#3760bf
background = #e1e2e7
foreground = #3760bf
cursor-color = #3760bf
cursor-text = #e1e2e7
selection-background = #99a7df
selection-foreground = #3760bf

TokyoNight Day 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#e1e2e7rgb(225 226 231)hsl(230 11% 89%)oklch(91.3% 0.007 277.2)—
前景色foreground#3760bfrgb(55 96 191)hsl(222 55% 48%)oklch(51.2% 0.156 264.1)4.52 AA
游標cursor#3760bfrgb(55 96 191)hsl(222 55% 48%)oklch(51.2% 0.156 264.1)4.52 AA
游標文字cursorText#e1e2e7rgb(225 226 231)hsl(230 11% 89%)oklch(91.3% 0.007 277.2)1.00 低於 AA
選取範圍selection#99a7dfrgb(153 167 223)hsl(228 52% 74%)oklch(73.8% 0.083 273.4)1.81 低於 AA
選取文字selectionText#3760bfrgb(55 96 191)hsl(222 55% 48%)oklch(51.2% 0.156 264.1)4.52 AA
黑color0#e9e9edrgb(233 233 237)hsl(240 10% 92%)oklch(93.5% 0.005 286.3)1.07 低於 AA
紅color1#f52a65rgb(245 42 101)hsl(343 91% 56%)oklch(63.4% 0.233 11.6)3.01 AA 大字級
綠color2#587539rgb(88 117 57)hsl(89 34% 34%)oklch(52.5% 0.093 130.3)4.04 AA 大字級
黃color3#8c6c3ergb(140 108 62)hsl(35 39% 40%)oklch(55.3% 0.075 75.2)3.75 AA 大字級
藍color4#2e7de9rgb(46 125 233)hsl(215 81% 55%)oklch(60.0% 0.180 257.5)3.11 AA 大字級
洋紅color5#9854f1rgb(152 84 241)hsl(266 85% 64%)oklch(60.4% 0.225 299.5)3.33 AA 大字級
青color6#007197rgb(0 113 151)hsl(195 100% 30%)oklch(51.4% 0.103 230.5)4.26 AA 大字級
白color7#6172b0rgb(97 114 176)hsl(227 33% 54%)oklch(56.5% 0.098 271.3)3.57 AA 大字級
亮黑color8#a1a6c5rgb(161 166 197)hsl(232 24% 70%)oklch(73.2% 0.045 278.0)1.85 低於 AA
亮紅color9#f52a65rgb(245 42 101)hsl(343 91% 56%)oklch(63.4% 0.233 11.6)3.01 AA 大字級
亮綠color10#587539rgb(88 117 57)hsl(89 34% 34%)oklch(52.5% 0.093 130.3)4.04 AA 大字級
亮黃color11#8c6c3ergb(140 108 62)hsl(35 39% 40%)oklch(55.3% 0.075 75.2)3.75 AA 大字級
亮藍color12#2e7de9rgb(46 125 233)hsl(215 81% 55%)oklch(60.0% 0.180 257.5)3.11 AA 大字級
亮洋紅color13#9854f1rgb(152 84 241)hsl(266 85% 64%)oklch(60.4% 0.225 299.5)3.33 AA 大字級
亮青color14#007197rgb(0 113 151)hsl(195 100% 30%)oklch(51.4% 0.103 230.5)4.26 AA 大字級
亮白color15#3760bfrgb(55 96 191)hsl(222 55% 48%)oklch(51.2% 0.156 264.1)4.52 AA

關於 TokyoNight Day

TokyoNight Day 採用中性色調的淺色背景(#e1e2e7),預設前景色為 #3760bf。內文的 WCAG 對比度為 4.52:1(AA),12 種 ANSI 彩色槽位平均對比度 3.58:1,最低 3.01:1。

色票整體色彩彩度適中,其中紅色為 #f52a65、綠色為 #587539、藍色為 #2e7de9、洋紅為 #9854f1。此配色歸屬 Tokyo Night 主題系列。

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

與 TokyoNight Day 相似的配色

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