跳到主要內容

Pencil Dark

Pencil Dark 是一套深色終端機配色,背景色 #212121,文字色 #f1f1f1,對比度 14.3:1

取得設定檔
背景色
#212121
前景色
#f1f1f1
文字對比度
14.26:1AAA
強調色對比度
5.67:1最低 1.75
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
❯

Pencil Dark 的設定檔

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

Pencil Dark

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

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

palette = 0=#212121
palette = 1=#c30771
palette = 2=#10a778
palette = 3=#a89c14
palette = 4=#008ec4
palette = 5=#523c79
palette = 6=#20a5ba
palette = 7=#d9d9d9
palette = 8=#424242
palette = 9=#fb007a
palette = 10=#5fd7af
palette = 11=#f3e430
palette = 12=#20bbfc
palette = 13=#6855de
palette = 14=#4fb8cc
palette = 15=#f1f1f1
background = #212121
foreground = #f1f1f1
cursor-color = #20bbfc
cursor-text = #f1f1f1
selection-background = #b6d6fd
selection-foreground = #f1f1f1

Pencil Dark 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#212121rgb(33 33 33)hsl(0 0% 13%)oklch(24.8% 0.000 0)—
前景色foreground#f1f1f1rgb(241 241 241)hsl(0 0% 95%)oklch(95.8% 0.000 0)14.26 AAA
光標cursor#20bbfcrgb(32 187 252)hsl(198 97% 56%)oklch(74.7% 0.150 233.7)7.34 AAA
光標文字cursorText#f1f1f1rgb(241 241 241)hsl(0 0% 95%)oklch(95.8% 0.000 0)14.26 AAA
選取範圍selection#b6d6fdrgb(182 214 253)hsl(213 95% 85%)oklch(86.6% 0.064 253.6)10.75 AAA
選取文字selectionText#f1f1f1rgb(241 241 241)hsl(0 0% 95%)oklch(95.8% 0.000 0)14.26 AAA
黑color0#212121rgb(33 33 33)hsl(0 0% 13%)oklch(24.8% 0.000 0)1.00 低於 AA
紅color1#c30771rgb(195 7 113)hsl(326 93% 40%)oklch(53.5% 0.216 356.0)2.75 低於 AA
綠color2#10a778rgb(16 167 120)hsl(161 83% 36%)oklch(64.6% 0.134 164.2)5.23 AA
黃color3#a89c14rgb(168 156 20)hsl(55 79% 37%)oklch(68.2% 0.139 103.8)5.70 AA
藍color4#008ec4rgb(0 142 196)hsl(197 100% 38%)oklch(61.0% 0.128 234.4)4.34 AA 大字體
洋紅color5#523c79rgb(82 60 121)hsl(262 34% 35%)oklch(41.0% 0.101 298.5)1.75 低於 AA
青color6#20a5bargb(32 165 186)hsl(188 71% 43%)oklch(66.5% 0.109 211.5)5.48 AA
白color7#d9d9d9rgb(217 217 217)hsl(0 0% 85%)oklch(88.5% 0.000 0)11.41 AAA
亮黑color8#424242rgb(66 66 66)hsl(0 0% 26%)oklch(37.9% 0.000 0)1.60 低於 AA
亮紅color9#fb007argb(251 0 122)hsl(331 100% 49%)oklch(63.7% 0.256 3.7)4.13 AA 大字體
亮綠color10#5fd7afrgb(95 215 175)hsl(160 60% 61%)oklch(80.0% 0.123 168.4)9.07 AAA
亮黃color11#f3e430rgb(243 228 48)hsl(55 89% 57%)oklch(90.3% 0.180 104.3)12.23 AAA
亮藍color12#20bbfcrgb(32 187 252)hsl(198 97% 56%)oklch(74.7% 0.150 233.7)7.34 AAA
亮洋紅color13#6855dergb(104 85 222)hsl(248 67% 60%)oklch(54.6% 0.200 283.9)3.02 AA 大字體
亮青color14#4fb8ccrgb(79 184 204)hsl(190 55% 55%)oklch(72.9% 0.100 212.2)6.95 AA
亮白color15#f1f1f1rgb(241 241 241)hsl(0 0% 95%)oklch(95.8% 0.000 0)14.26 AAA

關於 Pencil Dark

Pencil Dark 採用中性色調的深色背景(#212121),預設前景色為 #f1f1f1。正文的 WCAG 對比度為 14.26:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.67:1,最低 1.75:1。

色板整體色彩飽和度適中,其中紅色為 #c30771、綠色為 #10a778、藍色為 #008ec4、洋紅為 #523c79。

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

與 Pencil Dark 相似的配色

資料來源:iTerm2 Color Schemes (MIT)