跳到主要內容

Token Light

Token Light 是一套淺色終端機配色(低飽和),背景色 #faf9f5,文字色 #2a2920,對比度 13.9:1

取得設定檔
背景色
#faf9f5
前景色
#2a2920
文字對比度
13.88:1AAA
強調色對比度
5.72:1最低 4.60
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
❯

Token Light 的設定檔

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

Token Light

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

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

palette = 0=#2a2920
palette = 1=#b05555
palette = 2=#3f643c
palette = 3=#6e5c20
palette = 4=#527594
palette = 5=#7c619a
palette = 6=#2d6c6c
palette = 7=#b5b2ab
palette = 8=#6c675f
palette = 9=#9a4929
palette = 10=#3a5e37
palette = 11=#876032
palette = 12=#486a88
palette = 13=#6f578c
palette = 14=#286363
palette = 15=#faf9f5
background = #faf9f5
foreground = #2a2920
cursor-color = #2a2920
cursor-text = #faf9f5
selection-background = #dddcd6
selection-foreground = #2a2920

Token Light 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#faf9f5rgb(250 249 245)hsl(48 33% 97%)oklch(98.2% 0.005 95.1)—
前景色foreground#2a2920rgb(42 41 32)hsl(54 14% 15%)oklch(27.9% 0.016 102.1)13.88 AAA
光標cursor#2a2920rgb(42 41 32)hsl(54 14% 15%)oklch(27.9% 0.016 102.1)13.88 AAA
光標文字cursorText#faf9f5rgb(250 249 245)hsl(48 33% 97%)oklch(98.2% 0.005 95.1)1.00 低於 AA
選取範圍selection#dddcd6rgb(221 220 214)hsl(51 9% 85%)oklch(89.4% 0.008 98.9)1.30 低於 AA
選取文字selectionText#2a2920rgb(42 41 32)hsl(54 14% 15%)oklch(27.9% 0.016 102.1)13.88 AAA
黑color0#2a2920rgb(42 41 32)hsl(54 14% 15%)oklch(27.9% 0.016 102.1)13.88 AAA
紅color1#b05555rgb(176 85 85)hsl(0 37% 51%)oklch(56.1% 0.119 21.6)4.66 AA
綠color2#3f643crgb(63 100 60)hsl(115 25% 31%)oklch(46.4% 0.076 142.5)6.43 AA
黃color3#6e5c20rgb(110 92 32)hsl(46 55% 28%)oklch(48.0% 0.081 92.2)6.20 AA
藍color4#527594rgb(82 117 148)hsl(208 29% 45%)oklch(54.8% 0.063 246.0)4.60 AA
洋紅color5#7c619argb(124 97 154)hsl(268 23% 49%)oklch(54.2% 0.092 305.3)4.94 AA
青color6#2d6c6crgb(45 108 108)hsl(180 41% 30%)oklch(49.1% 0.064 195.3)5.74 AA
白color7#b5b2abrgb(181 178 171)hsl(42 6% 69%)oklch(76.4% 0.010 87.5)2.01 低於 AA
亮黑color8#6c675frgb(108 103 95)hsl(37 6% 40%)oklch(51.6% 0.014 79.7)5.33 AA
亮紅color9#9a4929rgb(154 73 41)hsl(17 58% 38%)oklch(50.2% 0.118 41.2)5.93 AA
亮綠color10#3a5e37rgb(58 94 55)hsl(115 26% 29%)oklch(44.4% 0.075 142.5)7.03 AAA
亮黃color11#876032rgb(135 96 50)hsl(32 46% 36%)oklch(52.0% 0.080 69.0)5.32 AA
亮藍color12#486a88rgb(72 106 136)hsl(208 31% 41%)oklch(51.1% 0.062 246.0)5.40 AA
亮洋紅color13#6f578crgb(111 87 140)hsl(267 23% 45%)oklch(50.3% 0.086 304.3)5.83 AA
亮青color14#286363rgb(40 99 99)hsl(180 42% 27%)oklch(46.1% 0.061 195.3)6.52 AA
亮白color15#faf9f5rgb(250 249 245)hsl(48 33% 97%)oklch(98.2% 0.005 95.1)1.00 低於 AA

關於 Token Light

Token Light 採用中性色調的淺色背景(#faf9f5),預設前景色為 #2a2920。正文的 WCAG 對比度為 13.88:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.72:1,最低 4.60:1。

色板整體色彩飽和度偏低,其中紅色為 #b05555、綠色為 #3f643c、藍色為 #527594、洋紅為 #7c619a。

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

與 Token Light 相似的配色

資料來源:iTerm2 Color Schemes (MIT)