system-theme.hx
Theme switcher plugin for Helix that automatically adapts to your system's appearance (dark/light mode)
- Stars: 12
- Last commit:
- Created:
Theme switcher plugin for Helix that automatically adapts to your system's appearance (dark/light mode)
system-theme.hx is a theme switcher plugin for Helix that automatically adapts to your system's appearance (dark/light mode).
Add the following to init.scm in your Helix config directory:
(require "system-theme-hx/system-theme.scm")
(auto-theme "tokyonight_moon" "github_light")
This plugin provides the auto-theme function that automatically switches between dark and light themes based on system preference.
;; Gruvbox variants
(auto-theme "gruvbox_dark_hard" "gruvbox_light_hard")
;; Catppuccin variants
(auto-theme "catppuccin_mocha" "catppuccin_latte")
Follow the instructions here to install Helix on the plugin branch.
Then, install the plugin with one of the installation methods below.
Forge is the Steel package manager, and will have been installed in the previous step. Run the following:
forge pkg install --git https://github.com/j03-dev/system-theme.hx.git
cd into this repo and run cargo steel-lib(require "<path>/system-theme.hx/system-theme.scm") to init.scm in your Helix config (where <path> is the absolute path of the folder containing the system-theme.hx repo)