Add calc() to units

Would very much like the ability to set units using the calc function.

For example, instead of width: 100% or 100vw it would be nice to also be able to select ‘calc’ and have width: calc(100% - 50px)

Many use cases for calc.


This is possible already, but instead of selecting calc as a unit you need to type in the entire function.
But to be honest, I kind of like what you suggested.
In its current state, it’s not really convenient, especially when editing the value.
Using “calc()” as a unit from the dropdown would also save space inside the input field which would be another improvement.

1 Like