跳到主要內容

Corduroy

Corduroy 是一套深色終端機配色(冷色),背景色 #1d1920,文字色 #cdc8d0,對比度 10.5:1

取得設定檔
背景色
#1d1920
前景色
#cdc8d0
文字對比度
10.53:1AAA
強調色對比度
6.44:1最低 4.17
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
❯

Corduroy 的設定檔

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

Corduroy

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

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

palette = 0=#1d1920
palette = 1=#e06278
palette = 2=#4b8686
palette = 3=#edb392
palette = 4=#d27f91
palette = 5=#c285b2
palette = 6=#e99d90
palette = 7=#cdc8d0
palette = 8=#6f6373
palette = 9=#e06278
palette = 10=#4b8686
palette = 11=#edb392
palette = 12=#d27f91
palette = 13=#c285b2
palette = 14=#e99d90
palette = 15=#504757
background = #1d1920
foreground = #cdc8d0
cursor-color = #cdc8d0
cursor-text = #1d1920
selection-background = #2e2533
selection-foreground = #cdc8d0

Corduroy 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#1d1920rgb(29 25 32)hsl(274 12% 11%)oklch(22.1% 0.015 310.7)—
前景色foreground#cdc8d0rgb(205 200 208)hsl(278 8% 80%)oklch(83.9% 0.012 313.2)10.53 AAA
游標cursor#cdc8d0rgb(205 200 208)hsl(278 8% 80%)oklch(83.9% 0.012 313.2)10.53 AAA
游標文字cursorText#1d1920rgb(29 25 32)hsl(274 12% 11%)oklch(22.1% 0.015 310.7)1.00 低於 AA
選取範圍selection#2e2533rgb(46 37 51)hsl(279 16% 17%)oklch(28.1% 0.028 313.4)1.18 低於 AA
選取文字selectionText#cdc8d0rgb(205 200 208)hsl(278 8% 80%)oklch(83.9% 0.012 313.2)10.53 AAA
黑color0#1d1920rgb(29 25 32)hsl(274 12% 11%)oklch(22.1% 0.015 310.7)1.00 低於 AA
紅color1#e06278rgb(224 98 120)hsl(350 67% 63%)oklch(65.8% 0.158 11.7)5.10 AA
綠color2#4b8686rgb(75 134 134)hsl(180 28% 41%)oklch(58.0% 0.062 195.6)4.17 AA 大字級
黃color3#edb392rgb(237 179 146)hsl(22 72% 75%)oklch(81.2% 0.081 50.8)9.46 AAA
藍color4#d27f91rgb(210 127 145)hsl(347 48% 66%)oklch(69.0% 0.105 6.2)5.93 AA
洋紅color5#c285b2rgb(194 133 178)hsl(316 33% 64%)oklch(69.2% 0.095 336.6)6.02 AA
青color6#e99d90rgb(233 157 144)hsl(9 67% 74%)oklch(76.8% 0.094 30.1)7.99 AAA
白color7#cdc8d0rgb(205 200 208)hsl(278 8% 80%)oklch(83.9% 0.012 313.2)10.53 AAA
亮黑color8#6f6373rgb(111 99 115)hsl(285 7% 42%)oklch(51.7% 0.029 317.7)3.06 AA 大字級
亮紅color9#e06278rgb(224 98 120)hsl(350 67% 63%)oklch(65.8% 0.158 11.7)5.10 AA
亮綠color10#4b8686rgb(75 134 134)hsl(180 28% 41%)oklch(58.0% 0.062 195.6)4.17 AA 大字級
亮黃color11#edb392rgb(237 179 146)hsl(22 72% 75%)oklch(81.2% 0.081 50.8)9.46 AAA
亮藍color12#d27f91rgb(210 127 145)hsl(347 48% 66%)oklch(69.0% 0.105 6.2)5.93 AA
亮洋紅color13#c285b2rgb(194 133 178)hsl(316 33% 64%)oklch(69.2% 0.095 336.6)6.02 AA
亮青color14#e99d90rgb(233 157 144)hsl(9 67% 74%)oklch(76.8% 0.094 30.1)7.99 AAA
亮白color15#504757rgb(80 71 87)hsl(274 10% 31%)oklch(41.3% 0.029 310.3)1.96 低於 AA

關於 Corduroy

Corduroy 採用冷色調的深色背景(#1d1920),預設前景色為 #cdc8d0。內文的 WCAG 對比度為 10.53:1(AAA),12 種 ANSI 彩色槽位平均對比度 6.44:1,最低 4.17:1。

色票整體色彩彩度適中,其中紅色為 #e06278、綠色為 #4b8686、藍色為 #d27f91、洋紅為 #c285b2。

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

與 Corduroy 相似的配色

資料來源:Tinted Theming (Base16 & Base24) (MIT)