跳到主要內容

Grafbase

Grafbase 是一套深色終端機配色(高對比、粉彩),背景色 #131313,文字色 #ffffff,對比度 18.6:1

取得設定檔
背景色
#131313
前景色
#ffffff
文字對比度
18.58:1AAA
強調色對比度
12.78:1最低 5.32
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
❯

Grafbase 的設定檔

16 種格式,都從同一份色板產生

Grafbase

存到 ~/.config/ghostty/themes/Grafbase,再在 config 或 config.ghostty 裏寫 theme = Grafbase

更多 Ghostty 配色
原始檔案
# Theme: Grafbase (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/grafbase?format=ghostty

palette = 0=#8e8e8e
palette = 1=#acebff
palette = 2=#b4fa72
palette = 3=#fefdc2
palette = 4=#358dde
palette = 5=#45b192
palette = 6=#9496ff
palette = 7=#f1f1f1
palette = 8=#8e8e8e
palette = 9=#ffc4bd
palette = 10=#d6fcb9
palette = 11=#fefdd5
palette = 12=#c1e3fe
palette = 13=#ffb1fe
palette = 14=#e5e6fe
palette = 15=#feffff
background = #131313
foreground = #ffffff
cursor-color = #0d5961
cursor-text = #131313
selection-background = #454545
selection-foreground = #ffffff

Grafbase 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#131313rgb(19 19 19)hsl(0 0% 7%)oklch(18.7% 0.000 0)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.58 AAA
光標cursor#0d5961rgb(13 89 97)hsl(186 76% 22%)oklch(42.5% 0.069 206.1)2.32 低於 AA
光標文字cursorText#131313rgb(19 19 19)hsl(0 0% 7%)oklch(18.7% 0.000 0)1.00 低於 AA
選取範圍selection#454545rgb(69 69 69)hsl(0 0% 27%)oklch(39.0% 0.000 0)1.94 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)18.58 AAA
黑color0#8e8e8ergb(142 142 142)hsl(0 0% 56%)oklch(64.7% 0.000 0)5.67 AA
紅color1#acebffrgb(172 235 255)hsl(194 100% 84%)oklch(90.4% 0.069 219.5)14.23 AAA
綠color2#b4fa72rgb(180 250 114)hsl(91 93% 71%)oklch(91.1% 0.182 131.8)14.92 AAA
黃color3#fefdc2rgb(254 253 194)hsl(59 97% 88%)oklch(98.1% 0.075 106.9)17.73 AAA
藍color4#358ddergb(53 141 222)hsl(209 72% 54%)oklch(63.0% 0.148 249.9)5.32 AA
洋紅color5#45b192rgb(69 177 146)hsl(163 44% 48%)oklch(69.0% 0.109 170.9)7.04 AAA
青color6#9496ffrgb(148 150 255)hsl(239 100% 79%)oklch(71.6% 0.151 281.1)7.14 AAA
白color7#f1f1f1rgb(241 241 241)hsl(0 0% 95%)oklch(95.8% 0.000 0)16.45 AAA
亮黑color8#8e8e8ergb(142 142 142)hsl(0 0% 56%)oklch(64.7% 0.000 0)5.67 AA
亮紅color9#ffc4bdrgb(255 196 189)hsl(6 100% 87%)oklch(87.1% 0.069 26.3)12.28 AAA
亮綠color10#d6fcb9rgb(214 252 185)hsl(94 92% 86%)oklch(94.8% 0.096 132.1)16.35 AAA
亮黃color11#fefdd5rgb(254 253 213)hsl(59 95% 92%)oklch(98.5% 0.052 106.1)17.89 AAA
亮藍color12#c1e3fergb(193 227 254)hsl(207 97% 88%)oklch(90.0% 0.052 242.2)13.88 AAA
亮洋紅color13#ffb1fergb(255 177 254)hsl(301 100% 85%)oklch(85.9% 0.133 327.1)11.48 AAA
亮青color14#e5e6fergb(229 230 254)hsl(238 93% 95%)oklch(93.1% 0.032 283.8)15.11 AAA
亮白color15#feffffrgb(254 255 255)hsl(180 100% 100%)oklch(99.9% 0.001 197.1)18.55 AAA

關於 Grafbase

Grafbase 採用中性色調的深色背景(#131313),預設前景色為 #ffffff。正文的 WCAG 對比度為 18.58:1(AAA),12 種 ANSI 彩色槽位平均對比度 12.78:1,最低 5.32:1。

色板整體色彩飽和度適中,其中紅色為 #acebff、綠色為 #b4fa72、藍色為 #358dde、洋紅為 #45b192。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合終端機、CSS 變數、Tailwind CSS 及 JSON 色板格式。

與 Grafbase 相似的配色

資料來源:Warp Themes (Apache-2.0)