跳到主要內容

Alacritty 配色

Alacritty 支援 macOS、Linux、Windows。站內 2037 套配色皆可一鍵產生 Alacritty 原生設定:開啟任一套配色,匯出面板會自動切換到 Alacritty 格式

支援平台
macOS、Linux、Windows
官方網站
alacritty.org

點擊任一套配色查看即時終端機預覽,匯出面板將預設選取 Alacritty 格式

在 Alacritty 中安裝配色

  1. 開啟任一套配色頁面,匯出面板會自動切換到 Alacritty 格式,複製或下載設定檔
  2. 存到 ~/.config/alacritty/themes/catppuccin-mocha.toml,再寫入 alacritty.toml 的 [general] import
  3. 儲存後重新載入設定,或重新啟動 Alacritty

命令列下載

以下以 Catppuccin Mocha 為例,直接將設定檔下載至 Alacritty 的主題資料夾。將網址中的 catppuccin-mocha 替換為其他配色代號即可下載對應主題

mkdir -p ~/.config/alacritty/themes && curl -fsSL "https://tintdex.afengim.com/raw/catppuccin-mocha/alacritty" -o "$HOME/.config/alacritty/themes/catppuccin-mocha.toml"

設定範例:Catppuccin Mocha(Alacritty)

catppuccin-mocha.toml

# Theme: Catppuccin Mocha (Alacritty)
# Preview & customize online: https://tintdex.afengim.com/zh-tw/schemes/catppuccin-mocha?format=alacritty

[colors.primary]
background = "#1e1e2e"
foreground = "#cdd6f4"

[colors.cursor]
text = "#1e1e2e"
cursor = "#f5e0dc"

[colors.selection]
text = "#1e1e2e"
background = "#f5e0dc"

[colors.normal]
black = "#45475a"
red = "#f38ba8"
green = "#a6e3a1"
yellow = "#f9e2af"
blue = "#89b4fa"
magenta = "#f5c2e7"
cyan = "#94e2d5"
white = "#bac2de"

[colors.bright]
black = "#585b70"
red = "#f7aec2"
green = "#c2ecbf"
yellow = "#fcd682"
blue = "#aeccfc"
magenta = "#f398da"
cyan = "#b1eae1"
white = "#a6adc8"

Alacritty 官方與社群原生配色

以下 17 套配色收錄自 Alacritty 主題庫 Alacritty Theme

依視覺風格挑選

站內全部 2037 套配色皆可匯出為 Alacritty 格式,也可依風格分類篩選: