@farming-labs/nuxt-theme
@farming-labs/nuxt-theme
The Vue and Nuxt UI layer and theme preset package for
@farming-labs/docs.
It renders the docs shell, page content, table of contents, breadcrumbs, search, AI chat, API
reference switcher, and theme controls. Content loading and Nitro handlers live in
@farming-labs/nuxt.
Install
npm install @farming-labs/docs @farming-labs/nuxt @farming-labs/nuxt-theme @farming-labs/theme
The CLI can scaffold the complete Nuxt integration:
npx @farming-labs/docs@latest init
Configure the theme
// docs.config.ts
import { defineDocs } from "@farming-labs/docs";
import { fumadocs } from "@farming-labs/nuxt-theme";
export default defineDocs({
entry: "docs",
contentDir: "docs",
theme: fumadocs(),
nav: { title: "Docs", url: "/docs" },
});
Add the matching shared CSS in nuxt.config.ts:
export default defineNuxtConfig({
css: ["@farming-labs/theme/default/css"],
});
Render the docs UI
<script setup lang="ts">
import { DocsContent, DocsLayout } from "@farming-labs/nuxt-theme";
import config from "~/docs.config";
const { data } = await useFetch("/api/docs", {
query: { pathname: useRoute().path },
});
</script>
<template>
<DocsLayout :tree="data.tree" :config="config">
<DocsContent :data="data" :config="config" />
</DocsLayout>
</template>
Main exports
DocsLayout,DocsContent, andDocsPageTableOfContents,Breadcrumb, andThemeToggleSearchDialog,FloatingAIChat, andApiReferenceSwitcher- Theme preset factories
Preset subpaths are fumadocs, pixel-border, darksharp, colorful, greentree, hardline,
concrete, command-grid, and ledger. The fumadocs preset uses
@farming-labs/theme/default/css; the other presets use the matching
@farming-labs/theme/<preset>/css entrypoint.
Learn more
License
MIT
Related Packages
Nuxt adapter for @farming-labs/docs — content loading and navigation utilities
Nuxt layer for UXFront documentation sites: Docus, plus a framework switcher tha...
Version History
| Version | Released | License |
|---|---|---|
| 0.2.125 | MIT | |
| 0.2.124 | MIT | |
| 0.2.123 | MIT | |
| 0.2.122 | MIT | |
| 0.2.121 | MIT | |
| 0.2.120 | MIT | |
| 0.2.119 | MIT | |
| 0.2.118 | MIT | |
| 0.2.117 | MIT | |
| 0.2.116 | MIT | |
| 0.2.115 | MIT | |
| 0.2.114 | MIT | |
| 0.2.113 | MIT | |
| 0.2.112 | MIT | |
| 0.2.111 | MIT | |
| 0.2.110 | MIT | |
| 0.2.109 | MIT | |
| 0.2.108 | MIT | |
| 0.2.107 | MIT | |
| 0.2.106 | MIT | |
| 0.2.105 | MIT | |
| 0.2.104 | MIT | |
| 0.2.103 | MIT | |
| 0.2.102 | MIT | |
| 0.2.101 | MIT | |
| 0.2.99 | MIT | |
| 0.2.98 | MIT | |
| 0.2.97 | MIT | |
| 0.2.96 | MIT | |
| 0.2.95 | MIT |
Showing the latest 30 of 313. See every release on npm
Pre-releases (28)
| Version | Released | License |
|---|---|---|
| 0.1.1-beta.4 | MIT | |
| 0.1.1-beta.2 | MIT | |
| 0.1.1-beta.1 | MIT | |
| 0.0.33-beta.1 | MIT | |
| 0.0.9-beta.1 | MIT | |
| 0.0.5-beta.1 | MIT | |
| 0.0.3-beta.9 | MIT | |
| 0.0.3-beta.8 | MIT | |
| 0.0.3-beta.7 | MIT | |
| 0.0.3-beta.6 | MIT | |
| 0.0.3-beta.5 | MIT | |
| 0.0.3-beta.4 | MIT | |
| 0.0.3-beta.3 | MIT | |
| 0.0.3-beta.2 | MIT | |
| 0.0.3-beta.1 | MIT | |
| 0.0.2-beta.30 | MIT | |
| 0.0.2-beta.29 | MIT | |
| 0.0.2-beta.28 | MIT | |
| 0.0.2-beta.27 | MIT | |
| 0.0.2-beta.26 | MIT | |
| 0.0.2-beta.24 | MIT | |
| 0.0.2-beta.23 | MIT | |
| 0.0.2-beta.22 | MIT | |
| 0.0.2-beta.21 | MIT | |
| 0.0.2-beta.20 | MIT | |
| 0.0.2-beta.19 | MIT | |
| 0.0.2-beta.18 | MIT | |
| 0.0.2-beta.17 | MIT |