Is there a way to make width using calc() on tailwind?
width: calc(100% - 40px)
without making separate values on the configs file each time?
If you only need this value once, and the Tailwind version you're using supports Just-in-Time mode, I would suggest you to use the arbitrary values feature.
<div class="w-[calc(100%-40px)]"></div>
Depending on your use case, there might be better solutions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With