跳到正文

WezTerm 配色

WezTerm 支持 macOS、Linux、Windows。站内 2037 套配色均可一键生成 WezTerm 原生配置:点开任意配色,导出面板会自动切换到 WezTerm 格式

支持平台
macOS、Linux、Windows
官方网站
wezterm.org

点击任意配色查看实时终端预览,导出面板将默认选中 WezTerm 格式

在 WezTerm 中安装配色

  1. 打开任意配色页面,导出面板会自动切换到 WezTerm 格式,复制或下载配置文件
  2. 存到 ~/.config/wezterm/colors/catppuccin-mocha.toml,再在 wezterm.lua 里把 config.color_scheme 设成配色名称
  3. 保存后重新加载配置,或重启 WezTerm

命令行下载

以下以 Catppuccin Mocha 为例,直接将配置文件下载至 WezTerm 的主题目录。将链接中的 catppuccin-mocha 替换为其他配色标识即可下载对应主题

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

配置示例:Catppuccin Mocha(WezTerm)

catppuccin-mocha.toml

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

[colors]
foreground = "#cdd6f4"
background = "#1e1e2e"
cursor_bg = "#f5e0dc"
cursor_border = "#f5e0dc"
cursor_fg = "#1e1e2e"
selection_bg = "#f5e0dc"
selection_fg = "#1e1e2e"
ansi = ["#45475a", "#f38ba8", "#a6e3a1", "#f9e2af", "#89b4fa", "#f5c2e7", "#94e2d5", "#bac2de"]
brights = ["#585b70", "#f7aec2", "#c2ecbf", "#fcd682", "#aeccfc", "#f398da", "#b1eae1", "#a6adc8"]

[metadata]
name = "Catppuccin Mocha"
origin_url = "https://tintdex.afengim.com/schemes/catppuccin-mocha"

按视觉风格挑选

站内全部 2037 套配色均可导出为 WezTerm 格式,也可按风格分类筛选: