跳到正文

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/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)