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

@farming-labs/theme

v0.2.56

Published

Theme package for @farming-labs/docs — layout, provider, MDX components, and styles

Readme

@farming-labs/theme

The React UI layer and shared theme preset package for @farming-labs/docs.

It provides the docs shell, root providers, MDX components, search and AI interfaces, theme factories, and the CSS used across every Farming Labs framework integration.

Where it fits

  • Next.js and TanStack Start: supplies the React layout, providers, components, and CSS
  • SvelteKit, Astro, and Nuxt: supplies shared preset CSS while the matching *-theme package supplies framework-native UI components
  • @farming-labs/docs: supplies the shared configuration, content features, and CLI

Install

For Next.js:

npm install @farming-labs/docs @farming-labs/next @farming-labs/theme

For TanStack Start:

npm install @farming-labs/docs @farming-labs/tanstack-start @farming-labs/theme

The setup CLI installs the correct package set automatically:

npx @farming-labs/docs@latest init

Choose a theme

Use a theme factory in docs.config.ts:

import { defineDocs } from "@farming-labs/docs";
import { fumadocs } from "@farming-labs/theme";

export default defineDocs({
  entry: "docs",
  theme: fumadocs(),
});

Then import its CSS. The default fumadocs() preset uses the default/css entrypoint:

@import "tailwindcss";
@import "@farming-labs/theme/default/css";

Other presets use matching factory and CSS subpaths:

import { hardline } from "@farming-labs/theme/hardline";
@import "@farming-labs/theme/hardline/css";

Available preset subpaths include default, darksharp, pixel-border, colorful, shiny, darkbold, greentree, hardline, concrete, command-grid, ledger, and threadline.

Main entrypoints

| Entrypoint | Purpose | | --- | --- | | @farming-labs/theme | Default theme, RootProvider, layout helpers, and React UI | | @farming-labs/theme/<preset> | Theme factory for a preset | | @farming-labs/theme/<preset>/css | Complete CSS for a preset | | @farming-labs/theme/mdx | Farming Labs MDX component map | | @farming-labs/theme/search | Legacy createDocsSearchAPI() compatibility helper | | @farming-labs/theme/ai | AI search and chat UI | | @farming-labs/theme/tanstack | TanStack Start provider and layout integration |

Runtime requirements

The package currently declares Next.js 16+, React 19.2+, and React DOM 19.2+ as peers because its root entrypoints provide the React and Next.js UI. SvelteKit, Astro, and Nuxt integrations consume the shared CSS subpaths while rendering UI through their framework-native theme packages.

Learn more

License

MIT