IssueRaiser

[css] Use CSS custom properties imported via @import

Is it possible for VS code to recognize CSS variables declared in a separate CSS file that is imported with `@import` ? For example, I would like to have a `variables.css` file that is all about declaring CSS custom properties. Then I would import that file on top of my main css file, and be able to have intellisense support for those variables. The way things work now, VSCode is not able to recognize those variables. Or maybe I am missing something obvious?

Posted by fluxxus on Jun 11, 2017, 2:24 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

support (Other)

[css] Use CSS custom properties imported via @import

fluxxusJun 11, 2017, 2:24 PM

Is it possible for VS code to recognize CSS variables declared in a separate CSS file that is imported with `@import` ? For example, I would like to have a `variables.css` file that is all about declaring CSS custom properties. Then I would import that file on top of my main css file, and be able to have intellisense support for those variables. The way things work now, VSCode is not able to recognize those variables. Or maybe I am missing something obvious?

Comments (0)

No comments yet. Start the discussion.

Comment on this issue