跳到正文

Tonic

Tonic 是一套深色终端配色,背景色 #2a2f31,文字色 #eeeeee,对比度 11.7:1

获取配置
背景色
#2a2f31
前景色
#eeeeee
文字对比度
11.68:1AAA
强调色对比度
6.84:1最低 2.06
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
❯

Tonic 的配置文件

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

Tonic

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

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

palette = 0=#363c3f
palette = 1=#ba0e2e
palette = 2=#75a1a4
palette = 3=#b8cd44
palette = 4=#fd9f59
palette = 5=#ef6e44
palette = 6=#b8cd44
palette = 7=#fbfbfb
palette = 8=#4d575a
palette = 9=#e61f44
palette = 10=#b2cbcd
palette = 11=#d7e394
palette = 12=#fed9be
palette = 13=#f7b7a2
palette = 14=#d7e394
palette = 15=#ffffff
background = #2a2f31
foreground = #eeeeee
cursor-color = #f8f8f0
cursor-text = #eeeeee
selection-background = #75a1a4
selection-foreground = #ffffff

Tonic 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#2a2f31rgb(42 47 49)hsl(197 8% 18%)oklch(30.1% 0.008 223.7)—
前景色foreground#eeeeeergb(238 238 238)hsl(0 0% 93%)oklch(94.9% 0.000 0)11.68 AAA
光标cursor#f8f8f0rgb(248 248 240)hsl(60 36% 96%)oklch(97.7% 0.011 106.6)12.70 AAA
光标文字cursorText#eeeeeergb(238 238 238)hsl(0 0% 93%)oklch(94.9% 0.000 0)11.68 AAA
选区selection#75a1a4rgb(117 161 164)hsl(184 21% 55%)oklch(67.8% 0.048 201.4)4.77 AA
选区文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)13.55 AAA
黑color0#363c3frgb(54 60 63)hsl(200 8% 23%)oklch(35.2% 0.010 229.1)1.21 低于 AA
红color1#ba0e2ergb(186 14 46)hsl(349 86% 39%)oklch(50.3% 0.196 21.1)2.06 低于 AA
绿color2#75a1a4rgb(117 161 164)hsl(184 21% 55%)oklch(67.8% 0.048 201.4)4.77 AA
黄color3#b8cd44rgb(184 205 68)hsl(69 58% 54%)oklch(80.7% 0.160 117.6)7.65 AAA
蓝color4#fd9f59rgb(253 159 89)hsl(26 98% 67%)oklch(78.5% 0.141 55.6)6.63 AA
品红color5#ef6e44rgb(239 110 68)hsl(15 84% 60%)oklch(68.7% 0.169 38.3)4.51 AA
青color6#b8cd44rgb(184 205 68)hsl(69 58% 54%)oklch(80.7% 0.160 117.6)7.65 AAA
白color7#fbfbfbrgb(251 251 251)hsl(0 0% 98%)oklch(98.8% 0.000 0)13.10 AAA
亮黑color8#4d575argb(77 87 90)hsl(194 8% 33%)oklch(44.9% 0.014 217.7)1.82 低于 AA
亮红color9#e61f44rgb(230 31 68)hsl(349 80% 51%)oklch(59.5% 0.225 19.4)3.00 低于 AA
亮绿color10#b2cbcdrgb(178 203 205)hsl(184 21% 75%)oklch(82.4% 0.027 202.5)7.95 AAA
亮黄color11#d7e394rgb(215 227 148)hsl(69 59% 74%)oklch(88.9% 0.102 115.6)9.88 AAA
亮蓝color12#fed9bergb(254 217 190)hsl(25 97% 87%)oklch(91.0% 0.055 58.1)10.25 AAA
亮品红color13#f7b7a2rgb(247 183 162)hsl(15 84% 80%)oklch(83.3% 0.080 38.9)7.91 AAA
亮青color14#d7e394rgb(215 227 148)hsl(69 59% 74%)oklch(88.9% 0.102 115.6)9.88 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)13.55 AAA

关于 Tonic

Tonic 采用中性色调的深色背景(#2a2f31),默认前景色为 #eeeeee。正文的 WCAG 对比度为 11.68:1(AAA),12 种 ANSI 彩色槽位平均对比度 6.84:1,最低 2.06:1。

色板整体色彩饱和度适中,其中红色为 #ba0e2e、绿色为 #75a1a4、蓝色为 #fd9f59、品红为 #ef6e44。

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

与 Tonic 相似的配色

数据来源:Rainglow (MIT)