Yep, I have ended up doing the same with Tailwind, because in the end you end up with unmanageable inline styles.
I would recommend you to try Open Props [0], which you can use with Tailwind CSS, and see how what we all really crave is a good utility class system.