Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexcarpenter/nextjs-mdx-blog-theme
Starter template for a personal website blog, built with Next.js, MDX, and Tailwind CSS.
https://github.com/alexcarpenter/nextjs-mdx-blog-theme
blog next-mdx-remote nextjs tailwindcss
Last synced: 3 months ago
JSON representation
Starter template for a personal website blog, built with Next.js, MDX, and Tailwind CSS.
- Host: GitHub
- URL: https://github.com/alexcarpenter/nextjs-mdx-blog-theme
- Owner: alexcarpenter
- Created: 2022-01-15T14:45:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-25T15:27:23.000Z (over 1 year ago)
- Last Synced: 2024-10-15T07:12:42.734Z (3 months ago)
- Topics: blog, next-mdx-remote, nextjs, tailwindcss
- Language: TypeScript
- Homepage: https://nextjs-mdx-blog-theme.vercel.app
- Size: 1.05 MB
- Stars: 79
- Watchers: 3
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Falexcarpenter%2Fnextjs-mdx-blog-theme)
# nextjs-mdx-blog-theme
- **View**: [demo site](https://nextjs-mdx-blog-theme.vercel.app/)
- **Framework**: [Next.js](https://nextjs.org/)
- **Deployment**: [Vercel](https://vercel.com)
- **Content**: [MDX](https://github.com/mdx-js/mdx)
- **Styling**: [Tailwind CSS](https://tailwindcss.com/)## Running Locally
```bash
$ git clone https://github.com/alexcarpenter/nextjs-mdx-blog-theme
$ cd nextjs-mdx-blog-theme
$ npm install
$ npm run dev:watch
```## Styling
To organize Tailwind CSS light and dark styles on elements, we make use of `cx` utility as an array. The first string contains the base styles, the second string is for light mode styles, and lastly the third string is for dark mode styling.
```jsx
import { cx } from '@/lib/utils'
```