跳到正文

Royal

Royal 是一套深色终端配色(柔和、冷色),背景色 #100815,文字色 #514968,对比度 2.3:1

获取配置
背景色
#100815
前景色
#514968
文字对比度
2.34:1低于 AA
强调色对比度
7.36:1最低 2.45
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
❯

Royal 的配置文件

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

Royal

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

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

palette = 0=#241f2b
palette = 1=#91284c
palette = 2=#23801c
palette = 3=#b49d27
palette = 4=#6580b0
palette = 5=#674d96
palette = 6=#8aaabe
palette = 7=#524966
palette = 8=#312d3d
palette = 9=#d5356c
palette = 10=#2cd946
palette = 11=#fde83b
palette = 12=#90baf9
palette = 13=#a479e3
palette = 14=#acd4eb
palette = 15=#9e8cbd
background = #100815
foreground = #514968
cursor-color = #524966
cursor-text = #100613
selection-background = #1f1d2b
selection-foreground = #a593cd

Royal 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#100815rgb(16 8 21)hsl(277 45% 6%)oklch(15.3% 0.030 311.7)—
前景色foreground#514968rgb(81 73 104)hsl(255 18% 35%)oklch(42.6% 0.051 296.0)2.34 低于 AA
光标cursor#524966rgb(82 73 102)hsl(259 17% 34%)oklch(42.6% 0.049 298.6)2.35 低于 AA
光标文字cursorText#100613rgb(16 6 19)hsl(286 52% 5%)oklch(14.6% 0.033 318.5)1.01 低于 AA
选区selection#1f1d2brgb(31 29 43)hsl(249 19% 14%)oklch(24.0% 0.027 290.8)1.19 低于 AA
选区文字selectionText#a593cdrgb(165 147 205)hsl(259 37% 69%)oklch(70.0% 0.086 298.4)7.17 AAA
黑color0#241f2brgb(36 31 43)hsl(265 16% 15%)oklch(25.0% 0.023 303.7)1.22 低于 AA
红color1#91284crgb(145 40 76)hsl(339 57% 36%)oklch(45.0% 0.142 4.1)2.45 低于 AA
绿color2#23801crgb(35 128 28)hsl(116 64% 31%)oklch(52.6% 0.159 142.1)3.91 AA 大字号
黄color3#b49d27rgb(180 157 39)hsl(50 64% 43%)oklch(69.6% 0.132 97.5)7.30 AAA
蓝color4#6580b0rgb(101 128 176)hsl(218 32% 54%)oklch(59.8% 0.080 261.6)4.93 AA
品红color5#674d96rgb(103 77 150)hsl(261 32% 45%)oklch(48.1% 0.116 298.4)2.88 低于 AA
青color6#8aaabergb(138 170 190)hsl(203 29% 64%)oklch(72.1% 0.046 235.7)8.03 AAA
白color7#524966rgb(82 73 102)hsl(259 17% 34%)oklch(42.6% 0.049 298.6)2.35 低于 AA
亮黑color8#312d3drgb(49 45 61)hsl(255 15% 21%)oklch(30.8% 0.029 296.1)1.47 低于 AA
亮红color9#d5356crgb(213 53 108)hsl(339 66% 52%)oklch(58.8% 0.198 5.3)4.27 AA 大字号
亮绿color10#2cd946rgb(44 217 70)hsl(129 69% 51%)oklch(77.4% 0.231 144.7)10.42 AAA
亮黄color11#fde83brgb(253 232 59)hsl(54 98% 61%)oklch(92.1% 0.178 102.0)15.72 AAA
亮蓝color12#90baf9rgb(144 186 249)hsl(216 90% 77%)oklch(78.3% 0.101 258.3)9.91 AAA
亮品红color13#a479e3rgb(164 121 227)hsl(264 65% 68%)oklch(66.3% 0.157 300.9)6.02 AA
亮青color14#acd4ebrgb(172 212 235)hsl(202 61% 80%)oklch(84.9% 0.053 233.4)12.52 AAA
亮白color15#9e8cbdrgb(158 140 189)hsl(262 27% 65%)oklch(67.4% 0.074 301.3)6.50 AA

关于 Royal

Royal 采用冷色调的深色背景(#100815),默认前景色为 #514968。正文的 WCAG 对比度为 2.34:1(低于 AA),12 种 ANSI 彩色槽位平均对比度 7.36:1,最低 2.45:1。

色板整体色彩饱和度适中,其中红色为 #91284c、绿色为 #23801c、蓝色为 #6580b0、品红为 #674d96。

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

与 Royal 相似的配色

数据来源:iTerm2 Color Schemes (MIT)