Creating classes with dynamic values

I know it’s crazy, but hey, since I use tailwind with vue or nuxt, I’ve gotten used to the agility that tailwind offers.
And using bricksbuilder’s “CSS Classes” input because I find it practical, I thought if it would be possible to somehow create classes that receive values coming from the page builder.
Has anyone managed to do something similar?
I could make many classes, but the problem is that I don’t want to leave many classes that I might end up not using, I don’t really know the negative impact on this and with classes receiving values we would create less classes.
I read that there is a way to disable classes, but I don’t know how or if it’s possible to automatically disable unused classes.
Here’s an example I made.