Support SASS import statement when analyzing SCSS variable to expose CSS variable #11824
Labels
enhancement
New feature or request
themes
Related to HTML theming or any other style related issue (like highlight-style)
triaged-to
Issues that were not self-assigned, signals that an issue was assigned to someone.
Milestone
Currently, when some variable are defined inside a scss file used as
@import
inside main theme files, some warning like this will be thrownThis was introduced by brand work in #10727 to warn when exposing all SCSS variable to CSS variable, if a variable is found before it seems to be defined.
This analysis should handle SASS import and look in there too to avoid those uncessary warnings (which are confusing to users).
Reproducible example
and modify
style.scss
_colors.scss
_quarto.yml
Then
Use case
This was encountered by @m-- while using Posit doc extension (https://github.com/posit-dev/product-doc-theme)
The text was updated successfully, but these errors were encountered: