An open source library of React components and customizable CSS styles for Markdown and MDX.
Code blocks, callouts, math formulas, and polished typography included.
Prose UI converts your images to Next.js images, offering benefits like preventing layout shifts and enabling a blur effect during loading. The Frame component allows you to add a caption and align images and tables.
This stunning image is from NASA's Juno mission.

Achieve a harmonious rhythm and visually appealing design for all typographic elements. Prose UI ensures consistent, beautiful styles out of the box, letting you focus on building your site. Need a personal touch? Customize virtually every detail with CSS variables.
In October 2024, NASA’s Europa Clipper departed to assess Europa’s habitability, while Japan’s wooden LignoSat reached the ISS to test timber for space structures.
Space Exploration Highlights:
Rocket Launch Steps:
Highlight important information with beautifully styled callout components.
Use for general information or helpful insights.
Perfect for adding additional context or side notes.
Great for quick tips, best practices, or suggestions.
Use to caution users about potential issues.
Highlight critical errors or serious warnings.
Highlight navigation targets and key links with the Card component. Cards support icons, CTAs, arrows, and a horizontal layout for compact link rows.
Read the docs
Get started with installation, configuration, and component guides.
Guide readers through sequential actions with numbered badges or Lucide icons.
Plot a course
Power the boosters
Spin up thrusters until the orbit holds steady.
Break orbit
Punch it and ride the plume past the exosphere.
Prose UI brings Shiki-powered syntax highlighting to your code snippets, making them look clean and professional.
Code blocks also support line numbers, titles, and customizable styles with CSS variables.
Code groups display multiple code blocks as tabs, perfect for showing installation commands or the same code in different languages.
Use the same title with different languages to enable language switching.
Try changing the language or tab above - the code group below will sync automatically:
Prose UI supports inline and block math formulas using LaTeX syntax. Formulas are rendered using KaTeX, providing beautiful mathematical notation.
Use single dollar signs $...$ for inline math formulas that appear within a paragraph.
The quadratic formula is for solving equations.
The famous equation relates energy and mass. Another example: represents Newton's second law of motion.
Use double dollar signs $$...$$ on separate lines for block math formulas that appear as standalone, centered equations.
The quadratic formula:
Integral notation:
Prose UI fully supports GFM tables, making it easy to present structured data with clarity and style.
By wrapping your table in the Frame component, you can add captions and adjust alignment.
| Rocket | Height | Payload to LEO | Stages | Manufacturer |
|---|---|---|---|---|
| SpaceX Starship | 120 m | 150 t | 2 | SpaceX |
| NASA SLS Block 1 | 98 m | 95 t | 2 | NASA (Boeing as prime contractor) |
| Blue Origin New Glenn | 98 m | 45 t | 2 | Blue Origin |
Prose UI styling is structured around a set of design tokens that create a consistent visual language.
The tokens are exposed as CSS variables, enabling you to customize your MDX content's styling by overriding them.
| Token | Default | Description |
|---|---|---|
--p-font-size | 1rem | Core token for the base font size. |
--p-h2-letter-spacing | -0.035rem | Letter spacing of the h2 heading. |
--p-frame-caption-font-style | italic | Font style of the frame caption. |
Created by Valdemaras, designed by Domas. Source code available on GitHub.