跳到主要內容

Cyberpunk

Cyberpunk 是一套深色終端機配色(冷色),背景色 #332a57,文字色 #e5e5e5,對比度 10.4:1

取得設定檔
背景色
#332a57
前景色
#e5e5e5
文字對比度
10.36:1AAA
強調色對比度
7.97:1最低 4.96
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
❯

Cyberpunk 的設定檔

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

Cyberpunk

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

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

palette = 0=#000000
palette = 1=#ff7092
palette = 2=#00fbac
palette = 3=#fffa6a
palette = 4=#00bfff
palette = 5=#df95ff
palette = 6=#86cbfe
palette = 7=#ffffff
palette = 8=#000000
palette = 9=#ff8aa4
palette = 10=#21f6bc
palette = 11=#fff787
palette = 12=#1bccfd
palette = 13=#e6aefe
palette = 14=#99d6fc
palette = 15=#ffffff
background = #332a57
foreground = #e5e5e5
cursor-color = #21f6bc
cursor-text = #ffffff
selection-background = #c1deff
selection-foreground = #000000

Cyberpunk 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#332a57rgb(51 42 87)hsl(252 35% 25%)oklch(31.9% 0.078 290.5)—
前景色foreground#e5e5e5rgb(229 229 229)hsl(0 0% 90%)oklch(92.2% 0.000 0)10.36 AAA
光標cursor#21f6bcrgb(33 246 188)hsl(164 92% 55%)oklch(86.6% 0.172 167.5)9.30 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)13.05 AAA
選取範圍selection#c1deffrgb(193 222 255)hsl(212 100% 88%)oklch(89.0% 0.055 251.8)9.42 AAA
選取文字selectionText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.61 低於 AA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.61 低於 AA
紅color1#ff7092rgb(255 112 146)hsl(346 100% 72%)oklch(72.7% 0.176 7.8)4.96 AA
綠color2#00fbacrgb(0 251 172)hsl(161 100% 49%)oklch(87.3% 0.193 161.5)9.56 AAA
黃color3#fffa6argb(255 250 106)hsl(58 100% 71%)oklch(96.2% 0.163 107.2)11.89 AAA
藍color4#00bfffrgb(0 191 255)hsl(195 100% 50%)oklch(75.5% 0.153 231.6)6.15 AA
洋紅color5#df95ffrgb(223 149 255)hsl(282 100% 79%)oklch(78.1% 0.164 315.1)6.14 AA
青color6#86cbfergb(134 203 254)hsl(206 98% 76%)oklch(81.5% 0.100 241.5)7.45 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)13.05 AAA
亮黑color8#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.61 低於 AA
亮紅color9#ff8aa4rgb(255 138 164)hsl(347 100% 77%)oklch(76.8% 0.143 6.9)5.85 AA
亮綠color10#21f6bcrgb(33 246 188)hsl(164 92% 55%)oklch(86.6% 0.172 167.5)9.30 AAA
亮黃color11#fff787rgb(255 247 135)hsl(56 100% 76%)oklch(96.0% 0.134 105.0)11.75 AAA
亮藍color12#1bccfdrgb(27 204 253)hsl(193 98% 55%)oklch(78.6% 0.144 223.9)6.90 AA
亮洋紅color13#e6aefergb(230 174 254)hsl(282 98% 84%)oklch(82.9% 0.124 315.5)7.36 AAA
亮青color14#99d6fcrgb(153 214 252)hsl(203 94% 79%)oklch(84.8% 0.082 236.4)8.31 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)13.05 AAA

關於 Cyberpunk

Cyberpunk 採用冷色調的深色背景(#332a57),預設前景色為 #e5e5e5。正文的 WCAG 對比度為 10.36:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.97:1,最低 4.96:1。

色板整體色彩飽和度適中,其中紅色為 #ff7092、綠色為 #00fbac、藍色為 #00bfff、洋紅為 #df95ff。

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

與 Cyberpunk 相似的配色

資料來源:iTerm2 Color Schemes (MIT)