跳到主要內容

Cupertino

Cupertino 是一套淺色終端機配色(鮮艷),背景色 #ffffff,文字色 #404040,對比度 10.4:1

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

Cupertino 的設定檔

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

Cupertino

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

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

palette = 0=#ffffff
palette = 1=#c41a15
palette = 2=#007400
palette = 3=#826b28
palette = 4=#0000ff
palette = 5=#a90d91
palette = 6=#318495
palette = 7=#404040
palette = 8=#808080
palette = 9=#c41a15
palette = 10=#007400
palette = 11=#826b28
palette = 12=#0000ff
palette = 13=#a90d91
palette = 14=#318495
palette = 15=#5e5e5e
background = #ffffff
foreground = #404040
cursor-color = #404040
cursor-text = #ffffff
selection-background = #cbcbcb
selection-foreground = #404040

Cupertino 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)—
前景色foreground#404040rgb(64 64 64)hsl(0 0% 25%)oklch(37.1% 0.000 0)10.37 AAA
光標cursor#404040rgb(64 64 64)hsl(0 0% 25%)oklch(37.1% 0.000 0)10.37 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
選取範圍selection#cbcbcbrgb(203 203 203)hsl(0 0% 80%)oklch(84.2% 0.000 0)1.62 低於 AA
選取文字selectionText#404040rgb(64 64 64)hsl(0 0% 25%)oklch(37.1% 0.000 0)10.37 AAA
黑color0#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
紅color1#c41a15rgb(196 26 21)hsl(2 81% 43%)oklch(52.5% 0.202 28.7)5.99 AA
綠color2#007400rgb(0 116 0)hsl(120 100% 23%)oklch(48.4% 0.165 142.5)6.00 AA
黃color3#826b28rgb(130 107 40)hsl(45 53% 33%)oklch(53.7% 0.090 89.9)5.14 AA
藍color4#0000ffrgb(0 0 255)hsl(240 100% 50%)oklch(45.2% 0.313 264.1)8.59 AAA
洋紅color5#a90d91rgb(169 13 145)hsl(309 86% 36%)oklch(50.5% 0.217 336.5)6.66 AA
青color6#318495rgb(49 132 149)hsl(190 51% 39%)oklch(57.1% 0.082 213.7)4.32 AA 大字體
白color7#404040rgb(64 64 64)hsl(0 0% 25%)oklch(37.1% 0.000 0)10.37 AAA
亮黑color8#808080rgb(128 128 128)hsl(0 0% 50%)oklch(60.0% 0.000 0)3.95 AA 大字體
亮紅color9#c41a15rgb(196 26 21)hsl(2 81% 43%)oklch(52.5% 0.202 28.7)5.99 AA
亮綠color10#007400rgb(0 116 0)hsl(120 100% 23%)oklch(48.4% 0.165 142.5)6.00 AA
亮黃color11#826b28rgb(130 107 40)hsl(45 53% 33%)oklch(53.7% 0.090 89.9)5.14 AA
亮藍color12#0000ffrgb(0 0 255)hsl(240 100% 50%)oklch(45.2% 0.313 264.1)8.59 AAA
亮洋紅color13#a90d91rgb(169 13 145)hsl(309 86% 36%)oklch(50.5% 0.217 336.5)6.66 AA
亮青color14#318495rgb(49 132 149)hsl(190 51% 39%)oklch(57.1% 0.082 213.7)4.32 AA 大字體
亮白color15#5e5e5ergb(94 94 94)hsl(0 0% 37%)oklch(48.2% 0.000 0)6.48 AA

關於 Cupertino

Cupertino 採用中性色調的淺色背景(#ffffff),預設前景色為 #404040。正文的 WCAG 對比度為 10.37:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.12:1,最低 4.32:1。

色板整體色彩飽和度較高,其中紅色為 #c41a15、綠色為 #007400、藍色為 #0000ff、洋紅為 #a90d91。

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

與 Cupertino 相似的配色

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