innovixx

payload color picker field

by innovixx
Custom fields
v3
^3.2.2
MIT

Overview

Summary generated from the README

Adds a color picker field type to Payload collections. It is used by calling a field helper function in a collection's fields array, with the usual field options such as name, label, required and admin settings. Colors are handled in HEX format. Targets Payload 3.

Features

  • Color picker field for the Payload admin panel
  • HEX color format support
  • Standard field options such as name, label, required and admin position
  • Helper function that drops into any collection's fields array

Use cases

  • Let editors choose a brand or accent color for each page
  • Add a theme color selector to a collection sidebar

From the author

The Payload Color Picker that enables an easy color selection field for your Payload projects.

Installation

npm i @innovixx/payload-color-picker-field

41

Stars

5

Forks

7

Open Issues

7 months ago

Last Updated

1.7k

Weekly Downloads

v2.0.4

npm Version

475.6 KB

Unpacked Size

1

Dependencies

GitHub stars

410 since Sep 6

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

1.8K−3.2K since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 20261,774
Dec 4, 20261,711
Dec 3, 20261,577
Dec 2, 20261,497
Dec 1, 20261,387
Nov 30, 20261,370
Nov 29, 20261,469
Nov 28, 20261,377
Nov 27, 20261,361
Nov 26, 20261,231
Nov 25, 20261,141
Nov 24, 20261,166
Nov 23, 20261,238
Nov 22, 20261,281
Nov 21, 20261,255
Nov 20, 20261,334
Nov 19, 20261,462
Nov 18, 20261,682
Nov 17, 20261,676
Nov 16, 20261,658
Nov 15, 20261,690
Nov 14, 20261,704
Nov 13, 20261,642
Nov 12, 20261,739
Nov 11, 20261,601
Nov 10, 20261,679
Nov 9, 20261,596
Nov 8, 20261,501
Nov 7, 20261,584
Nov 6, 20261,774
Nov 5, 20261,664
Nov 4, 20261,819
Nov 3, 20261,845
Nov 2, 20261,971
Nov 1, 20262,125
Oct 31, 20262,080
Oct 30, 20262,053
Oct 29, 20261,820
Oct 28, 20261,459
Oct 27, 20261,427
Oct 26, 20261,478
Oct 25, 20261,343
Oct 24, 20261,301
Oct 23, 2026930
Oct 22, 20261,487
Oct 21, 20261,639
Oct 20, 20261,637
Oct 19, 20261,569
Oct 18, 20261,485
Oct 17, 20261,322
Oct 16, 20261,508
Oct 15, 20261,235
Oct 14, 20261,316
Oct 13, 20261,196
Oct 12, 20261,118
Oct 11, 20261,057
Oct 10, 20261,283
Oct 9, 20261,293
Oct 8, 20261,366
Oct 7, 20261,561
Oct 6, 20261,615
Oct 5, 20261,701
Oct 4, 20261,859
Oct 3, 20261,822
Oct 2, 20261,904
Oct 1, 20261,870
Sep 30, 20261,610
Sep 29, 20261,594
Sep 28, 20261,503
Sep 27, 20261,412
Sep 26, 20261,479
Sep 25, 20261,507
Sep 24, 20262,012
Sep 23, 20263,983
Sep 22, 20263,969
Sep 21, 20263,929
Sep 20, 20265,486
Sep 19, 20265,580
Sep 18, 20265,760
Sep 17, 20266,871
Sep 16, 20265,110
Sep 15, 20265,130
Sep 14, 20266,577
Sep 13, 20265,038
Sep 12, 20265,045
Sep 11, 20266,441
Sep 10, 20264,860
Sep 9, 20265,049
Sep 8, 20266,370
Sep 7, 20264,904
Sep 6, 20264,976

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

Health Score

53/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/666027944-root.svg)](https://payloaddirectory.dev/plugins/666027944-root)
HTML
<a href="https://payloaddirectory.dev/plugins/666027944-root"><img src="https://payloaddirectory.dev/badge/666027944-root.svg" alt="Payload Directory"></a>
Updated Apr 17, 2026Created Jul 13, 2023Published Dec 8, 2025

README

Payload Color Picker Field

NPM

A field for Payload that enables an easy color selection field for your Payload projects.

payload-color-picker-field-screenshot.png

Core features:

  • Add a color picker field to your Payload collections
  • Supports HEX color formats

Installation

  yarn add @innovixx/payload-color-picker-field
  # OR
  npm i @innovixx/payload-color-picker-field

Basic Usage

import type { CollectionConfig } from 'payload/types'

import { colorPickerField } from '@innovixx/payload-color-picker-field'

const Pages: CollectionConfig = {
  slug: 'pages',
  admin: {
    useAsTitle: 'title',
  },
  fields: [
    colorPickerField({
      name: 'primaryColor',
      label: 'Primary Color',
      required: true,
      admin: {
        position: 'sidebar',
        description: 'Choose a color for this page',
      },
    }),
  ],
}

export default Pages

Development

To actively develop or debug this plugin you can either work directly within the demo directory of this repo, or link your own project.

  1. Internal Demo

    This repo includes a fully working, self-seeding instance of Payload that installs the plugin directly from the source code. This is the easiest way to get started. To spin up this demo, follow these steps:

    1. First clone the repo
    2. Then, cd YOUR_PLUGIN_REPO && yarn && cd demo && yarn && yarn cleanDev
    3. Now open http://localhost:3000/admin in your browser
    4. Enter username [email protected] and password Pa$$w0rd!

    That's it! Changes made in ./src will be reflected in your demo. Keep in mind that the demo database is automatically seeded on every startup, any changes you make to the data get destroyed each time you reboot the app.

Similar plugins