跳到主要內容

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