-
Notifications
You must be signed in to change notification settings - Fork 357
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
Add support for color literals #2503
Conversation
{ | ||
"inputs": [ | ||
{ | ||
"css": "@#{#00f}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intended for @
to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, because we didn't have variable statements early on the way we parse expressions is by creating an interpolation in an unknown at-rule.
declare raws: ColorExpressionRaws; | ||
|
||
/** | ||
* The color represented by this expression. This will always be a color in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why will it always be an RGB color? It doesn't seem like it's a limitation on sass_api 🤔
Is this a temporary limitation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because Sass has no literal syntactic representation of non-RGB colors. Every other color type is returned by function calls.
Co-authored-by: Carlos (Goodwine) <[email protected]>
No description provided.