-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create aliases for colors #207
Comments
This looks very nice, and it's something I've been considering for a while. It might be useful for implementing #205 since that will introduce new named colors which lie outside of the main palette. It also opens up the possibility of supporting non-base16 color schemes in the future. Internally, palettes are handled by base16.nix so any modifications would need to go through there, or more likely we would replace it with our own library since this is such a large change. |
That's true, which might mean a break from any other base16.nix compatible extensions that stylix uses. |
Note that that would take away the ability to use the colors in mustache templates, which may or may not be something we want to support. Theoretically the template files could just be converted to multiline strings within Nix, using |
In the style guide there's some guidelines for what colors to use for what. I think it'd be pretty useful to add aliases for these uses under
stylix.colors.general.{colorAlias}
stylix.colors.notifications.{colorAlias}
and so on.With this, we might be able to have modules that look like this (using the bemenu module because it's nice and simple)
It's much easier to read what's going on, and could make styling much easier to unify, since you could just use the color names instead of having to go through the documentation.
The text was updated successfully, but these errors were encountered: