vunguyentuan / vscode-css-variables

CSS variables autocomplete for vscode
https://marketplace.visualstudio.com/items?itemName=vunguyentuan.vscode-css-variables
MIT License
139 stars 22 forks source link

Is there a way to make it work with dynamic SASS variables? #96

Open luco opened 1 month ago

luco commented 1 month ago

I'm willing if is there a way to make it work with something like this:

$colors: (
    "c1": #593586,
    "c2": #94c350,
    "text": #666,
    "border": #e5e5e5,
    "black": #000,
);

:root {
    @each $id, $color in $colors {
        --#{$id}: #{$color};
        --#{$id}-rgb: #{toRGB($color)};
    }
}

It seems it doens't find the c1 variable, for example. Only when defined previously in :root.