Kronuz/pyScss

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.

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. :)

https://github.com/sass/libsass-python

My workaround: var(#{'--foo'}) works just fine 😊