跳到正文

Source Code X

Source Code X 是一套深色终端配色(柔和),背景色 #1f1f24,文字色 #000000,对比度 1.3:1

获取配置
背景色
#1f1f24
前景色
#000000
文字对比度
1.28:1低于 AA
强调色对比度
7.13:1最低 5.47
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
❯

Source Code X 的配置文件

16 种格式,都从同一份色板生成

Source Code X

存到 ~/.config/ghostty/themes/Source Code X,再在 config 或 config.ghostty 里写 theme = Source Code X

更多 Ghostty 配色
原始文件
# Theme: Source Code X (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/schemes/source-code-x?format=ghostty

palette = 0=#4e596b
palette = 1=#fb695d
palette = 2=#74b391
palette = 3=#fc8e3e
palette = 4=#9586f4
palette = 5=#fb5ea3
palette = 6=#79c8b6
palette = 7=#bfbfbf
palette = 8=#91a0b1
palette = 9=#fb695d
palette = 10=#aef37c
palette = 11=#fc8e3e
palette = 12=#53a4fb
palette = 13=#fb5ea3
palette = 14=#83d2c0
palette = 15=#91a0b1
background = #1f1f24
foreground = #000000
cursor-color = #000000
cursor-text = #1f1f24
selection-background = #111115
selection-foreground = #000000

Source Code X 色板

色板各槽位的色值及其相对背景的 WCAG 对比度
颜色槽位HEXRGBHSLOKLCH对比度
背景色background#1f1f24rgb(31 31 36)hsl(240 7% 13%)oklch(24.1% 0.009 285.7)—
前景色foreground#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.28 低于 AA
光标cursor#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.28 低于 AA
光标文字cursorText#1f1f24rgb(31 31 36)hsl(240 7% 13%)oklch(24.1% 0.009 285.7)1.00 低于 AA
选区selection#111115rgb(17 17 21)hsl(240 11% 7%)oklch(17.9% 0.008 285.5)1.15 低于 AA
选区文字selectionText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.28 低于 AA
黑color0#4e596brgb(78 89 107)hsl(217 16% 36%)oklch(46.1% 0.033 260.2)2.32 低于 AA
红color1#fb695drgb(251 105 93)hsl(5 95% 67%)oklch(70.1% 0.181 27.4)5.69 AA
绿color2#74b391rgb(116 179 145)hsl(148 29% 58%)oklch(71.4% 0.082 159.8)6.72 AA
黄color3#fc8e3ergb(252 142 62)hsl(25 97% 62%)oklch(75.3% 0.161 53.1)7.09 AAA
蓝color4#9586f4rgb(149 134 244)hsl(248 83% 74%)oklch(68.2% 0.158 287.7)5.47 AA
品红color5#fb5ea3rgb(251 94 163)hsl(334 95% 68%)oklch(70.4% 0.201 356.3)5.65 AA
青color6#79c8b6rgb(121 200 182)hsl(166 42% 63%)oklch(77.7% 0.083 177.8)8.40 AAA
白color7#bfbfbfrgb(191 191 191)hsl(0 0% 75%)oklch(80.5% 0.000 0)8.92 AAA
亮黑color8#91a0b1rgb(145 160 177)hsl(212 17% 63%)oklch(70.0% 0.030 251.6)6.15 AA
亮红color9#fb695drgb(251 105 93)hsl(5 95% 67%)oklch(70.1% 0.181 27.4)5.69 AA
亮绿color10#aef37crgb(174 243 124)hsl(95 83% 72%)oklch(89.2% 0.166 133.5)12.43 AAA
亮黄color11#fc8e3ergb(252 142 62)hsl(25 97% 62%)oklch(75.3% 0.161 53.1)7.09 AAA
亮蓝color12#53a4fbrgb(83 164 251)hsl(211 95% 65%)oklch(70.7% 0.151 252.2)6.31 AA
亮品红color13#fb5ea3rgb(251 94 163)hsl(334 95% 68%)oklch(70.4% 0.201 356.3)5.65 AA
亮青color14#83d2c0rgb(131 210 192)hsl(166 47% 67%)oklch(80.8% 0.082 178.0)9.33 AAA
亮白color15#91a0b1rgb(145 160 177)hsl(212 17% 63%)oklch(70.0% 0.030 251.6)6.15 AA

关于 Source Code X

Source Code X 采用中性色调的深色背景(#1f1f24),默认前景色为 #000000。正文的 WCAG 对比度为 1.28:1(低于 AA),12 种 ANSI 彩色槽位平均对比度 7.13:1,最低 5.47:1。

色板整体色彩饱和度适中,其中红色为 #fb695d、绿色为 #74b391、蓝色为 #9586f4、品红为 #fb5ea3。

支持一键导出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 终端配置文件,同时提供 VS Code 与 Zed 集成终端、CSS 变量、Tailwind CSS 及 JSON 色板格式。

与 Source Code X 相似的配色

数据来源:Gogh (MIT OR Apache-2.0)