Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation breaks var() #401

Open
phryk opened this issue Jun 10, 2020 · 2 comments
Open

compilation breaks var() #401

phryk opened this issue Jun 10, 2020 · 2 comments

Comments

@phryk
Copy link

phryk commented Jun 10, 2020

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
Copy link

ScamCast commented Sep 15, 2020

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
Copy link

maethu commented Jul 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants