vitakili

theme management

by vitakili
payload-plugins
Admin customization
v3
^3.0.0
MIT

Overview

Summary generated from the README

Adds an Appearance Settings tab to an existing collection or a standalone global so editors can restyle a site from the Payload admin. It ships 60+ colour themes and 17 style presets, and renders theme CSS variables server-side in a Next.js layout. It requires Payload 3, Next.js 14 to 16, React 18.3 or newer and lucide-react.

Features

  • 60+ colour theme presets and 17 style presets combinable with any colour theme
  • Palette generator from a brand colour or uploaded logo, with undo and keep-my locks
  • Live WCAG contrast audit with one-click fixes for failing colour pairs
  • Export to W3C design tokens, Tailwind v4 theme and Tailwind v3 config; import custom presets as JSON
  • Server-side theme injection with self-hosted Google fonts and cache revalidation endpoint
  • English and Czech admin translations, extendable through an i18n option

Use cases

  • Let non-technical site owners change colours, fonts and component styles without breaking the design
  • Apply per-tenant themes in a multi-tenant Next.js site with cache revalidation
  • Check theme colour accessibility and export design tokens to Tailwind

From the author

Theme configuration plugin for Payload CMS v3 with 60+ professional themes and standalone collection support

Installation

npm i @kilivi/payloadcms-theme-management

9

Stars

1

Forks

0

Open Issues

3 weeks ago

Last Updated

137

Weekly Downloads

v2.4.0

npm Version

2.3 MB

Unpacked Size

3

Dependencies

Repository stars

90 since Sep 7

Show data
Repository stars by day (UTC)
DateStars
Dec 6, 20269
Dec 5, 20269
Dec 4, 20269
Dec 3, 20269
Dec 2, 20269
Dec 1, 20269
Nov 30, 20269
Nov 29, 20269
Nov 28, 20269
Nov 27, 20269
Nov 26, 20269
Nov 25, 20269
Nov 24, 20269
Nov 23, 20269
Nov 22, 20269
Nov 21, 20269
Nov 20, 20269
Nov 19, 20269
Nov 18, 20269
Nov 17, 20269
Nov 16, 20269
Nov 15, 20269
Nov 14, 20269
Nov 13, 20269
Nov 12, 20269
Nov 11, 20269
Nov 10, 20269
Nov 9, 20269
Nov 8, 20269
Nov 7, 20269
Nov 6, 20269
Nov 5, 20269
Nov 4, 20269
Nov 3, 20269
Nov 2, 20269
Nov 1, 20269
Oct 31, 20269
Oct 30, 20269
Oct 29, 20269
Oct 28, 20269
Oct 27, 20269
Oct 26, 20269
Oct 25, 20269
Oct 24, 20269
Oct 23, 20269
Oct 22, 20269
Oct 21, 20269
Oct 20, 20269
Oct 19, 20269
Oct 18, 20269
Oct 17, 20269
Oct 16, 20269
Oct 15, 20269
Oct 14, 20269
Oct 13, 20269
Oct 12, 20269
Oct 11, 20269
Oct 10, 20269
Oct 9, 20269
Oct 8, 20269
Oct 7, 20269
Oct 6, 20269
Oct 5, 20269
Oct 4, 20269
Oct 3, 20269
Oct 2, 20269
Oct 1, 20269
Sep 30, 20269
Sep 29, 20269
Sep 28, 20269
Sep 27, 20269
Sep 26, 20269
Sep 25, 20269
Sep 24, 20269
Sep 23, 20269
Sep 22, 20269
Sep 21, 20269
Sep 20, 20269
Sep 19, 20269
Sep 18, 20269
Sep 17, 20269
Sep 16, 20269
Sep 15, 20269
Sep 14, 20269
Sep 13, 20269
Sep 12, 20269
Sep 11, 20269
Sep 10, 20269
Sep 9, 20269
Sep 8, 20269
Sep 7, 20269

Shared by 3 plugins in vitakili/payload-plugins.

npm weekly downloads

