GithubHelp home page GithubHelp logo

brijr / mdx-starter Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 240 KB

MDX Next.js Starter built with brijr/craft, and shadcn/ui

Home Page: https://mdx.bridger.to

License: MIT License

CSS 7.43% TypeScript 78.23% JavaScript 2.03% MDX 12.32%

mdx-starter's Introduction

Next.js and MDX Starter

The fastest way to ship a website ⚡︎

Deploy with Vercel


Learn more about MDX and Markdown.

How MDX works with Next.js.


This is a starter template for building websites using Next.js and MDX. It provides a fast and efficient way to create content-driven websites with the power of React components and the simplicity of Markdown.

Features

  • Next.js 14 with App Router
  • MDX support for content creation
  • Tailwind CSS for styling
  • Dark mode support with next-themes
  • Typography plugin for Tailwind CSS
  • Customizable components
  • Ready-to-use layout components

Quick Start

  1. Clone the repository:
git clone https://github.com/brijr/mdx-starter.git
cd mdx-starter
  1. Install dependencies:
pnpm install
  1. Run the development server:
pnpm run dev
  1. Open http://localhost:3000 in your browser to see the result.

Project Structure

  • app/: Contains the main application code
  • components/: Reusable React components
  • lib/: Utility functions and helpers
  • public/: Static assets
  • styles/: Global styles and Tailwind CSS configuration

Writing Content

Create your content using MDX files in the app directory. You can use a mix of Markdown and React components in your MDX files.

Example:

import { ThemeToggle } from "@/components/theme/theme-toggle";

# Hello World!

This is the [MDX Starter Template](https://github.com/brijr/mdx-starter). It is built with [brijr/craft](https://github.com/brijr/craft) and [shadcn/ui](https://ui.shadcn.com). Below you will find an example of the markdown home page -> `/page.tsx`.

<a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fbrijr%2Fmdx-starter&project-name=mdx-starter&repository-name=mdx-starter&demo-url=https%3A%2F%2Fmdx.bridger.to">
  <img src="https://vercel.com/button" alt="Deploy with Vercel" />
</a>

Customization

Theming

The project uses next-themes for dark mode support. You can customize the theme in the tailwind.config.ts file.

Typography

The Tailwind CSS typography plugin is included for consistent and beautiful typography. Customize it in the tailwind.config.ts file.

Components

Custom components are available in the components directory. You can use these in your MDX files or create new ones as needed.

Deployment

This project is ready to be deployed on Vercel. Click the button below to deploy:

Deploy with Vercel

Learn More

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

mdx-starter's People

Contributors

brijr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.