跳到主要內容

Colorcli

Colorcli 是一套淺色終端機配色,背景色 #ffffff,文字色 #005f87,對比度 7.0:1

取得設定檔
背景色
#ffffff
前景色
#005f87
文字對比度
7.03:1AAA
強調色對比度
4.58:1最低 1.07
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
❯

Colorcli 的設定檔

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

Colorcli

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

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

palette = 0=#000000
palette = 1=#d70000
palette = 2=#5faf00
palette = 3=#5faf00
palette = 4=#005f87
palette = 5=#d70000
palette = 6=#5f5f5f
palette = 7=#e4e4e4
palette = 8=#5f5f5f
palette = 9=#d70000
palette = 10=#5f5f5f
palette = 11=#ffff00
palette = 12=#0087af
palette = 13=#0087af
palette = 14=#0087af
palette = 15=#ffffff
background = #ffffff
foreground = #005f87
cursor-color = #005f87
cursor-text = #ffffff
selection-background = #c4d5e1
selection-foreground = #005f87

Colorcli 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)—
前景色foreground#005f87rgb(0 95 135)hsl(198 100% 26%)oklch(45.9% 0.099 236.0)7.03 AAA
光標cursor#005f87rgb(0 95 135)hsl(198 100% 26%)oklch(45.9% 0.099 236.0)7.03 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
選取範圍selection#c4d5e1rgb(196 213 225)hsl(205 33% 83%)oklch(86.4% 0.025 238.4)1.51 低於 AA
選取文字selectionText#005f87rgb(0 95 135)hsl(198 100% 26%)oklch(45.9% 0.099 236.0)7.03 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)21.00 AAA
紅color1#d70000rgb(215 0 0)hsl(0 100% 42%)oklch(55.2% 0.227 29.2)5.40 AA
綠color2#5faf00rgb(95 175 0)hsl(87 100% 34%)oklch(67.6% 0.195 134.3)2.76 低於 AA
黃color3#5faf00rgb(95 175 0)hsl(87 100% 34%)oklch(67.6% 0.195 134.3)2.76 低於 AA
藍color4#005f87rgb(0 95 135)hsl(198 100% 26%)oklch(45.9% 0.099 236.0)7.03 AAA
洋紅color5#d70000rgb(215 0 0)hsl(0 100% 42%)oklch(55.2% 0.227 29.2)5.40 AA
青color6#5f5f5frgb(95 95 95)hsl(0 0% 37%)oklch(48.5% 0.000 0)6.39 AA
白color7#e4e4e4rgb(228 228 228)hsl(0 0% 89%)oklch(91.9% 0.000 0)1.27 低於 AA
亮黑color8#5f5f5frgb(95 95 95)hsl(0 0% 37%)oklch(48.5% 0.000 0)6.39 AA
亮紅color9#d70000rgb(215 0 0)hsl(0 100% 42%)oklch(55.2% 0.227 29.2)5.40 AA
亮綠color10#5f5f5frgb(95 95 95)hsl(0 0% 37%)oklch(48.5% 0.000 0)6.39 AA
亮黃color11#ffff00rgb(255 255 0)hsl(60 100% 50%)oklch(96.8% 0.211 109.8)1.07 低於 AA
亮藍color12#0087afrgb(0 135 175)hsl(194 100% 34%)oklch(58.2% 0.113 227.7)4.13 AA 大字體
亮洋紅color13#0087afrgb(0 135 175)hsl(194 100% 34%)oklch(58.2% 0.113 227.7)4.13 AA 大字體
亮青color14#0087afrgb(0 135 175)hsl(194 100% 34%)oklch(58.2% 0.113 227.7)4.13 AA 大字體
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA

關於 Colorcli

Colorcli 採用中性色調的淺色背景(#ffffff),預設前景色為 #005f87。正文的 WCAG 對比度為 7.03:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.58:1,最低 1.07:1。

色板整體色彩飽和度適中,其中紅色為 #d70000、綠色為 #5faf00、藍色為 #005f87、洋紅為 #d70000。

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

與 Colorcli 相似的配色

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