stylix schemas configurations

This commit is contained in:
Danilo Reyes 2025-06-02 20:33:31 -06:00
parent 1827c3851e
commit 57471553a2

View File

@ -6,44 +6,34 @@
}:
let
cfg = config.my.stylix;
iconTheme = pkgs.papirus-icon-theme.override { color = "green"; };
mkScheme = color: name: polarity: image: {
inherit name polarity image;
iconPackage = pkgs.papirus-icon-theme.override { inherit color; };
};
schemas = {
who = mkScheme "bluegrey" "kanagawa" "dark" ./wallpapers/Nikolay_Kasatkin_Who.jpeg;
jesus = mkScheme "red" "equilibrium-light" "light" ./wallpapers/jesus.png;
};
scheme = schemas.who;
in
{
options.my.stylix.enable = lib.mkEnableOption "enable";
config = {
stylix = {
inherit (scheme) image polarity;
enable = cfg.enable;
image = ./wallpapers/Waay-Ballerinas.jpeg;
targets.qt.platform = lib.mkForce "qtct";
polarity = "light";
base16Scheme = {
base00 = "fcfbfa"; # background (stage floor highlight)
base01 = "f1efec"; # light surface (tutu white)
base02 = "dedad5"; # selection bg (shadowed tulle)
base03 = "b9b3aa"; # comments/dim fg (wall and dancers' shadows)
base04 = "837d75"; # status bar bg (soft gray-brown suits)
base05 = "514c45"; # main text (outline shadows)
base06 = "3b3731"; # headings/bold (deepest shadows)
base07 = "2c2925"; # dark accents (coats, seats)
base08 = "bd7760"; # red-accent (blush tones)
base09 = "d8b47f"; # warm gold (light skin and floor warmth)
base0A = "a2ad78"; # dusty green (faint shadows)
base0B = "7f9372"; # sage green (secondary/OK)
base0C = "96b7af"; # teal-gray (cool lights)
base0D = "6c8c99"; # cyan steel (links)
base0E = "a08b75"; # brown-gold (muted keywords)
base0F = "8f5e45"; # burnt sienna (deprecated/error)
};
base16Scheme = "${pkgs.base16-schemes}/share/themes/${scheme.name}.yaml";
};
home-manager.users.jawz = {
gtk = lib.mkIf (!cfg.enable) {
iconTheme = iconTheme;
iconTheme = scheme.iconPackage;
};
stylix = {
enable = cfg.enable;
iconTheme = {
enable = cfg.enable;
package = iconTheme;
package = scheme.iconPackage;
light = "Papirus-Light";
dark = "Papirus-Dark";
};