Closed Anoesj closed 1 year ago
Are you looking for a feature like this: https://github.com/willofindie/vscode-cssvar/issues/92
I was planning to add support for injecting variables using some config file, but didn't get time recently. If you are interested in the same feature, let me know we can close this one, in support for the above issue.
Replied over there 😄. It might work for my use case with the proposed changes.
Closing this in favour of https://github.com/willofindie/vscode-cssvar/issues/92
In many of my projects, I use the following SCSS mixin to define colors:
When defining colors using this mixin (e.g. using
:root { @include declare-hsl-color(--color-primary, #ff0000); }
), this VSCode extension does not recognize the definition. Makes sense, because there is some dynamic stuff going on.It would be nice if this extension somehow recognizes the definition or provides a way for developers to provide custom parsing rules. E.g. it'd be nice to be able to pass the extension a regex for dynamic CSS variable definitions.