跳到主要內容

Yesterday Night

Yesterday Night 是一套深色終端機配色(冷色),背景色 #343d46,文字色 #dfe1e8,對比度 8.4:1

取得設定檔
背景色
#343d46
前景色
#dfe1e8
文字對比度
8.45:1AAA
強調色對比度
4.82:1最低 2.98
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
❯

Yesterday Night 的設定檔

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

Yesterday Night

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

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

palette = 0=#343d46
palette = 1=#cc6666
palette = 2=#b5bd68
palette = 3=#f0c674
palette = 4=#81a2be
palette = 5=#b294bb
palette = 6=#8abeb7
palette = 7=#dfe1e8
palette = 8=#a7adba
palette = 9=#cc6666
palette = 10=#b5bd68
palette = 11=#f0c674
palette = 12=#81a2be
palette = 13=#b294bb
palette = 14=#8abeb7
palette = 15=#ffffff
background = #343d46
foreground = #dfe1e8
cursor-color = #dfe1e8
cursor-text = #343d46
selection-background = #5b626b
selection-foreground = #dfe1e8

Yesterday Night 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#343d46rgb(52 61 70)hsl(210 15% 24%)oklch(35.5% 0.020 248.4)—
前景色foreground#dfe1e8rgb(223 225 232)hsl(227 16% 89%)oklch(91.0% 0.010 273.3)8.45 AAA
光標cursor#dfe1e8rgb(223 225 232)hsl(227 16% 89%)oklch(91.0% 0.010 273.3)8.45 AAA
光標文字cursorText#343d46rgb(52 61 70)hsl(210 15% 24%)oklch(35.5% 0.020 248.4)1.00 低於 AA
選取範圍selection#5b626brgb(91 98 107)hsl(214 8% 39%)oklch(49.3% 0.017 254.7)1.79 低於 AA
選取文字selectionText#dfe1e8rgb(223 225 232)hsl(227 16% 89%)oklch(91.0% 0.010 273.3)8.45 AAA
黑color0#343d46rgb(52 61 70)hsl(210 15% 24%)oklch(35.5% 0.020 248.4)1.00 低於 AA
紅color1#cc6666rgb(204 102 102)hsl(0 50% 60%)oklch(63.1% 0.130 21.4)2.98 低於 AA
綠color2#b5bd68rgb(181 189 104)hsl(66 39% 57%)oklch(77.3% 0.109 113.4)5.49 AA
黃color3#f0c674rgb(240 198 116)hsl(40 81% 70%)oklch(84.6% 0.111 82.9)6.85 AA
藍color4#81a2bergb(129 162 190)hsl(208 32% 63%)oklch(69.8% 0.055 244.3)4.12 AA 大字體
洋紅color5#b294bbrgb(178 148 187)hsl(286 22% 66%)oklch(70.7% 0.065 318.3)4.13 AA 大字體
青color6#8abeb7rgb(138 190 183)hsl(172 29% 64%)oklch(76.3% 0.055 185.7)5.33 AA
白color7#dfe1e8rgb(223 225 232)hsl(227 16% 89%)oklch(91.0% 0.010 273.3)8.45 AAA
亮黑color8#a7adbargb(167 173 186)hsl(221 12% 69%)oklch(74.7% 0.020 265.9)4.91 AA
亮紅color9#cc6666rgb(204 102 102)hsl(0 50% 60%)oklch(63.1% 0.130 21.4)2.98 低於 AA
亮綠color10#b5bd68rgb(181 189 104)hsl(66 39% 57%)oklch(77.3% 0.109 113.4)5.49 AA
亮黃color11#f0c674rgb(240 198 116)hsl(40 81% 70%)oklch(84.6% 0.111 82.9)6.85 AA
亮藍color12#81a2bergb(129 162 190)hsl(208 32% 63%)oklch(69.8% 0.055 244.3)4.12 AA 大字體
亮洋紅color13#b294bbrgb(178 148 187)hsl(286 22% 66%)oklch(70.7% 0.065 318.3)4.13 AA 大字體
亮青color14#8abeb7rgb(138 190 183)hsl(172 29% 64%)oklch(76.3% 0.055 185.7)5.33 AA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)11.04 AAA

關於 Yesterday Night

Yesterday Night 採用冷色調的深色背景(#343d46),預設前景色為 #dfe1e8。正文的 WCAG 對比度為 8.45:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.82:1,最低 2.98:1。

色板整體色彩飽和度適中,其中紅色為 #cc6666、綠色為 #b5bd68、藍色為 #81a2be、洋紅為 #b294bb。

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

與 Yesterday Night 相似的配色

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