跳到主要內容

Powershell

Powershell 是一套深色終端機配色(鮮艷、冷色),背景色 #052454,文字色 #f6f6f7,對比度 14.0:1

取得設定檔
背景色
#052454
前景色
#f6f6f7
文字對比度
14.02:1AAA
強調色對比度
5.75:1最低 1.81
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
❯

Powershell 的設定檔

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

Powershell

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

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

palette = 0=#000000
palette = 1=#981a22
palette = 2=#098003
palette = 3=#c4a000
palette = 4=#4140c3
palette = 5=#d33682
palette = 6=#0e807f
palette = 7=#7f7c7f
palette = 8=#808080
palette = 9=#ef2929
palette = 10=#1cfe3c
palette = 11=#fefe45
palette = 12=#268ad2
palette = 13=#fe13fa
palette = 14=#29fffe
palette = 15=#c2c1c3
background = #052454
foreground = #f6f6f7
cursor-color = #f6f6f7
cursor-text = #052454
selection-background = #f6f6f7
selection-foreground = #052454

Powershell 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#052454rgb(5 36 84)hsl(216 89% 17%)oklch(27.2% 0.095 259.3)—
前景色foreground#f6f6f7rgb(246 246 247)hsl(240 6% 97%)oklch(97.3% 0.001 286.4)14.02 AAA
光標cursor#f6f6f7rgb(246 246 247)hsl(240 6% 97%)oklch(97.3% 0.001 286.4)14.02 AAA
光標文字cursorText#052454rgb(5 36 84)hsl(216 89% 17%)oklch(27.2% 0.095 259.3)1.00 低於 AA
選取範圍selection#f6f6f7rgb(246 246 247)hsl(240 6% 97%)oklch(97.3% 0.001 286.4)14.02 AAA
選取文字selectionText#052454rgb(5 36 84)hsl(216 89% 17%)oklch(27.2% 0.095 259.3)1.00 低於 AA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.39 低於 AA
紅color1#981a22rgb(152 26 34)hsl(356 71% 35%)oklch(44.2% 0.160 24.2)1.81 低於 AA
綠color2#098003rgb(9 128 3)hsl(117 95% 26%)oklch(52.1% 0.175 142.3)2.96 低於 AA
黃color3#c4a000rgb(196 160 0)hsl(49 100% 38%)oklch(71.8% 0.147 92.6)6.04 AA
藍color4#4140c3rgb(65 64 195)hsl(240 52% 51%)oklch(46.1% 0.198 275.7)1.98 低於 AA
洋紅color5#d33682rgb(211 54 130)hsl(331 64% 52%)oklch(59.2% 0.202 355.9)3.33 AA 大字體
青color6#0e807frgb(14 128 127)hsl(179 80% 28%)oklch(54.4% 0.090 193.8)3.18 AA 大字體
白color7#7f7c7frgb(127 124 127)hsl(300 1% 49%)oklch(59.0% 0.006 325.6)3.67 AA 大字體
亮黑color8#808080rgb(128 128 128)hsl(0 0% 50%)oklch(60.0% 0.000 0)3.83 AA 大字體
亮紅color9#ef2929rgb(239 41 41)hsl(0 86% 55%)oklch(61.3% 0.230 27.4)3.62 AA 大字體
亮綠color10#1cfe3crgb(28 254 60)hsl(128 99% 55%)oklch(86.7% 0.277 143.8)11.03 AAA
亮黃color11#fefe45rgb(254 254 69)hsl(60 99% 63%)oklch(96.7% 0.192 109.5)14.04 AAA
亮藍color12#268ad2rgb(38 138 210)hsl(205 69% 49%)oklch(61.3% 0.140 245.5)4.07 AA 大字體
亮洋紅color13#fe13fargb(254 19 250)hsl(301 99% 54%)oklch(70.0% 0.315 329.2)4.82 AA
亮青color14#29fffergb(41 255 254)hsl(180 100% 58%)oklch(90.7% 0.150 194.3)12.14 AAA
亮白color15#c2c1c3rgb(194 193 195)hsl(270 2% 76%)oklch(81.2% 0.003 308.4)8.44 AAA

關於 Powershell

Powershell 採用冷色調的深色背景(#052454),預設前景色為 #f6f6f7。正文的 WCAG 對比度為 14.02:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.75:1,最低 1.81:1。

色板整體色彩飽和度較高,其中紅色為 #981a22、綠色為 #098003、藍色為 #4140c3、洋紅為 #d33682。

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

與 Powershell 相似的配色

資料來源:iTerm2 Color Schemes (MIT)