跳到主要內容

One Light

One Light 是一套淺色終端機配色,背景色 #f8f8f8,文字色 #2a2b32,對比度 13.3:1

取得設定檔
背景色
#f8f8f8
前景色
#2a2b32
文字對比度
13.27:1AAA
強調色對比度
5.22:1最低 3.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
❯

One Light 的設定檔

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

One Light

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

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

palette = 0=#000000
palette = 1=#da3e39
palette = 2=#41933e
palette = 3=#855504
palette = 4=#315eee
palette = 5=#930092
palette = 6=#0e6fad
palette = 7=#8e8f96
palette = 8=#2a2b32
palette = 9=#da3e39
palette = 10=#41933e
palette = 11=#855504
palette = 12=#315eee
palette = 13=#930092
palette = 14=#0e6fad
palette = 15=#fffefe
background = #f8f8f8
foreground = #2a2b32
cursor-color = #2a2b32
cursor-text = #f8f8f8
selection-background = #bfc0c2
selection-foreground = #2a2b32

One Light 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#f8f8f8rgb(248 248 248)hsl(0 0% 97%)oklch(97.9% 0.000 0)—
前景色foreground#2a2b32rgb(42 43 50)hsl(232 9% 18%)oklch(29.1% 0.013 279.1)13.27 AAA
游標cursor#2a2b32rgb(42 43 50)hsl(232 9% 18%)oklch(29.1% 0.013 279.1)13.27 AAA
游標文字cursorText#f8f8f8rgb(248 248 248)hsl(0 0% 97%)oklch(97.9% 0.000 0)1.00 低於 AA
選取範圍selection#bfc0c2rgb(191 192 194)hsl(220 2% 75%)oklch(80.8% 0.003 264.5)1.71 低於 AA
選取文字selectionText#2a2b32rgb(42 43 50)hsl(232 9% 18%)oklch(29.1% 0.013 279.1)13.27 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)19.77 AAA
紅color1#da3e39rgb(218 62 57)hsl(2 69% 54%)oklch(59.4% 0.194 26.8)4.18 AA 大字級
綠color2#41933ergb(65 147 62)hsl(118 41% 41%)oklch(59.2% 0.145 142.9)3.62 AA 大字級
黃color3#855504rgb(133 85 4)hsl(38 94% 27%)oklch(49.1% 0.104 71.2)5.99 AA
藍color4#315eeergb(49 94 238)hsl(226 85% 56%)oklch(54.3% 0.222 265.8)4.99 AA
洋紅color5#930092rgb(147 0 146)hsl(300 100% 29%)oklch(46.5% 0.213 328.7)7.45 AAA
青color6#0e6fadrgb(14 111 173)hsl(203 85% 37%)oklch(52.3% 0.126 244.8)5.08 AA
白color7#8e8f96rgb(142 143 150)hsl(233 4% 57%)oklch(65.1% 0.010 279.6)3.03 AA 大字級
亮黑color8#2a2b32rgb(42 43 50)hsl(232 9% 18%)oklch(29.1% 0.013 279.1)13.27 AAA
亮紅color9#da3e39rgb(218 62 57)hsl(2 69% 54%)oklch(59.4% 0.194 26.8)4.18 AA 大字級
亮綠color10#41933ergb(65 147 62)hsl(118 41% 41%)oklch(59.2% 0.145 142.9)3.62 AA 大字級
亮黃color11#855504rgb(133 85 4)hsl(38 94% 27%)oklch(49.1% 0.104 71.2)5.99 AA
亮藍color12#315eeergb(49 94 238)hsl(226 85% 56%)oklch(54.3% 0.222 265.8)4.99 AA
亮洋紅color13#930092rgb(147 0 146)hsl(300 100% 29%)oklch(46.5% 0.213 328.7)7.45 AAA
亮青color14#0e6fadrgb(14 111 173)hsl(203 85% 37%)oklch(52.3% 0.126 244.8)5.08 AA
亮白color15#fffefergb(255 254 254)hsl(0 100% 100%)oklch(99.8% 0.001 17.2)1.05 低於 AA

關於 One Light

One Light 採用中性色調的淺色背景(#f8f8f8),預設前景色為 #2a2b32。內文的 WCAG 對比度為 13.27:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.22:1,最低 3.62:1。

色票整體色彩彩度適中,其中紅色為 #da3e39、綠色為 #41933e、藍色為 #315eee、洋紅為 #930092。此配色歸屬 One Dark & One Light 主題系列。

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

與 One Light 相似的配色

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