danth / stylix

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

Feature Request: `lib.mkDefault` by default #549

Closed uimataso closed 1 month ago

uimataso commented 1 month ago

Hi, I have used stylix quite some time, absolute loving this project.

But recently I notice a little inconvenience. For example, if I enabled stylix config for tofi, and I want to overwrite some config, I can't just font-size = 20;, I need to font-size = lib.mkForce 20. This means I need to manually check what config are already config in stylix, and worst part to me is some config need lib.mkForce and some not, so this brings some inconsistency.

So my wish is to make all config in stylix with lib.mkDefault, which is more sense and more intuitive to me.

But that been said, I don't know if lib.mkDefault will make sense in more complicated module tho.

And again, this is a wonderful project, thanks to all your hard work!

trueNAHO commented 1 month ago

This has already been proposed and discussed in https://github.com/danth/stylix/pull/388#issuecomment-2126947630.

uimataso commented 1 month ago

Ohhh, I have search mkDefault, but somehow didn't see it :(, I will close the this issue