use tailwind classes in javascript code example Example: tailwind classes .text-center { text-align: center; }