137+56 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 2026137
Dec 5, 2026145
Dec 4, 2026145
Dec 3, 2026227
Dec 2, 2026226
Dec 1, 2026216
Nov 30, 2026216
Nov 29, 2026230
Nov 28, 2026224
Nov 27, 2026218
Nov 26, 2026151
Nov 25, 2026158
Nov 24, 2026124
Nov 23, 2026129
Nov 22, 2026129
Nov 21, 2026172
Nov 20, 2026174
Nov 19, 2026176
Nov 18, 2026183
Nov 17, 2026162
Nov 16, 2026163
Nov 15, 2026164
Nov 14, 2026138
Nov 13, 2026136
Nov 12, 2026136
Nov 11, 2026230
Nov 10, 2026315
Nov 9, 2026329
Nov 8, 2026330
Nov 7, 2026345
Nov 6, 2026360
Nov 5, 2026514
Nov 4, 2026423
Nov 3, 2026511
Nov 2, 2026511
Nov 1, 2026494
Oct 31, 2026552
Oct 30, 2026687
Oct 29, 2026509
Oct 28, 2026484
Oct 27, 2026311
Oct 26, 2026294
Oct 25, 2026289
Oct 24, 2026238
Oct 23, 202673
Oct 22, 202677
Oct 21, 202699
Oct 20, 202695
Oct 19, 202691
Oct 18, 202696
Oct 17, 202658
Oct 16, 202674
Oct 15, 202674
Oct 14, 2026130
Oct 13, 2026128
Oct 12, 2026127
Oct 11, 2026147
Oct 10, 2026153
Oct 9, 2026149
Oct 8, 2026163
Oct 7, 202692
Oct 6, 2026101
Oct 5, 2026111
Oct 4, 2026120
Oct 3, 2026248
Oct 2, 2026245
Oct 1, 2026231
Sep 30, 2026228
Sep 29, 2026217
Sep 28, 2026208
Sep 27, 2026176
Sep 26, 202636
Sep 25, 202630
Sep 24, 202628
Sep 23, 202628
Sep 22, 202630
Sep 21, 202699
Sep 20, 202698
Sep 19, 2026104
Sep 18, 2026103
Sep 17, 2026113
Sep 16, 2026118
Sep 15, 2026115
Sep 14, 202648
Sep 13, 202648
Sep 12, 202679
Sep 11, 202690
Sep 10, 202681
Sep 9, 202683
Sep 8, 202681
Sep 7, 202681

Each point is npm's rolling 7-day download count.

Health Score

73/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1070225561-theme-management.svg)](https://payloaddirectory.dev/plugins/1070225561-theme-management)
HTML
<a href="https://payloaddirectory.dev/plugins/1070225561-theme-management"><img src="https://payloaddirectory.dev/badge/1070225561-theme-management.svg" alt="Payload Directory"></a>
Updated Nov 14, 2026Created Oct 5, 2025Published Nov 2, 2026

README

@kilivi/payloadcms-theme-management

Theme management for Payload CMS v3: 60+ presets, a live preview inside the admin, an accessibility audit, and theme CSS variables that are rendered server-side (SSR-ready) for your Next.js front-end. It is built so that a non-technical site owner can restyle a site from the Payload admin without breaking it.

Repository: github.com/vitakili/payload-plugins → packages/theme-management · Changelog · Issues

Package name: the plugin is published as @kilivi/payloadcms-theme-management. Versions 1.x–2.1.x were also published under @kilivi-dev/payloadcms-theme-management, which is no longer updated. See Migrating from @kilivi-dev.

Features

  • Theme presets: 60+ colour themes (including tweakcn and OKLCH styles) plus visual style presets that set effects, component styles, radius and typography.
  • "Keep my" locks: lock Colours, Fonts or Style so that picking a theme, applying a style or generating a palette leaves those parts untouched.
  • One-step undo: every bulk change (theme, style, generated palette) can be undone from an Applied: … · Undo bar.
  • One live preview: colours, fonts and component styles in a single site mock-up with device widths and light/dark mode. On wide admin screens it stays in view in a column on the right while you edit.
  • Palette generator: a full light and dark palette from one brand colour or an uploaded logo.
  • WCAG audit: a live contrast check of the palette in both modes, with a one-click Fix for each failing pair. Paired colour fields (for example primary and primaryForeground) also show their contrast right in the field.
  • Export and import: W3C design tokens (JSON), Tailwind v4 @theme and Tailwind v3 config. Custom presets can be imported as JSON and appear in the theme picker straight away.
  • Front-end rendering: SSR theme injection (ServerThemeInjector), <meta name="theme-color">, cache revalidation and Payload Live Preview.
  • Visitor components: ColorModeToggle (light/dark/auto) and ThemeSwitcher.
  • Native to Payload: uses Payload's theme tokens, so it works in the dark admin, has keyboard-accessible pickers and respects prefers-reduced-motion. It ships with English and Czech admin translations, and you can add more.

Installation

pnpm add @kilivi/payloadcms-theme-management
# or
npm i @kilivi/payloadcms-theme-management
# or
yarn add @kilivi/payloadcms-theme-management

Peer dependencies:

PackageVersions
payload, @payloadcms/ui^3
next14 / 15 / 16
react18.3+ or 19
lucide-react>=0.400

Quick start

1) Register the plugin

