跳到正文

Windows Highcontrast

Windows Highcontrast 是一套深色终端配色(纯黑、鲜艳),背景色 #000000,文字色 #c0c0c0,对比度 11.5:1

获取配置
背景色
#000000
前景色
#c0c0c0
文字对比度
11.54:1AAA
强调色对比度
11.62:1最低 4.05
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
❯

Windows Highcontrast 的配置文件

16 种格式,都从同一份色板生成

Windows Highcontrast

存到 ~/.config/ghostty/themes/Windows Highcontrast,再在 config 或 config.ghostty 里写 theme = Windows Highcontrast

更多 Ghostty 配色
原始文件
# Theme: Windows Highcontrast (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/windows-highcontrast?format=ghostty

palette = 0=#000000
palette = 1=#fc5454
palette = 2=#54fc54
palette = 3=#fcfc54
palette = 4=#5454fc
palette = 5=#fc54fc
palette = 6=#54fcfc
palette = 7=#c0c0c0
palette = 8=#545454
palette = 9=#fc5454
palette = 10=#54fc54
palette = 11=#fcfc54
palette = 12=#5454fc
palette = 13=#fc54fc
palette = 14=#54fcfc
palette = 15=#fcfcfc
background = #000000
foreground = #c0c0c0
cursor-color = #c0c0c0
cursor-text = #000000
selection-background = #161616
selection-foreground = #c0c0c0

Windows Highcontrast 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)—
前景色foreground#c0c0c0rgb(192 192 192)hsl(0 0% 75%)oklch(80.8% 0.000 0)11.54 AAA
光标cursor#c0c0c0rgb(192 192 192)hsl(0 0% 75%)oklch(80.8% 0.000 0)11.54 AAA
光标文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低于 AA
选区selection#161616rgb(22 22 22)hsl(0 0% 9%)oklch(20.0% 0.000 0)1.16 低于 AA
选区文字selectionText#c0c0c0rgb(192 192 192)hsl(0 0% 75%)oklch(80.8% 0.000 0)11.54 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低于 AA
红color1#fc5454rgb(252 84 84)hsl(0 97% 66%)oklch(67.6% 0.204 24.4)6.54 AA
绿color2#54fc54rgb(84 252 84)hsl(120 97% 66%)oklch(87.3% 0.250 143.1)15.43 AAA
黄color3#fcfc54rgb(252 252 84)hsl(60 97% 66%)oklch(96.2% 0.182 109.4)19.19 AAA
蓝color4#5454fcrgb(84 84 252)hsl(240 97% 66%)oklch(55.5% 0.242 275.1)4.05 AA 大字号
品红color5#fc54fcrgb(252 84 252)hsl(300 97% 66%)oklch(73.4% 0.269 327.9)7.81 AAA
青color6#54fcfcrgb(84 252 252)hsl(180 97% 66%)oklch(90.7% 0.135 195.0)16.71 AAA
白color7#c0c0c0rgb(192 192 192)hsl(0 0% 75%)oklch(80.8% 0.000 0)11.54 AAA
亮黑color8#545454rgb(84 84 84)hsl(0 0% 33%)oklch(44.6% 0.000 0)2.77 低于 AA
亮红color9#fc5454rgb(252 84 84)hsl(0 97% 66%)oklch(67.6% 0.204 24.4)6.54 AA
亮绿color10#54fc54rgb(84 252 84)hsl(120 97% 66%)oklch(87.3% 0.250 143.1)15.43 AAA
亮黄color11#fcfc54rgb(252 252 84)hsl(60 97% 66%)oklch(96.2% 0.182 109.4)19.19 AAA
亮蓝color12#5454fcrgb(84 84 252)hsl(240 97% 66%)oklch(55.5% 0.242 275.1)4.05 AA 大字号
亮品红color13#fc54fcrgb(252 84 252)hsl(300 97% 66%)oklch(73.4% 0.269 327.9)7.81 AAA
亮青color14#54fcfcrgb(84 252 252)hsl(180 97% 66%)oklch(90.7% 0.135 195.0)16.71 AAA
亮白color15#fcfcfcrgb(252 252 252)hsl(0 0% 99%)oklch(99.1% 0.000 0)20.47 AAA

关于 Windows Highcontrast

Windows Highcontrast 采用中性色调的深色背景(#000000),默认前景色为 #c0c0c0。正文的 WCAG 对比度为 11.54:1(AAA),12 种 ANSI 彩色槽位平均对比度 11.62:1,最低 4.05:1。

色板整体色彩饱和度较高,其中红色为 #fc5454、绿色为 #54fc54、蓝色为 #5454fc、品红为 #fc54fc。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

该色板在上游仓库中也曾以 Windows High Contrast 的名称发布

与 Windows Highcontrast 相似的配色

数据来源:Gogh (MIT OR Apache-2.0)