跳到主要內容

Onenord

Onenord 是一套深色終端機配色(冷色),背景色 #2e3440,文字色 #e5e9f0,對比度 10.3:1

取得設定檔
背景色
#2e3440
前景色
#e5e9f0
文字對比度
10.26:1AAA
強調色對比度
5.52:1最低 3.91
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
❯

Onenord 的設定檔

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

Onenord

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

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

palette = 0=#3b4252
palette = 1=#e06c75
palette = 2=#9ec183
palette = 3=#ebcb8b
palette = 4=#81a1c1
palette = 5=#b988b0
palette = 6=#88c0d0
palette = 7=#e5e9f0
palette = 8=#4c566a
palette = 9=#e06c75
palette = 10=#9ec183
palette = 11=#ebcb8b
palette = 12=#81a1c1
palette = 13=#b988b0
palette = 14=#8fbcbb
palette = 15=#eceff4
background = #2e3440
foreground = #e5e9f0
cursor-color = #81a1c1
cursor-text = #3b4252
selection-background = #434c5e
selection-foreground = #d8dee9

Onenord 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#2e3440rgb(46 52 64)hsl(220 16% 22%)oklch(32.4% 0.023 264.2)—
前景色foreground#e5e9f0rgb(229 233 240)hsl(218 27% 92%)oklch(93.3% 0.010 261.8)10.26 AAA
光標cursor#81a1c1rgb(129 161 193)hsl(210 34% 63%)oklch(69.7% 0.059 248.7)4.64 AA
光標文字cursorText#3b4252rgb(59 66 82)hsl(222 16% 28%)oklch(37.9% 0.029 266.5)1.24 低於 AA
選取範圍selection#434c5ergb(67 76 94)hsl(220 17% 32%)oklch(41.6% 0.032 264.1)1.45 低於 AA
選取文字selectionText#d8dee9rgb(216 222 233)hsl(219 28% 88%)oklch(89.9% 0.016 262.7)9.25 AAA
黑color0#3b4252rgb(59 66 82)hsl(222 16% 28%)oklch(37.9% 0.029 266.5)1.24 低於 AA
紅color1#e06c75rgb(224 108 117)hsl(355 65% 65%)oklch(67.1% 0.145 17.0)3.91 AA 大字體
綠color2#9ec183rgb(158 193 131)hsl(94 33% 64%)oklch(77.0% 0.093 132.2)6.19 AA
黃color3#ebcb8brgb(235 203 139)hsl(40 71% 73%)oklch(85.5% 0.089 84.1)8.00 AAA
藍color4#81a1c1rgb(129 161 193)hsl(210 34% 63%)oklch(69.7% 0.059 248.7)4.64 AA
洋紅color5#b988b0rgb(185 136 176)hsl(311 26% 63%)oklch(68.7% 0.081 333.0)4.29 AA 大字體
青color6#88c0d0rgb(136 192 208)hsl(193 43% 67%)oklch(77.5% 0.062 217.5)6.24 AA
白color7#e5e9f0rgb(229 233 240)hsl(218 27% 92%)oklch(93.3% 0.010 261.8)10.26 AAA
亮黑color8#4c566argb(76 86 106)hsl(220 16% 36%)oklch(45.2% 0.035 264.1)1.69 低於 AA
亮紅color9#e06c75rgb(224 108 117)hsl(355 65% 65%)oklch(67.1% 0.145 17.0)3.91 AA 大字體
亮綠color10#9ec183rgb(158 193 131)hsl(94 33% 64%)oklch(77.0% 0.093 132.2)6.19 AA
亮黃color11#ebcb8brgb(235 203 139)hsl(40 71% 73%)oklch(85.5% 0.089 84.1)8.00 AAA
亮藍color12#81a1c1rgb(129 161 193)hsl(210 34% 63%)oklch(69.7% 0.059 248.7)4.64 AA
亮洋紅color13#b988b0rgb(185 136 176)hsl(311 26% 63%)oklch(68.7% 0.081 333.0)4.29 AA 大字體
亮青color14#8fbcbbrgb(143 188 187)hsl(179 25% 65%)oklch(76.3% 0.048 194.5)5.99 AA
亮白color15#eceff4rgb(236 239 244)hsl(218 27% 94%)oklch(95.1% 0.007 260.7)10.84 AAA

關於 Onenord

Onenord 採用冷色調的深色背景(#2e3440),預設前景色為 #e5e9f0。正文的 WCAG 對比度為 10.26:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.52:1,最低 3.91:1。

色板整體色彩飽和度適中,其中紅色為 #e06c75、綠色為 #9ec183、藍色為 #81a1c1、洋紅為 #b988b0。

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

與 Onenord 相似的配色

資料來源:iTerm2 Color Schemes (MIT)