Quoin
Guide
Laravel
Math
Reference
Examples
Gallery
Changelog
GitHub
Guide
Laravel
Math
Reference
Examples
Gallery
Changelog
GitHub

From Tailwind

Paste HTML or a Blade view styled with Tailwind classes and get a first draft in document tags. It runs in your browser; nothing is sent anywhere.

What carries over

  • Boxes. flex becomes <x-doc::row>, flex-col and plain block elements become <x-doc::column>, and an element holding only text becomes <x-doc::text>. p, h1 to h4, lists, tables, images and links map to matching tags.
  • Spacing and sizes from Tailwind's scale, where one step is 4px (3pt). Fractions like w-1/2 become percentages, and arbitrary values like p-[13px] are kept.
  • Colors by name. The whole Tailwind palette is known, so bg-slate-50 stays slate-50.
  • Text: sizes, weights, italic, underline, line-through, leading, tracking and alignment.
  • Borders and corners: widths, sides, colors, border-dashed and rounded. A border with no color class gets gray-200, Tailwind 3's default.
  • Printing: break-inside-avoid becomes keep-together, break-before-page and break-after-page start new pages, and print: classes are applied on top of the others. An element that is hidden (or print:hidden) is removed.
  • Blade echoes, comments and @ directives stay where they were. Other components (<x-…>) are kept, and the classes on x-doc tags you already wrote become attributes.

What doesn't

Anything screen-only is left out and listed in a {{-- not translated --}} comment above the tag: breakpoints (md:), states (hover:), grid, shadows, rings, mx-auto, negative margins, rounded-full and color opacity (bg-red-500/50). Layout classes on tags that can't use them, like gap-4 on a table cell, are listed too. Only absolute links are followed, so a relative href="/about" keeps its text and loses the link; a Blade echo such as href="{{ route('about') }}" is kept. Tailwind's text sizes also set a line height; the theme's is kept unless you add a leading- class.

Tailwind resets the margins of paragraphs and headings to zero, while the p and heading presets keep theirs, so the result can be a little roomier than the web page.

Edit this page on GitHub
Last Updated: 11/17/26, 2:47 PM