跳到主要內容

X Oslo

X Oslo 是一套深色終端機配色(柔和、冷色),背景色 #3f4451,文字色 #abb2bf,對比度 4.6:1

取得設定檔
背景色
#3f4451
前景色
#abb2bf
文字對比度
4.57:1AA
強調色對比度
4.13:1最低 2.62
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
❯

X Oslo 的設定檔

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

X Oslo

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

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

palette = 0=#3f4451
palette = 1=#e05561
palette = 2=#8cc265
palette = 3=#d18f52
palette = 4=#4aa5f0
palette = 5=#c162de
palette = 6=#42b3c2
palette = 7=#e6e6e6
palette = 8=#687080
palette = 9=#ff616e
palette = 10=#a5e075
palette = 11=#f0a45d
palette = 12=#4dc4ff
palette = 13=#de73ff
palette = 14=#4cd1e0
palette = 15=#ffffff
background = #3f4451
foreground = #abb2bf
cursor-color = #abb2bf
cursor-text = #3f4451
selection-background = #abb2bf
selection-foreground = #3f4451

X Oslo 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#3f4451rgb(63 68 81)hsl(223 12% 28%)oklch(38.7% 0.023 268.7)—
前景色foreground#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)4.57 AA
游標cursor#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)4.57 AA
游標文字cursorText#3f4451rgb(63 68 81)hsl(223 12% 28%)oklch(38.7% 0.023 268.7)1.00 低於 AA
選取範圍selection#abb2bfrgb(171 178 191)hsl(219 14% 71%)oklch(76.2% 0.020 263.0)4.57 AA
選取文字selectionText#3f4451rgb(63 68 81)hsl(223 12% 28%)oklch(38.7% 0.023 268.7)1.00 低於 AA
黑color0#3f4451rgb(63 68 81)hsl(223 12% 28%)oklch(38.7% 0.023 268.7)1.00 低於 AA
紅color1#e05561rgb(224 85 97)hsl(355 69% 61%)oklch(63.6% 0.173 18.5)2.62 低於 AA
綠color2#8cc265rgb(140 194 101)hsl(95 43% 58%)oklch(75.5% 0.136 133.5)4.65 AA
黃color3#d18f52rgb(209 143 82)hsl(29 58% 57%)oklch(70.4% 0.112 62.1)3.60 AA 大字級
藍color4#4aa5f0rgb(74 165 240)hsl(207 85% 62%)oklch(70.0% 0.140 246.5)3.68 AA 大字級
洋紅color5#c162dergb(193 98 222)hsl(286 65% 63%)oklch(65.7% 0.197 317.7)2.81 低於 AA
青color6#42b3c2rgb(66 179 194)hsl(187 51% 51%)oklch(70.9% 0.102 207.5)3.92 AA 大字級
白color7#e6e6e6rgb(230 230 230)hsl(0 0% 90%)oklch(92.5% 0.000 0)7.80 AAA
亮黑color8#687080rgb(104 112 128)hsl(220 10% 45%)oklch(54.4% 0.027 264.3)1.96 低於 AA
亮紅color9#ff616ergb(255 97 110)hsl(355 100% 69%)oklch(70.0% 0.192 18.8)3.33 AA 大字級
亮綠color10#a5e075rgb(165 224 117)hsl(93 63% 67%)oklch(84.3% 0.151 132.5)6.27 AA
亮黃color11#f0a45drgb(240 164 93)hsl(29 83% 65%)oklch(77.9% 0.126 62.3)4.72 AA
亮藍color12#4dc4ffrgb(77 196 255)hsl(200 100% 65%)oklch(77.8% 0.134 234.0)4.94 AA
亮洋紅color13#de73ffrgb(222 115 255)hsl(286 100% 73%)oklch(73.1% 0.217 317.6)3.71 AA 大字級
亮青color14#4cd1e0rgb(76 209 224)hsl(186 70% 59%)oklch(79.5% 0.115 205.8)5.33 AA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)9.74 AAA

關於 X Oslo

X Oslo 採用冷色調的深色背景(#3f4451),預設前景色為 #abb2bf。內文的 WCAG 對比度為 4.57:1(AA),12 種 ANSI 彩色槽位平均對比度 4.13:1,最低 2.62:1。

色票整體色彩彩度適中,其中紅色為 #e05561、綠色為 #8cc265、藍色為 #4aa5f0、洋紅為 #c162de。

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

與 X Oslo 相似的配色

資料來源:iTerm2 Color Schemes (MIT)