Arevo-Digital

payload theme studio

by Arevo-Digital
Admin customization
v3
^3.82.0
MIT

Overview

Summary generated from the README

Adds a Theme Studio button to the admin header, visible only to administrators. Changes to colours, typography, spacing, branding and custom CSS preview live across the admin panel, and saving applies the theme for all users. The theme is stored in a single global and rendered server-side as a style tag, so there is no flash on first paint. Requires Payload 3.82 or later and an import map regeneration.

Features

  • Separate light and dark mode colours with an auto-generated grey scale
  • Google Fonts or custom font stacks, monospace font and heading weight
  • Corner radius and base spacing unit settings
  • Custom login logo, navigation icon and login background image
  • Custom CSS that overrides Payload styles without important flags
  • Presets plus JSON import and export between projects

Use cases

  • Rebrand the Payload admin panel for a client without editing code
  • Apply a white-label look with custom logo, fonts and colours
  • Share one admin theme across several Payload projects via JSON export

From the author

Theme Studio for Payload CMS - gives system administrators full control over the admin panel design: colours, typography, spacing, branding and custom CSS, with live preview.

Installation

npm i payload-theme-studio

1

Stars

0

Forks

0

Open Issues

1 months ago

Last Updated

0

Weekly Downloads

v

npm Version

Dependencies

GitHub stars

1+1 since Nov 1

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 20261
Dec 5, 20261
Dec 4, 20261
Dec 3, 20261
Dec 2, 20261
Dec 1, 20261
Nov 30, 20261
Nov 29, 20261
Nov 28, 20261
Nov 27, 20261
Nov 26, 20261
Nov 25, 20261
Nov 24, 20261
Nov 23, 20261
Nov 22, 20261
Nov 21, 20261
Nov 20, 20261
Nov 19, 20260
Nov 18, 20260
Nov 17, 20260
Nov 16, 20260
Nov 15, 20260
Nov 14, 20260
Nov 13, 20260
Nov 12, 20260
Nov 11, 20260
Nov 10, 20260
Nov 9, 20260
Nov 8, 20260
Nov 7, 20260
Nov 6, 20260
Nov 5, 20260
Nov 4, 20260
Nov 3, 20260
Nov 2, 20260
Nov 1, 20260
npm weekly downloads

Trends appear after 7 days of data. Daily snapshots have not started yet.

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

Health Score

30/100Fair

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/1442031010-root.svg)](https://payloaddirectory.dev/plugins/1442031010-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1442031010-root"><img src="https://payloaddirectory.dev/badge/1442031010-root.svg" alt="Payload Directory"></a>
Updated Nov 1, 2026Created Nov 1, 2026

README

Payload Theme Studio

By Arevo Digital

Give your system administrators complete control over the design of the Payload admin panel, without touching code.

A Theme Studio button appears in the admin header for administrators only. It opens a studio where every change previews live across the whole admin panel, and one click on Save applies it for every user.

What you can customize

  • Colors: background, text, primary buttons, navigation, and success, warning and error colors. You set light and dark mode separately. The full grey scale Payload uses is generated from your background and text colors, so the design stays consistent everywhere.
  • Typography: any Google Font, or your own font stack, plus a monospace font and heading weight.
  • Shape and spacing: small, medium and large corner radius, and Payload's base spacing unit, which scales all padding and field heights.
  • Branding: login logo, navigation icon and a login background image.
  • Custom CSS: anything else. Payload's own styles live in a CSS layer, so your rules win without !important.
  • Presets and import/export: start from Midnight, Forest, Sunset or Brutalist, and move themes between projects as JSON.

On install the plugin changes nothing. Every setting starts at "Payload default".

Install

pnpm add payload-theme-studio
// payload.config.ts
import { payloadThemeStudio } from 'payload-theme-studio'

export default buildConfig({
  // ...
  plugins: [payloadThemeStudio()],
})

Then regenerate the import map:

pnpm payload generate:importmap

If your project uses database migrations, create one. The plugin adds one global, theme-studio, with a single JSON field:

pnpm payload migrate:create theme-studio

Who counts as a system administrator

By default, a user is an administrator when user.role === 'admin' or user.roles includes 'admin'. Only administrators can see the button, open the studio, and read or save the theme through the API. Everyone else just sees the finished theme.

If your project marks administrators differently, pass your own check:

payloadThemeStudio({
  isAdmin: ({ user }) => user?.email?.endsWith('@arevodigital.dk') ?? false,
})

Options

OptionDefaultDescription
isAdminrole/roles contains 'admin'Who may use the studio
studioPath'/theme-studio'Admin path of the studio
globalSlug'theme-studio'Slug of the global that stores the theme
replaceGraphicstrueUse the uploaded logo and icon. Your own admin.components.graphics always take priority
disabledfalseStop applying the theme but keep the stored data and schema

How it works

  • Applying the theme: a server-side admin provider reads the theme global and renders it as a <style> tag on every admin page, including login. The theme is in place on first paint, with no flash.
  • Live preview: while you edit, the studio swaps that stylesheet for a live preview, and restores it when you leave.
  • Storage: settings are stored as JSON. Settings added in future versions get their defaults automatically.

Development

pnpm install
pnpm dev        # dev app on http://localhost:3000 with a SQLite database
pnpm test:int   # integration tests

The dev app seeds two users so you can try both sides of the access rule. Both use the password test:

UserRole
[email protected]admin
[email protected]editor

License

MIT © Arevo Digital

Similar plugins