Quillon.HTML.Tailwind (Quillon v0.4.0)

Copy Markdown View Source

A Quillon.HTML.Classes mapper that emits Tailwind utility classes.

Quillon.HTML.to_html(doc, classes: Quillon.HTML.Tailwind)

The token vocabulary was designed against Tailwind's scale, so most values map one to one. The semantic values - :accent, :success, :warning, :danger, :muted - are the exception: they resolve to a stock palette here, and an application with its own palette should copy this module and change those.

Classes are literal strings so Tailwind's compiler finds them by scanning this file. Nothing is composed at runtime.