a streamlined CSS-in-JS solution tailor-made for Next.js, seamlessly combining the expressive power of styled-components syntax with efficient build-time extraction and minimal runtime footprint, ensuring optimal performance and easy integration with existing atomic CSS frameworks like Tailwind CSS
currently negative numbers in styled components were being converted to CSS variables and evaluated at runtime, even though they are constant values
This PR fixes this by inlining negative numbers directly into the CSS output
For example:
Now correctly outputs:
Instead of using CSS variables and runtime evaluation
constants/input.tsx
to verify negative number inliningFixes #191