-
Notifications
You must be signed in to change notification settings - Fork 67
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
[CSS] Support custom properties (css variables) #197
Comments
From Sass 3.5 announcement: So we decided on a compromise: we'd treat custom properties like we do selectors and at-rule values, and only allow #{} as a means of including Sass values. While technically this is plain CSS, it's a very small surface area and it's very easy to escape, so we're not too worried. This means that in 3.5 you can write: :host {
--my-toolbar-theme: {
background-color: #{$toolbar-background};
border-radius: 4px;
border: 1px solid gray;
};
} |
Right now parsing the css variable like |
+1 |
Any thoughts on how to approach custom properties on a node level? Would
|
Is this getting looked at? sass-lint relies on this AST, and as such, you can't write code with custom variables natively and run sass-lint on it. Seems like this issue has been open for 3 years, CSS variables are very much native at this point. |
https://www.w3.org/TR/css-variables/
The text was updated successfully, but these errors were encountered: