I don't use tailwind but surely it has ways to standardize this kind of stuff?
This leaves framework components as the only abstraction boundary, but that means if you're writing plain HTML without a framework there's literally no way to standardize your design system.
That and the huge soup of classes in DOM is (part of why) I don't like Tailwind... but that ship sailed a long time ago.
https://tailwindcss.com/docs/functions-and-directives#apply-...
[0] https://tailwindcss.com/docs/styling-with-utility-classes#ma...
[1] https://github.com/tailwindlabs/tailwindcss/discussions/7651...