A) As a tab in an existing collection (default)
import { themeManagementPlugin } from '@kilivi/payloadcms-theme-management'
import { buildConfig } from 'payload'

export default buildConfig({
  collections: [
    {
      slug: 'site-settings',
      fields: [{ name: 'siteName', type: 'text' }],
    },
  ],
  plugins: [
    themeManagementPlugin({
      targetCollection: 'site-settings',
      defaultTheme: 'cool',
      livePreview: true,
    }),
  ],
})
B) As a standalone appearance global
import { themeManagementPlugin } from '@kilivi/payloadcms-theme-management'
import { buildConfig } from 'payload'

export default buildConfig({
  plugins: [
    themeManagementPlugin({
      useStandaloneCollection: true,
      standaloneCollectionSlug: 'appearance-settings',
      standaloneCollectionLabel: 'Appearance Settings',
      defaultTheme: 'cool',
      livePreview: true,
    }),
  ],
})

After adding the plugin, regenerate the admin import map:

pnpm payload generate:importmap

2) Inject the theme in your Next.js layout

import { ServerThemeInjector } from '@kilivi/payloadcms-theme-management/server'
import configPromise from '@payload-config'
import { getPayload } from 'payload'

export default async function RootLayout({ children }: { children: React.ReactNode }) {
  const payload = await getPayload({ config: configPromise })

  const appearance = await payload.findGlobal({
    slug: 'appearance-settings',
  })

  return (
    <html lang="en">
      <head>
        <ServerThemeInjector themeConfiguration={appearance?.themeConfiguration} />
      </head>
      <body>{children}</body>
    </html>
  )
}

That is all an app needs — fonts included. ServerThemeInjector loads the theme's fonts (the body and heading font, whether a preset or the editor chose them) with no setup and no build step:

  • the @font-face rules are inlined into the page, trimmed to Latin + Latin Extended (~1–4 KiB instead of Google's ~20 KiB), so there is no stylesheet request for the first paint to wait on;
  • the body font's file is preloaded;
  • the files are served from your own domain by /api/theme-fonts/file (fetched once from Google on the server, cached on disk, immutable for a year) — visitors never contact Google (GDPR-friendly);
  • nothing runs at build time, so the fonts cost your build no memory.

Options: fontSubsets (e.g. add 'cyrillic'), preloadFonts={false}, fontLoading ('self-hosted' default, 'google' for the Google CDN, 'none' when you load faces yourself).

Fonts outside the theme

A page with its own typography (a menu, a landing page) loads any catalog font the same way:

import { ThemeFontFaces } from '@kilivi/payloadcms-theme-management/server'
import { fontFamilyFor } from '@kilivi/payloadcms-theme-management'

<ThemeFontFaces fonts={['Outfit']} />
<h1 style={{ fontFamily: fontFamilyFor('Outfit') }}>Menu</h1>

Optional: fonts via next/font

If you prefer build-time fonts, @kilivi/payloadcms-theme-management/next-fonts declares every catalog font with next/font/google (preload: false). This downloads fonts during next build and adds to its time and memory:

import { themeFontVariables } from '@kilivi/payloadcms-theme-management/next-fonts'

<html lang="en" className={themeFontVariables}>
  <head>
    <ServerThemeInjector themeConfiguration={appearance?.themeConfiguration} fontLoading="none" />
  </head>

If your Next.js setup does not compile packages from node_modules, add '@kilivi/payloadcms-theme-management' to transpilePackages in next.config. Pass fontLoading="none" to ThemeLivePreviewSync as well if you use it.

To host only some catalog fonts yourself, declare them with the catalog's CSS variable (variable: '--font-lora' for Lora) and name them in selfHostedFonts={['Lora']} (also on ThemeLivePreviewSync); the plugin loads the rest.

The Appearance Settings tab

The tab is ordered as a presets first, fine-tuning second workflow:

  1. Theme selection:
    • Keep my: Colours · Fonts · Style locks
    • the palette generator
    • the collapsible theme preset list
  2. Live preview: with Payload's native Live Preview configured (livePreview option), the real site is the preview: the tab shows an Open Live Preview button instead of a mock, and nothing while the panel is open, so the fields get the full width. Without it, one mock preview covers colours, fonts and component styles. Once the settings group is at least 960 px wide (a container query, not the viewport width), it moves into a sticky right-hand column that stays visible while you edit anything below it.
  3. Style preset: 17 complete looks (Swiss, Editorial, Luxury, Art Deco, Tech, Poster, Brutalism, Retro, Glass …). Each sets fonts, text size, heading weight and tracking, radius, spacing, effects and every component style — but never colours. Combine any style with any colour theme.
  4. Typography: body and heading font (30 curated Google fonts with Czech diacritics, grouped by category), base size, line height, heading weight and heading letter spacing.
  5. Border radius and spacing scale.
  6. Fine-tuning sections: these are collapsed by default.
    • Visual effects
    • Component styles
    • Colour mode (all light and dark tokens, the WCAG audit and export)
    • Custom theme presets (JSON import, for developers)
    • Advanced (animation level, custom CSS)

The generated CSS applies the chosen fonts to body and headings with zero-specificity :where() rules — only once the editor has picked typography, so untouched sites render as before and your own CSS always wins.

Locks and undo

Each bulk action honours the locks:

ActionColoursFontsStyle (effects, components, radius)
Pick a theme presetwrites colourspins the current preset font instead of switching itwrites the theme's visual effects
Pick a style presetneverwrites the style's typographywrites effects, components, radius, motion and spacing
Generate a palettewrites colours (disabled while locked)nevernever
  • Locks last for the current editing session. They reset on reload and nothing extra is stored in your documents.
  • After each bulk action an Applied: … · Undo bar appears for 10 seconds. It pauses while you hover it or it has focus.
  • Undo restores exactly the fields that the action changed.

Live Preview

Payload's Live Preview points at your client pages by slug:

  • the home slug resolves to /
  • any other slug resolves to /{slug}
  • a tenant query is appended when one is available
themeManagementPlugin({
  livePreview: true,
})

Advanced setup (with the injected endpoint)

themeManagementPlugin({
  livePreview: {
    enabled: true,
    injectRoute: true,
    routePath: '/theme/preview',
    pageCollection: 'pages',
    pageSlug: 'home',
    fallbackToFirstPage: true,
    tenantField: 'tenant',
    tenantQueryParam: 'tenant',
    breakpoints: [
      { name: 'tablet', label: 'Tablet', width: 1024, height: 768 },
      { name: 'desktop', label: 'Desktop', width: 1440, height: 900 },
    ],
  },
})

With livePreview.injectRoute enabled, the plugin adds GET /api/theme/preview (or your custom routePath).

  • Query parameters:
    • pageSlug
    • previewSecret (or preview)
    • tenant
  • Secret: read from PREVIEW_SECRET or PAYLOAD_PREVIEW_SECRET.
  • Responses:
    • 307 redirects to the resolved client page
    • 401 means a secret is configured but is missing or wrong
/api/theme/preview?pageSlug=home&previewSecret=your-secret              → /
/api/theme/preview?pageSlug=home&tenant=acme&previewSecret=your-secret  → /?tenant=acme

Testing tip: preview is most useful when the previewed page uses many theme tokens: buttons, cards, banners, links and several heading levels. The repository's dev-local app includes pnpm seed:theme, which fills the home page with blocks like these.

Multi-tenant example

themeManagementPlugin({
  useStandaloneCollection: true,
  standaloneCollectionSlug: 'appearance-settings',
  livePreview: {
    enabled: true,
    injectRoute: true,
    routePath: '/theme/preview',
    pageCollection: 'pages',
    pageSlug: 'home',
    tenantField: 'tenant',
    tenantQueryParam: 'tenant',
  },
  cacheRevalidation: {
    enabled: true,
    injectRoute: true,
    routePath: '/theme/revalidate',
    secret: process.env.THEME_REVALIDATE_SECRET,
    tags: ['tenant:acme'],
    paths: ['/'],
  },
})

See MULTI_TENANT_GUIDE.md for shared vs per-tenant setups.

Cache revalidation

When useStandaloneCollection: true, the default cache tag is global_{standaloneCollectionSlug}. The plugin can inject POST /api/theme/revalidate:

themeManagementPlugin({
  useStandaloneCollection: true,
  cacheRevalidation: {
    enabled: true,
    injectRoute: true,
    routePath: '/theme/revalidate',
    secret: process.env.THEME_REVALIDATE_SECRET,
    tags: ['tenant:default'],
    paths: ['/'],
  },
})

Next.js server caching helper

import {
  createCachedThemeFetcher,
  ServerThemeInjector,
} from '@kilivi/payloadcms-theme-management/server'
import configPromise from '@payload-config'
import { getPayload } from 'payload'

const getCachedTheme = createCachedThemeFetcher({
  globalSlug: 'appearance-settings',
  revalidate: 3600,
  loadAppearanceSettings: async () => {
    const payload = await getPayload({ config: configPromise })
    return payload.findGlobal({ slug: 'appearance-settings' })
  },
})

export default async function RootLayout({ children }: { children: React.ReactNode }) {
  const themeConfiguration = await getCachedTheme()

  return (
    <html lang="en">
      <head>
        <ServerThemeInjector themeConfiguration={themeConfiguration} />
      </head>
      <body>{children}</body>
    </html>
  )
}

Fetching the configuration

import { fetchThemeConfiguration } from '@kilivi/payloadcms-theme-management'

// Single tenant
const themeConfiguration = await fetchThemeConfiguration({
  useGlobal: true,
  collectionSlug: 'appearance-settings',
})

// Multi-tenant
const tenantThemeConfiguration = await fetchThemeConfiguration({
  useGlobal: true,
  collectionSlug: 'appearance-settings',
  tenantSlug: 'acme',
})

Plugin options

OptionTypeDefaultDescription
enabledbooleantrueEnables or disables the plugin
targetCollectionstring'site-settings'Collection slug for tab mode
useStandaloneCollectionbooleanfalseCreates a standalone global instead of injecting a tab
standaloneCollectionSlugstring'appearance-settings'Global slug in standalone mode
standaloneCollectionLabelstring | Record<string, string>translated labelLabel of the standalone global
themePresetsThemePreset[]built-in presetsCustom preset list
defaultThemestring'cool'Default preset name
includeColorModeTogglebooleantrueColour mode section (light/dark tokens, audit, export)
includeCustomCSSbooleantrueEnables the custom CSS field
enableAdvancedFeaturesbooleantrueAdvanced controls such as animation level
customThemeConfigurationFieldsField[]undefinedExtra fields appended inside the themeConfiguration group
customThemeConfigurationSectionsArray<{ label; fields; initCollapsed?; description? }>undefinedExtra collapsible sections inside the group
enableLoggingbooleanfalseLogs plugin actions
livePreviewboolean | ThemeManagementLivePreviewOptionstrueLive preview URL behaviour
cacheRevalidationboolean | ThemeManagementCacheRevalidationOptionson in standalone modeCache invalidation endpoint, tags and paths
i18nThemeManagementI18nOptionsundefinedExtend or override admin translations
includeBrandIdentitybooleanfalseReserved for future use

livePreview options

OptionTypeDefault
enabledbooleantrue
injectRoutebooleanfalse
routePathstring'/theme/preview'
pageCollectionstring'pages'
pageSlugstring'home'
fallbackToFirstPagebooleantrue
tenantFieldstring'tenant'
tenantQueryParamstring'tenant'
breakpointsArray<{ name; label; width; height }>undefined
url(args) => string | Promise<string>slug-based URL

cacheRevalidation options

OptionTypeDefault
enabledbooleantrue in standalone mode, otherwise false
injectRoutebooleantrue
routePathstring'/theme/revalidate'
secretstringundefined
tagsstring[][global_{slug}]
pathsstring[][]

Internationalization

The plugin ships with English (en) and Czech (cs) admin translations. It registers them in Payload's native config.i18n under the theme-management namespace.

  • Every admin string follows the active admin language, including field labels, the pickers, the audit, the import drawer and the font guides.
  • Localised label objects ({ en, cs, … }) resolve to the admin language first, then to English.

To add languages or override strings, use the i18n option. It is deep-merged over the built-in strings, and missing keys fall back to English.

import { de } from '@payloadcms/translations/languages/de'

themeManagementPlugin({
  i18n: {
    translations: {
      de: { tabLabel: 'Darstellung', ui: { lightMode: 'Heller Modus' } },
      en: { tabLabel: 'Theme' }, // override a built-in string
    },
    supportedLanguages: { de }, // optional: register a new admin language
  },
})

Full guide: docs/TRANSLATIONS.md

Appearance controls

SectionAdmin groupFields
Visual effectsthemeConfiguration.visualEffectseffectStyle, shadowIntensity, backdropBlur, borderStyle, borderWidth, glassOpacity
Component stylesthemeConfiguration.componentStylesbuttonVariant, buttonSize, cardStyle, cardHoverEffect, navbarStyle, footerStyle, imageStyle, linkStyle, enableScrollReveal, enableHoverAnimations
TypographythemeConfiguration.typographybodyFont, headingFont, bodyFontCustom, headingFontCustom, baseFontSize, lineHeight

heroBackground (hero style, patterns, dividers) is part of the ThemeHeroBackground type and the CSS generator, but the tab has no admin fields for it. Add them through customThemeConfigurationSections if you need them.

Full reference: docs/APPEARANCE_CONTROLS.md

import { fetchThemeConfiguration } from '@kilivi/payloadcms-theme-management'

const theme = await fetchThemeConfiguration({ collectionSlug: 'site-settings' })

const effect = theme?.visualEffects?.effectStyle ?? 'flat'
const button = theme?.componentStyles?.buttonVariant ?? 'filled'

return (
  <html data-effect={effect} data-button={button}>
    ...
  </html>
)

Theme presets

Built-in presets are exported as allThemePresets, and style presets as allStylePresets:

import { allStylePresets, allThemePresets } from '@kilivi/payloadcms-theme-management'

Editors can also import extra presets as JSON (Custom theme presets section). They are merged into the theme picker, and they override built-in presets that have the same name.

Full preset reference: docs/THEME_PRESETS_EXTENDED.md

Visitor components

import ColorModeToggle from '@kilivi/payloadcms-theme-management/components/ColorModeToggle'
import ThemeSwitcher from '@kilivi/payloadcms-theme-management/components/ThemeSwitcher'

Public API

Main package

import {
  allStylePresets,
  allThemePresets,
  fetchThemeConfiguration,
  generateThemeColorsCss,
  generateThemeCSS,
  getAvailableThemePresets,
  getThemeHtmlAttributes,
  getThemePreset,
  getThemeStyles,
  resolveThemeConfiguration,
  themeManagementPlugin,
  ThemeProvider,
} from '@kilivi/payloadcms-theme-management'

import type {
  SiteThemeConfiguration,
  ThemeComponentStyles,
  ThemeHeroBackground,
  ThemeVisualEffects,
} from '@kilivi/payloadcms-theme-management'

Server package

import {
  createCachedThemeFetcher,
  getThemeCacheTag,
  getThemeCriticalCSS,
  getThemeCSS,
  revalidateThemeCache,
  ServerThemeInjector,
} from '@kilivi/payloadcms-theme-management/server'

Always import server-only helpers from /server.

Migrating from @kilivi-dev

The API is unchanged. Only the package name differs.

  1. Swap the dependency:

    pnpm remove @kilivi-dev/payloadcms-theme-management
    pnpm add @kilivi/payloadcms-theme-management
    
  2. Replace the import prefix in your code: @kilivi-dev/payloadcms-theme-management → @kilivi/payloadcms-theme-management. This covers /server, /components/* and /fields/*.

  3. Regenerate the admin import map so Payload resolves the admin components under the new name:

    pnpm payload generate:importmap
    
  4. If you list the package in next.config under transpilePackages, rename it there too.

Stored data does not need a migration: field names and database columns stay the same.

Notes

  • For strict preview security, set PREVIEW_SECRET and enable livePreview.injectRoute.
  • For multi-tenant apps, use tenantField and tenantQueryParam to keep preview URLs tenant-aware.
  • Task-focused guides for AI coding assistants live in .claude/skills/.

License

MIT

Similar plugins