npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wordup-md/nuxt-layer-shadcn-unocss

v0.3.3

Published

> A beautiful, accessible, and feature-rich Nuxt layer for building documentation sites and content-driven applications with shadcn-vue and UnoCSS.

Readme

@wordup-md/nuxt-layer-shadcn-unocss

A beautiful, accessible, and feature-rich Nuxt layer for building documentation sites and content-driven applications with shadcn-vue and UnoCSS.

npm version License: MIT

Fork of shadcn-docs-nuxt at v0.8.13
git diff --name-status 54b80e2e96bbc7249170150fb72e20078629a170

✨ Features

  • 🎨 shadcn-vue Components - Beautiful, accessible UI components built with Radix Vue
  • UnoCSS - Utility-first CSS framework with instant on-demand compilation
  • 📝 Nuxt Content - File-based CMS with MDC (Markdown Components) support
  • 🌍 i18n Ready - Built-in internationalization with @nuxtjs/i18n
  • 🎭 Color Mode - Dark/light mode support with @nuxtjs/color-mode
  • Accessibility - WCAG compliant components and utilities
  • 🔍 Search - Full-text search powered by Nuxt Content
  • 📱 Responsive - Mobile-first design with UnoCSS utilities
  • 🎯 TypeScript - Full TypeScript support with auto-imports
  • 🚀 Performance - Optimized for SSR, code-splitting, and fast load times

📦 Installation

Quick Start

  1. Create a new Nuxt project (if you don't have one):
npx nuxi@latest init my-docs
cd my-docs
  1. Install the layer:
pnpm add @wordup-md/nuxt-layer-shadcn-unocss
  1. Extend the layer in your nuxt.config.ts:
export default defineNuxtConfig({
  extends: '@wordup-md/nuxt-layer-shadcn-unocss'
})
  1. Start developing:
pnpm dev

🏗️ What's Included

Modules

  • @nuxt/content - Content management
  • @nuxt/image - Image optimization
  • @nuxt/icon - Icon component
  • @nuxtjs/color-mode - Color mode switching
  • @nuxtjs/i18n - Internationalization
  • @unocss/nuxt - UnoCSS integration
  • shadcn-nuxt - shadcn-vue components
  • @vueuse/nuxt - VueUse composables
  • @unpress/nuxt-module - Content editing capabilities

Components

UI Components (shadcn-vue)

  • Accordion, Alert, Avatar, Badge, Breadcrumb
  • Button, Card, Checkbox, Collapsible, Combobox
  • Command, Dialog, Dropdown Menu, Input, Label
  • Navigation Menu, Popover, Scroll Area, Separator
  • Sheet, Slider, Table, Tabs, Textarea, Toast

Content Components

  • Hero, Alert, Badge, Card, Code blocks
  • File Tree, Icon, Keyboard shortcuts
  • Menu, Steps, Tabs, and more

Layout Components

  • Header with navigation
  • Sidebar with tree navigation
  • Footer, Breadcrumb, Table of Contents
  • Search dialog, Language switcher
  • Dark mode toggle

Layouts

  • Default - Standard documentation layout with sidebar and TOC
  • Editorial - Content-rich layout for articles and marketing pages
  • Blank - Minimal layout for custom structures

Composables

  • useConfig() - Access site configuration
  • useBreadcrumb() - Breadcrumb navigation
  • useI18nDocs() - i18n utilities for docs
  • useScrollspy() - Scroll spy for TOC
  • useThemes() - Theme management
  • useToast() - Toast notifications
  • And more...

🛠️ Development

Setup

Install dependencies:

pnpm install

Working on the Layer

The layer is structured like a regular Nuxt project at the root of this repository. The .playground directory is used for local development and testing.

Start development server:

pnpm dev

This will start the playground at http://localhost:3000, which imports and uses the layer.

Development commands:

# Start dev server (playground)
pnpm dev

# Start dev server (root layer)
pnpm dev:root

# Build playground
pnpm build

# Generate static site
pnpm generate

# Preview production build
pnpm preview

# Lint code
pnpm lint

# Build content documentation JSON
pnpm build:json-doc

Manual Publishing

  1. Verify files field in package.json (if present) includes all necessary files
  2. Build content documentation (if needed):
pnpm build:json-doc
  1. Publish to npm:
npm publish --access public

After Publishing

Users can install and use your layer:

npm install @wordup-md/nuxt-layer-shadcn-unocss

Then extend it in their nuxt.config.ts:

export default defineNuxtConfig({
  extends: '@wordup-md/nuxt-layer-shadcn-unocss'
})

🎨 Customization

Overriding Components

You can override any component by creating a component with the same path in your project. For example, to override the Footer:

<!-- components/layout/Footer.vue -->
<template>
  <footer class="py-6">
    <div class="container">
      Your custom footer content
    </div>
  </footer>
</template>

Configuration

The layer uses Nuxt's configuration system. You can override module configurations in your nuxt.config.ts:

export default defineNuxtConfig({
  extends: '@wordup-md/nuxt-layer-shadcn-unocss',
  
  // Override i18n config
  i18n: {
    defaultLocale: 'fr',
    locales: ['fr', 'en']
  },
  
  // Override color mode
  colorMode: {
    preference: 'dark'
  }
})

📚 Documentation

🤝 Contributing

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

📄 License

This project is licensed under the MIT License.

🙏 Acknowledgments


Made with ❤️ by Emmanuel Salomon with WordUp.md