-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: implement css-variables and css-calc #7553
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
feat: implement css-variables and css-calc #7553
Conversation
this is gonna be merged? |
@exejutable |
…to feat/css-variables
Can this merged please !!! I'm migrating my web app to a shared codebase and this is last missing piece to handle universal Theming. |
I've tested this PR a bit and it seems to be working rather nice. |
@manoldonev
|
@manoldonev Seems to work fine, but it needs a little clean up. |
test |
Hi @manoldonev, Unfortunately I have discovered a limitation with the Expressions like Can we leave it as a known limitation and print a warning if/when it happens? |
Hey @m-abs, this feat will be available in the next version of |
@m-abs can you log this limitation #7553 (comment) as a separate issue and we will mark it with the "known issues" label for the time being? |
@m-abs Thank you for the awesome contribution and for taking time to address all comments! |
PR Checklist
What is the current behavior?
No support for css-variable or for css-calc
What is the new behavior?
Adds
basicsupport for css-variable and css-calcAdds support for
calc(...)
in CSS, via reduce-css-calc.What is still missing:
Updating the variables viaview.style
is broken, if already defined in CSS.For CSS-variables to be really useful, support forcalc(var(--my-variable) * 2)
is needed. I intend to add this to the PR.clean upImplements #4864