Wezterm is a terminal emulator that supports true color via CSS Color 4. The Solarized color palette is defined with L*a*b values, and so we have the opportunity to define a color scheme in Wezterm using the canonical color space of Solarized.
This repo is not strictly a color scheme for Wezterm, but rather a Lua module that defines the Solarized schemes to be applied to your Wezterm config. This is mainly because of the need to specify bold_brightens_ansi_colors = false
as part of the scheme – the way that Solarized defines its terminal colors is not compatible with this option. If you apply this module but do not use one of the schemes, you may want to reset this value in your config.
Also included is an optional module that will automatically switch between the light & dark themes depending upon the system gui appearance.
- Clone this repo
- Copy the files to
~/.config/wezterm/
, or wherever you keep your wezterm modules (or create a symbolic link)
Add the following lines to your .wezterm.lua
file to define the schemes "Canonical Solarized Light" and "Canoncial Solarized Dark":
local canonical_solarized = require "canonical_solarized"
canonical_solarized.apply_to_config(config)
You can then use one of the themes specifically:
config.color_scheme = "Canonical Solarized Light"
OR
Use the auto appearance module:
local canonical_solarized_auto_appearance = require "canonical_solarized_auto_appearance"
canonical_solarized_auto_appearance.apply_to_config(config)