Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

compilation breaks var() #401

Open phryk opened 4 years ago

phryk commented 4 years ago

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 4 years ago

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

maethu commented 2 years ago

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