diff --git a/docs/src/tricks.md b/docs/src/tricks.md index e6c1c52..c25e348 100644 --- a/docs/src/tricks.md +++ b/docs/src/tricks.md @@ -31,7 +31,7 @@ Similarly, you can use a template image and repaint it for the current theme. { pkgs, ... }: let - theme = "${pkgs.base16-schemes}/share/themes/catppuccin.yaml"; + theme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml"; wallpaper = pkgs.runCommand "image.png" {} '' COLOR=$(${pkgs.yq}/bin/yq -r .base00 ${theme}) COLOR="#"$COLOR @@ -44,3 +44,16 @@ in { }; } ``` + +Which is neatly implemented as a single function in `lib.stylix.pixel`: + +```nix +{ pkgs, config, ... }: + +{ + stylix = { + image = config.lib.stylix.pixel "base0A"; + base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml"; + }; +} +```