Tailwind is optimised to work with JavaScript/TypeScript ecosystems, but other languages might have good integrations also.
This is the case for OCaml-derived languages that are used to do Frontend development. For the most part, a tighter integration might not be needed and using the Tailwind setup guide and regular classNames with strings is good enought.
let make = (~text) => {
<h1 className="text-3xl font-bold underline">{React.string(text)}<h1>