Why the live preview looks unstyled
Mintlify scans each page for Tailwind classes and generates the matching CSS during a site build. Builds run for production deployments, preview deployments, and local previews withmint dev. The live preview skips the build step so that it can render instantly, so it never generates the CSS for your Tailwind classes.
If you inspect an element in the live preview, the Tailwind classes appear in the HTML with a mint- prefix, but no CSS rules match them.
See your styles rendered accurately
To check how a Tailwind-styled page renders, use a preview that includes a build:- Run
mint devin your local repository. - Save your changes to a branch and open a pull request. Mintlify builds a preview deployment with a shareable URL.
- Publish your changes and check your live site.
Custom mode pages have no default typography
Separately from the live preview behavior, custom mode is a blank canvas. Mintlify does not apply its default typography to custom mode pages, so native HTML elements such as<h2> and <p> render with browser default styles on every preview and deployment. Style them explicitly:
Example styled heading