When using negative numbers in styled components next-yak fails to statically extract them..
So these numbers get converted to CSS variables and evaluated at runtime, even though they are constant values. This creates unnecessary overhead since these values could be inlined directly into the CSS
When using negative numbers in styled components next-yak fails to statically extract them..
So these numbers get converted to CSS variables and evaluated at runtime, even though they are constant values. This creates unnecessary overhead since these values could be inlined directly into the CSS
Gets compiled to something like:
With CSS output:
Since the negative number is a constant value, it should be inlined directly into the CSS: