Themes
A theme is a set of colors defining the appearance of UI. By default, Yōzefu comes with 3 built-in themes:
lightdarksolarized-dark-higher-contrast
These themes are defined in the themes.json file. You can find the location of your themes.json by running:
bash
yozf config get themes_file
"/Users/me/Library/Application Support/io.maif.yozefu/themes.json"How to select a theme
You have 2 options:
- Use the
--theme <name>flag when launching yōzefu. - Or update your configuration:
yozf config set /theme solarized-dark-higher-contrast
🖌️ You can also create, update and share your own themes by editing themes.json.
Highlighter
For syntax highlighting, Yōzefu uses Syntect Syntect includes 7 built-in themes:
base16-ocean.darkbase16-eighties.darkbase16-mocha.darkbase16-ocean.lightInspiredGitHubSolarized (dark)Solarized (light)
How to select a highlighter theme?
You can configure it in two ways:
- In
config.json, under the/highlighter_themeproperty. - In
themes.json, for a specific theme, under/<theme-name>/highlighter_theme.
Using a custom highlighter theme
syntect supports Sublime Text .tmTheme format. For example, to use Srcery TextMate:
- Go to your Yōzefu configuration directory:
cd "$(yozf config get dir)" - Download the theme:
git clone https://github.com/srcery-colors/srcery-textmate.git. - Edit your configuration to point to the theme file:
bash
# Open the `config.json` file
yozf configure
# Then edit the `highlighter_theme` property:
{
...
"initial_query": "from end - 10",
"theme": "light",
"highlighter_theme": "/home/user/.config/yozefu/srcery-textmate/srcery.tmTheme",
...
}- Save the file and restart Yōzefu for the changes to take effect.
NOTE
You can disable Syntect by setting the highlighter_theme property to null in your configuration and themes.json.