theme-management-setup

Install and configure the @kilivi-dev/payloadcms-theme-management plugin in Payload CMS v3 with Next.js App Router.

9|1|Updated Oct 5, 2025
One-click install
npx skills add https://github.com/vitakili/payload-plugins --skill theme-management-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: theme-management-setup
Source: https://github.com/vitakili/payload-plugins/tree/main/packages/theme-management/.claude/skills/theme-management-setup
Command: npx skills add https://github.com/vitakili/payload-plugins --skill theme-management-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a guided setup to install, register and wire up the @kilivi-dev/payloadcms-theme-management plugin in Payload v3 + Next.js App Router projects, enabling consistent theming with collection-based or standalone settings, live previews, cache revalidation, and front-end rendering of the theme.

Core Features & Use Cases

  • Install, register and wire the plugin to add an Appearance/Theme configuration surface in Payload v3 projects, including options for targetCollection, useStandaloneCollection, and custom fields.
  • Enable Native Live Preview and SSR theme injection so the chosen theme renders consistently across server and client routes with proper CSS variables.
  • Use cases include configuring a site-wide or per-collection theme, debugging when theme changes do not reflect in the front end, and validating live preview behavior during development.

Quick Start

Install the plugin and wire up configuration in your Payload v3 + Next.js app.

Frequently Asked Questions about theme-management-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure theme management in Payload CMS v3 with Next.js App Router?

To configure theme management in Payload CMS v3, install and register the @kilivi-dev/payloadcms-theme-management plugin, then wire up targetCollection or useStandaloneCollection, live preview, cache revalidation, and server-side theme injection across your Next.js app routes.

Why is my configured Payload CMS theme not showing on the front-end?

Your Payload CMS theme may not show on the front-end due to missing server-side theme injection or cache revalidation wiring. Debug by ensuring the theme management plugin properly resolves and injects CSS variables across your Next.js App Router server and client routes.

Can I use live preview for frontend theming in Payload v3?

Yes, you can enable native live preview for frontend theming in Payload v3 by configuring the theme management plugin's livePreview option, allowing chosen themes to render consistently during development and validating theme changes in real time.

What's the difference between targetCollection and useStandaloneCollection for Payload theming?

TargetCollection adds an Appearance/Theme tab to an existing Payload CMS collection, while useStandaloneCollection creates a separate global settings collection for site-wide theming. Both approaches allow custom fields and front-end theme rendering with CSS variables.

Does the Payload CMS theme management plugin support cache revalidation?

Yes, the Payload CMS theme management plugin supports cache revalidation. It wires up cache revalidation alongside live preview and server-side theme injection to ensure resolved theme changes reflect immediately on the Next.js front-end without stale cached content.

How do I render resolved theme CSS variables on the server in Next.js App Router?

To render resolved theme CSS variables on the server in Next.js App Router, wire up server-side theme injection through the theme management plugin, ensuring the chosen Payload CMS theme is resolved and applied consistently across both server and client routes.