You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use stylix in conjunction with pywal clone wallust (c.f. #99), using the latter to dynamically swap colors out, while using stylix for typography.
currently tho, stylix doesn't really allow use for just one of those two.
it would be nice if such a use-case were supported tho.
would you be open to a PR adding such a toggle stylix.colors.enable?
The text was updated successfully, but these errors were encountered:
i use stylix in conjunction with pywal clone wallust (c.f. #99), using the latter to dynamically swap colors out, while using stylix for typography. currently tho, stylix doesn't really allow use for just one of those two. it would be nice if such a use-case were supported tho. would you be open to a PR adding such a toggle stylix.colors.enable?
IIRC, this use case was already very briefly mentioned once somewhere, but I do not know where. Either way, adding guards for explicit and major Stylix functionalities would surely be great. For example, we could add the following guards:
stylix.colors.enable
Disables all color scheme declarations. Since some of our Mustache templates couple colors with related functionalities, like border radius or border width, we could guard all of it or first decouple them. Considering that decoupling functionalities probably takes a while, it might be better for this guard to disable all of it together for now.
stylix.fonts.enable
Disables all font declarations.
stylix.image.enable
Allows extracting the color scheme from the image without setting it anywhere. Although, this naming convention is convenient and consistent with the Nix .enable convention, this introduces a breaking change since stylix.image is an option and not an attribute set. We should reconsider how to handle this.
i use stylix in conjunction with pywal clone wallust (c.f. #99), using the latter to dynamically swap colors out, while using stylix for typography.
currently tho, stylix doesn't really allow use for just one of those two.
it would be nice if such a use-case were supported tho.
would you be open to a PR adding such a toggle
stylix.colors.enable
?The text was updated successfully, but these errors were encountered: