跳到主要內容

Railscasts

Railscasts 是一套深色終端機配色,背景色 #2b2b2b,文字色 #e6e1dc,對比度 10.9:1

取得設定檔
背景色
#2b2b2b
前景色
#e6e1dc
文字對比度
10.90:1AAA
強調色對比度
5.98:1最低 3.37
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
❯

Railscasts 的設定檔

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

Railscasts

存到 ~/.config/ghostty/themes/Railscasts,再在 config 或 config.ghostty 裡寫 theme = Railscasts

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

palette = 0=#2b2b2b
palette = 1=#da4939
palette = 2=#a5c261
palette = 3=#ffc66d
palette = 4=#6d9cbe
palette = 5=#b6b3eb
palette = 6=#519f50
palette = 7=#e6e1dc
palette = 8=#5a647e
palette = 9=#da4939
palette = 10=#a5c261
palette = 11=#ffc66d
palette = 12=#6d9cbe
palette = 13=#b6b3eb
palette = 14=#519f50
palette = 15=#f9f7f3
background = #2b2b2b
foreground = #e6e1dc
cursor-color = #e6e1dc
cursor-text = #2b2b2b
selection-background = #555453
selection-foreground = #e6e1dc

Railscasts 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2b2b2brgb(43 43 43)hsl(0 0% 17%)oklch(28.9% 0.000 0)—
前景色foreground#e6e1dcrgb(230 225 220)hsl(30 17% 88%)oklch(91.2% 0.009 67.7)10.90 AAA
游標cursor#e6e1dcrgb(230 225 220)hsl(30 17% 88%)oklch(91.2% 0.009 67.7)10.90 AAA
游標文字cursorText#2b2b2brgb(43 43 43)hsl(0 0% 17%)oklch(28.9% 0.000 0)1.00 低於 AA
選取範圍selection#555453rgb(85 84 83)hsl(30 1% 33%)oklch(44.6% 0.002 67.8)1.87 低於 AA
選取文字selectionText#e6e1dcrgb(230 225 220)hsl(30 17% 88%)oklch(91.2% 0.009 67.7)10.90 AAA
黑color0#2b2b2brgb(43 43 43)hsl(0 0% 17%)oklch(28.9% 0.000 0)1.00 低於 AA
紅color1#da4939rgb(218 73 57)hsl(6 69% 54%)oklch(60.6% 0.184 29.7)3.37 AA 大字級
綠color2#a5c261rgb(165 194 97)hsl(78 44% 57%)oklch(77.1% 0.128 123.2)7.07 AAA
黃color3#ffc66drgb(255 198 109)hsl(37 100% 71%)oklch(86.0% 0.125 77.0)9.14 AAA
藍color4#6d9cbergb(109 156 190)hsl(205 38% 59%)oklch(67.2% 0.072 240.6)4.82 AA
洋紅color5#b6b3ebrgb(182 179 235)hsl(243 58% 81%)oklch(78.9% 0.079 286.9)7.17 AAA
青color6#519f50rgb(81 159 80)hsl(119 33% 47%)oklch(63.3% 0.138 143.5)4.33 AA 大字級
白color7#e6e1dcrgb(230 225 220)hsl(30 17% 88%)oklch(91.2% 0.009 67.7)10.90 AAA
亮黑color8#5a647ergb(90 100 126)hsl(223 17% 42%)oklch(50.5% 0.043 268.4)2.40 低於 AA
亮紅color9#da4939rgb(218 73 57)hsl(6 69% 54%)oklch(60.6% 0.184 29.7)3.37 AA 大字級
亮綠color10#a5c261rgb(165 194 97)hsl(78 44% 57%)oklch(77.1% 0.128 123.2)7.07 AAA
亮黃color11#ffc66drgb(255 198 109)hsl(37 100% 71%)oklch(86.0% 0.125 77.0)9.14 AAA
亮藍color12#6d9cbergb(109 156 190)hsl(205 38% 59%)oklch(67.2% 0.072 240.6)4.82 AA
亮洋紅color13#b6b3ebrgb(182 179 235)hsl(243 58% 81%)oklch(78.9% 0.079 286.9)7.17 AAA
亮青color14#519f50rgb(81 159 80)hsl(119 33% 47%)oklch(63.3% 0.138 143.5)4.33 AA 大字級
亮白color15#f9f7f3rgb(249 247 243)hsl(40 33% 96%)oklch(97.7% 0.006 84.6)13.23 AAA

關於 Railscasts

Railscasts 採用中性色調的深色背景(#2b2b2b),預設前景色為 #e6e1dc。內文的 WCAG 對比度為 10.90:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.98:1,最低 3.37:1。

色票整體色彩彩度適中,其中紅色為 #da4939、綠色為 #a5c261、藍色為 #6d9cbe、洋紅為 #b6b3eb。

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

與 Railscasts 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)