mdx-next15-react19 Tailwind Templates

Mdx Next15 React19

A fast, file-based blog platform using MDX, Next.js 15 App Router, React 19 Server Components, and Tailwind CSS.

๐Ÿ“ Next.js 15 MDX Blog

A fast, modern, and accessible blog platform built with:

  • Next.js 15 App Router
  • MDX-based content authoring
  • React 19 with Server Components (RSC)
  • Tailwind CSS for styling
  • File-based content system in /content/posts

GitHub repo

Deployed app


โœจ Features

  • ๐Ÿ“„ MDX-powered posts โ€“ write interactive markdown with React components
  • ๐Ÿ“ฆ App Router support โ€“ modern routing, layouts, and loading patterns
  • ๐Ÿงฑ Custom useMDXComponents โ€“ style your headings, paragraphs, and code blocks consistently
  • ๐Ÿ’ก Async params and metadata parsing โ€“ compatible with latest Next.js 15 behavior
  • ๐ŸŒ“ Dark mode friendly โ€“ via dark:prose-invert styling
  • ๐Ÿ“ File-based content โ€“ add .mdx files to content/posts to create pages
  • โœ… Error handling โ€“ 404s, missing metadata, and broken posts are gracefully handled

๐Ÿ“‚ Project Structure

/app
  /blog
    [slug]/page.tsx      # Dynamic route for individual posts
    not-found.tsx        # Custom 404 page
    page.tsx             # Blog index (blog roll)
  layout.tsx             # Shared layout
/content
  /posts                 # Your MDX files live here
/lib
  /actions/get-posts.ts  # Reads + parses metadata from MDX files
/app/_actions/mdx.ts     # Core MDX file logic

๐Ÿ›  How to Add a New Post

  1. Create a file in content/posts/ with a .mdx extension.
  2. At the top, export your metadata:
export const metadata = {
  title: "Your Post Title",
  publishDate: "2025-04-14",
  description: "A short summary of the post.",
};
  1. Write your content using markdown and React components!

๐Ÿงช Development

pnpm install       # or yarn / npm
pnpm dev           # run locally at http://localhost:3000

๐Ÿ“ฆ Tech Stack


โœ… Status

๐Ÿ’ฅ Actively built โ€” focusing on performance, authoring experience, and stability for production deployment.


๐Ÿง  Credits

Built with โค๏ธ by O. Wolfson with significant help from ChatGPT Code Copilot

Top categories

Loading Svelte Themes