danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.05k stars 123 forks source link

Different themes per application #208

Open tbaumann opened 8 months ago

tbaumann commented 8 months ago

I have an odd scenario.

I prefer a system wide light theme. But for my terminal stuff I want a dark theme.

Currently I solve that by disabling stylix for my terminal stuff and managing theming of that myself.

But it would be pretty nice if I could just use something like stylix.targets.fish.base16Scheme = xxx

PS: I'm using a custom theme, not the algorithm generated one. So light and dark have different meanings for me. Specifically I use "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml" system wide and catppuccin-mocha for terminal stuff

danth commented 8 months ago

This sounds like a nice feature particularly for terminals and other code related stuff.

To make things neater, I would suggest we group all the theme related options (wallpaper, colors, fonts, etc) into a submodule under stylix.theme. Then each module can define targets.«name».theme using the same submodule.

It might be a good idea to wait for #102 before implementing this, to avoid conflicts.

tbaumann commented 8 months ago

That would be super intuitive to use like that.