跳到主要內容

Lcars

Lcars 是一套深色終端機配色(純黑),背景色 #000000,文字色 #cc99ff,對比度 9.6:1

取得設定檔
背景色
#000000
前景色
#cc99ff
文字對比度
9.57:1AAA
強調色對比度
9.53:1最低 4.48
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
❯

Lcars 的設定檔

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

Lcars

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

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

palette = 0=#000000
palette = 1=#cc4444
palette = 2=#999933
palette = 3=#ffaa00
palette = 4=#8899ff
palette = 5=#cc5599
palette = 6=#99ccff
palette = 7=#f5f6fa
palette = 8=#666688
palette = 9=#ff5555
palette = 10=#cccc66
palette = 11=#ff9966
palette = 12=#aaaaff
palette = 13=#ddbbff
palette = 14=#aaddff
palette = 15=#ffffff
background = #000000
foreground = #cc99ff
cursor-color = #ffaa00
cursor-text = #000000
selection-background = #191022
selection-foreground = #cc99ff

Lcars 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)—
前景色foreground#cc99ffrgb(204 153 255)hsl(270 100% 80%)oklch(76.9% 0.150 306.2)9.57 AAA
游標cursor#ffaa00rgb(255 170 0)hsl(40 100% 50%)oklch(80.2% 0.171 73.3)11.00 AAA
游標文字cursorText#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低於 AA
選取範圍selection#191022rgb(25 16 34)hsl(270 36% 10%)oklch(19.4% 0.037 306.2)1.14 低於 AA
選取文字selectionText#cc99ffrgb(204 153 255)hsl(270 100% 80%)oklch(76.9% 0.150 306.2)9.57 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.00 低於 AA
紅color1#cc4444rgb(204 68 68)hsl(0 57% 53%)oklch(57.9% 0.172 24.3)4.48 AA 大字級
綠color2#999933rgb(153 153 51)hsl(60 50% 40%)oklch(66.3% 0.123 109.3)6.96 AA
黃color3#ffaa00rgb(255 170 0)hsl(40 100% 50%)oklch(80.2% 0.171 73.3)11.00 AAA
藍color4#8899ffrgb(136 153 255)hsl(231 100% 77%)oklch(71.4% 0.149 274.8)8.05 AAA
洋紅color5#cc5599rgb(204 85 153)hsl(326 54% 57%)oklch(62.2% 0.168 347.7)5.33 AA
青color6#99ccffrgb(153 204 255)hsl(210 100% 80%)oklch(82.8% 0.090 249.0)12.44 AAA
白color7#f5f6fargb(245 246 250)hsl(228 33% 97%)oklch(97.4% 0.005 275.0)19.45 AAA
亮黑color8#666688rgb(102 102 136)hsl(240 14% 47%)oklch(52.4% 0.053 284.4)3.82 AA 大字級
亮紅color9#ff5555rgb(255 85 85)hsl(0 100% 67%)oklch(68.2% 0.206 24.4)6.68 AA
亮綠color10#cccc66rgb(204 204 102)hsl(60 50% 60%)oklch(82.4% 0.125 108.9)12.40 AAA
亮黃color11#ff9966rgb(255 153 102)hsl(20 100% 70%)oklch(77.9% 0.139 46.6)10.00 AAA
亮藍color12#aaaaffrgb(170 170 255)hsl(240 100% 83%)oklch(77.1% 0.121 283.2)9.90 AAA
亮洋紅color13#ddbbffrgb(221 187 255)hsl(270 100% 87%)oklch(84.4% 0.099 307.1)12.63 AAA
亮青color14#aaddffrgb(170 221 255)hsl(204 100% 83%)oklch(87.4% 0.071 237.8)14.50 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)21.00 AAA

關於 Lcars

Lcars 採用中性色調的深色背景(#000000),預設前景色為 #cc99ff。內文的 WCAG 對比度為 9.57:1(AAA),12 種 ANSI 彩色槽位平均對比度 9.53:1,最低 4.48:1。

色票整體色彩彩度適中,其中紅色為 #cc4444、綠色為 #999933、藍色為 #8899ff、洋紅為 #cc5599。

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

與 Lcars 相似的配色

資料來源:Warp Themes (Apache-2.0)