A clean ✒️ — performant 🚀 — and monochromatic 🎨 Nuxt layer for creating beautiful documentations.
- ✨ Beautiful Design — Pastel-themed, monochromatic aesthetic that's easy on the eyes
- 🚀 Performance First — Built with modern web standards and optimized for speed
- 📱 Responsive Layout — Looks great on desktop, tablet, and mobile devices
- 🎨 Customizable — Easy theming through app.config.ts
- 📖 Content-Driven — Powered by @nuxt/content with MDC support
- 🌙 Dark Mode — Built-in theme switching with system preference detection
- 🔍 SEO Optimized — Meta tags, OpenGraph images, and semantic HTML
- 📋 Table of Contents — Auto-generated navigation for long pages
- 🎯 Zero Config — Works out of the box with sensible defaults
- Add it to your
extendsinnuxt.config.ts:
export default defineNuxtConfig({
extends: [["github:oyedejioyewole/nuxt-pastel-docs", { install: true }]],
});- Create a
content.config.tsfile:
import { defineContentConfig, defineCollection, z } from "@nuxt/content";
export default defineContentConfig({
collections: {
content: defineCollection({
type: "page",
source: "**/*.md",
schema: z.object({
displayToc: z.boolean().default(false),
}),
}),
},
});- Add your markdown files in the
contentdirectory. Example:
---
displayToc: true
---
# A breathe of fresh air
Your content goes here ...That's it! ✨
Note: For a comprehensive guide, see the 📖 documentation
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Prepare Nuxt for development
pnpm dev:prepare
# Generate static site
pnpm generate
# Preview generated site
pnpm preview
# Lint and fix code
pnpm lintContributions are welcome! Please feel free to submit a Pull Request.
Built with:
Made with ❤️ by Oyedeji Oyewole