Lexical Color Picker

Adds text and background color pickers with gradients to the Lexical toolbar

Community 0 113/wk MIT v0.2.0

Installation

pnpm add @payloadcms-toolbox/lexical-color-picker

About

Lexical Color Picker adds a color control to the toolbar of the rich text editor, so content editors can color text without writing markup. Editors choose from a palette you define, or pick any custom color, and the chosen color is saved with the content. A separate background color option is available for highlighting text.

The feature can be turned on for every rich text field in a project or only for selected fields, so brand colors stay consistent across pages. Gradient presets can be offered alongside solid colors, with a switch that lets editors toggle between the two. The color indicator in the toolbar shows the color currently applied to the selected text.

Package info

Package name
@payloadcms-toolbox/lexical-color-picker
Latest version
0.2.0
Unpacked size
34 kB
License
MIT
Weekly downloads
113
Last publish
Nov 20, 2025

More from payloadcms-toolbox

View profile

Adds a font size dropdown to the Lexical rich text toolbar

Similar plugins

More in Editor

Editor-authored URL routing that maps collections to path patterns and links

Adds AI text, translation, image and voice generation to Payload fields and the editor

Adds AI text, image and voice generation and translation to Payload editors

Translates Payload documents into other locales with LibreTranslate in the background

Adds Mermaid diagram blocks to rich text with server-rendered SVG output

Code-defined transactional emails with admin-editable copy, test sends and a send log