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?
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.