跳到主要內容

CLRS

CLRS 是一套淺色終端機配色(柔和、鮮豔),背景色 #ffffff,文字色 #262626,對比度 15.1:1

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

CLRS 的設定檔

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

CLRS

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

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

palette = 0=#000000
palette = 1=#f8282a
palette = 2=#328a5d
palette = 3=#fa701d
palette = 4=#135cd0
palette = 5=#9f00bd
palette = 6=#33c3c1
palette = 7=#b3b3b3
palette = 8=#555753
palette = 9=#fb0416
palette = 10=#2cc631
palette = 11=#fdd727
palette = 12=#1670ff
palette = 13=#e900b0
palette = 14=#3ad5ce
palette = 15=#eeeeec
background = #ffffff
foreground = #262626
cursor-color = #6fd3fc
cursor-text = #ffffff
selection-background = #6fd3fc
selection-foreground = #041730

CLRS 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)—
前景色foreground#262626rgb(38 38 38)hsl(0 0% 15%)oklch(26.9% 0.000 0)15.13 AAA
游標cursor#6fd3fcrgb(111 211 252)hsl(197 96% 71%)oklch(82.2% 0.110 227.2)1.69 低於 AA
游標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)1.00 低於 AA
選取範圍selection#6fd3fcrgb(111 211 252)hsl(197 96% 71%)oklch(82.2% 0.110 227.2)1.69 低於 AA
選取文字selectionText#041730rgb(4 23 48)hsl(214 85% 10%)oklch(20.5% 0.056 255.4)17.94 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)21.00 AAA
紅color1#f8282argb(248 40 42)hsl(359 94% 56%)oklch(62.9% 0.238 27.3)3.94 AA 大字級
綠color2#328a5drgb(50 138 93)hsl(149 47% 37%)oklch(56.8% 0.110 157.5)4.26 AA 大字級
黃color3#fa701drgb(250 112 29)hsl(23 96% 55%)oklch(70.2% 0.189 45.6)2.84 低於 AA
藍color4#135cd0rgb(19 92 208)hsl(217 83% 45%)oklch(50.6% 0.192 260.2)6.05 AA
洋紅color5#9f00bdrgb(159 0 189)hsl(290 100% 37%)oklch(51.4% 0.247 319.2)6.54 AA
青color6#33c3c1rgb(51 195 193)hsl(179 59% 48%)oklch(74.4% 0.117 193.5)2.16 低於 AA
白color7#b3b3b3rgb(179 179 179)hsl(0 0% 70%)oklch(76.7% 0.000 0)2.10 低於 AA
亮黑color8#555753rgb(85 87 83)hsl(90 2% 33%)oklch(45.4% 0.007 128.6)7.31 AAA
亮紅color9#fb0416rgb(251 4 22)hsl(356 97% 50%)oklch(62.2% 0.253 27.9)4.09 AA 大字級
亮綠color10#2cc631rgb(44 198 49)hsl(122 64% 47%)oklch(72.2% 0.223 143.2)2.28 低於 AA
亮黃color11#fdd727rgb(253 215 39)hsl(49 98% 57%)oklch(88.6% 0.175 95.4)1.41 低於 AA
亮藍color12#1670ffrgb(22 112 255)hsl(217 100% 54%)oklch(58.5% 0.227 260.4)4.38 AA 大字級
亮洋紅color13#e900b0rgb(233 0 176)hsl(315 100% 46%)oklch(62.5% 0.268 343.3)4.12 AA 大字級
亮青color14#3ad5cergb(58 213 206)hsl(177 65% 53%)oklch(79.4% 0.125 190.4)1.81 低於 AA
亮白color15#eeeeecrgb(238 238 236)hsl(60 6% 93%)oklch(94.9% 0.003 106.5)1.16 低於 AA

關於 CLRS

CLRS 採用中性色調的淺色背景(#ffffff),預設前景色為 #262626。內文的 WCAG 對比度為 15.13:1(AAA),12 種 ANSI 彩色槽位平均對比度 3.66:1,最低 1.41:1。

色票整體色彩彩度較高,其中紅色為 #f8282a、綠色為 #328a5d、藍色為 #135cd0、洋紅為 #9f00bd。

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

與 CLRS 相似的配色

資料來源:iTerm2 Color Schemes (MIT)