-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Global functions] add hex functions to convert RGB / RGBA to #RRGGBB / #RRGGBBAA #2987
Comments
The sass |
What I meant is to convert rgb to hexadecimal format For example:
|
The rendering of sass values in the output is not configurable. the implementation deals with it on its own (as they are equivalent in CSS anyway):
Note that this corresponds to the rendering behavior of dart-sass. libsass might have some differences. |
Btw, to implement a |
Currently, Sass has HSL and RGB helper functions. However, it is not possible to convert vice versa? (Or is it, but not documented?)
I think it would be really helpful to developers for this to come out of the box. It's a pain to switch from a #hex notation to rgba() notation just for adding opacity to a color.
The text was updated successfully, but these errors were encountered: