跳到正文

Newton Contrast

Newton Contrast 是一套深色终端配色(高对比度),背景色 #121014,文字色 #eaebff,对比度 16.1:1

获取配置
背景色
#121014
前景色
#eaebff
文字对比度
16.06:1AAA
强调色对比度
9.93:1最低 2.87
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
❯

Newton Contrast 的配置文件

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

Newton Contrast

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

更多 Ghostty 配色
原始文件
# Theme: Newton Contrast (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/newton-contrast?format=ghostty

palette = 0=#1f1b22
palette = 1=#ba0e2e
palette = 2=#fa824c
palette = 3=#ffbf69
palette = 4=#3c91e6
palette = 5=#fa824c
palette = 6=#ffbf69
palette = 7=#ffffff
palette = 8=#38323e
palette = 9=#e61f44
palette = 10=#fdc7af
palette = 11=#ffebcf
palette = 12=#96c4f2
palette = 13=#fdc7af
palette = 14=#ffebcf
palette = 15=#ffffff
background = #121014
foreground = #eaebff
cursor-color = #f8f8f0
cursor-text = #eaebff
selection-background = #ff5d38
selection-foreground = #ffffff

Newton Contrast 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#121014rgb(18 16 20)hsl(270 11% 7%)oklch(17.7% 0.009 307.9)—
前景色foreground#eaebffrgb(234 235 255)hsl(237 100% 96%)oklch(94.5% 0.027 283.6)16.06 AAA
光标cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)17.73 AAA
光标文字cursorText#eaebffrgb(234 235 255)hsl(237 100% 96%)oklch(94.5% 0.027 283.6)16.06 AAA
选区selection#ff5d38rgb(255 93 56)hsl(11 100% 61%)oklch(68.8% 0.204 34.2)6.19 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.92 AAA
黑color0#1f1b22rgb(31 27 34)hsl(274 11% 12%)oklch(23.0% 0.015 310.7)1.12 低于 AA
红color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.87 低于 AA
绿color2#fa824crgb(250 130 76)hsl(19 95% 64%)oklch(73.2% 0.162 43.6)7.53 AAA
黄color3#ffbf69rgb(255 191 105)hsl(34 100% 71%)oklch(84.6% 0.127 72.8)11.63 AAA
蓝color4#3c91e6rgb(60 145 230)hsl(210 77% 57%)oklch(64.6% 0.151 251.4)5.75 AA
品红color5#fa824crgb(250 130 76)hsl(19 95% 64%)oklch(73.2% 0.162 43.6)7.53 AAA
青color6#ffbf69rgb(255 191 105)hsl(34 100% 71%)oklch(84.6% 0.127 72.8)11.63 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.92 AAA
亮黑color8#38323ergb(56 50 62)hsl(270 11% 22%)oklch(32.8% 0.022 307.7)1.53 低于 AA
亮红color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)4.18 AA 大字号
亮绿color10#fdc7afrgb(253 199 175)hsl(18 95% 84%)oklch(87.1% 0.070 45.2)12.58 AAA
亮黄color11#ffebcfrgb(255 235 207)hsl(35 100% 91%)oklch(94.9% 0.043 76.4)16.25 AAA
亮蓝color12#96c4f2rgb(150 196 242)hsl(210 78% 77%)oklch(80.4% 0.082 248.9)10.34 AAA
亮品红color13#fdc7afrgb(253 199 175)hsl(18 95% 84%)oklch(87.1% 0.070 45.2)12.58 AAA
亮青color14#ffebcfrgb(255 235 207)hsl(35 100% 91%)oklch(94.9% 0.043 76.4)16.25 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.92 AAA

关于 Newton Contrast

Newton Contrast 采用中性色调的深色背景(#121014),默认前景色为 #eaebff。正文的 WCAG 对比度为 16.06:1(AAA),12 种 ANSI 彩色槽位平均对比度 9.93:1,最低 2.87:1。

色板整体色彩饱和度适中,其中红色为 #ba0e2e、绿色为 #fa824c、蓝色为 #3c91e6、品红为 #fa824c。

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

与 Newton Contrast 相似的配色

数据来源:Rainglow (MIT)