danth / stylix

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

Overriding the generated color scheme #40

Closed qaristote closed 1 year ago

qaristote commented 1 year ago

I tried generating color schemes for different background images and it works like a charm - thanks ! But I also have night mode enabled constantly, and in dark mode this gives a reddish hue to the background color. I'd like to keep the color scheme generated by stylix, but override the background color to set it to something darker which won't get redshifted noticeably.

I assume I could just generate the color scheme myself using palette-generator and override it before passing it to stylix.base16scheme, but it'd be nice to have a configuration option like stylix.base16schemeOverrides to do that automatically.

dwarfmaster commented 1 year ago

Maybe we could expose the generated theme as a readonly option, to that you could do something like:

{ config, ... }:
{
  stylix.base16scheme = config.stylix.generatedScheme.override {
    base00 = "000000";
  };
}

What do you think ?

qaristote commented 1 year ago

Yeah that would work as well :)