compilation breaks var()
phryk opened this issue · 2 comments
phryk commented
pyScss will compile something like var(--foo)
to var("--foo")
instead of just leaving it alone, breaking usage of CSS variables.
The pattern I'm trying to implement is having all my styling in [S]CSS files, but setting color variables for palettized contents using inline declarations like <g style="--palette-color: rgb(128,255,0)"…</g>
Tried with 1.3.5 and 1.3.7.
ScamCast commented
Also had this issue. This is the only thing stopping me from using pyScss.
Edit:
Tried out LibSass and it compiles the variable functions correctly. :)
maethu commented
My workaround: var(#{'--foo'})
works just fine 😊