Skip to content
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 css vars #73

Open
ChildishGiant opened this issue Jun 25, 2019 · 5 comments
Open

Add support for css vars #73

ChildishGiant opened this issue Jun 25, 2019 · 5 comments

Comments

@ChildishGiant
Copy link

image

@aksmfosef11
Copy link

aksmfosef11 commented Jul 12, 2019

#75

This is not possible for variables that are dynamic
It is possible to use frequently used color name fixed.

@muuvmuuv
Copy link

Uff, highly needed. Wonder why this isn't natively integrated into Code. Anyone working on this already?

@v1adko
Copy link

v1adko commented Jan 10, 2022

I think it could be done if you explicitly add the color definitions into extension settings, or in a specific json file that the extension could read, but I doubt that the real dynamic color definitions could be achieved (like for theming) as code analysis would be too complex or too slow. Even global lookup of all :root definitions could be slow depending on the size of the codebase.

@muuvmuuv
Copy link

This is something that could run when in idle. Onced parsed then cached and if a scss, css file is edited this one gets parsed again.

@wesbos
Copy link

wesbos commented Jan 20, 2023

VS Code knows the colour of the variable if it's in the same file. Is it possible to see how they do it?

Screenshot 2023-01-20 at 11 47 22 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants