Skip to content

Installation

Add the package, add the plugin, regenerate the import map.

bun add @payloadpack/theme

With another package manager, run npm install, pnpm add or yarn add instead.

payload.config.ts
import { themePlugin } from '@payloadpack/theme'
export default buildConfig({
plugins: [themePlugin()]
})

List themePlugin() after any plugin that adds collections, so their checkbox columns get the theme’s list cell too.

bunx payload generate:importmap

Run it again after every upgrade of the theme.

  • The AppearanceOptions component is gone, so an old import map fails next build. Regenerate it.
  • The --payloadpack-sidebar-tabs-height token is gone. Sidebar tabs now follow the field height.