RGBA Color Picker logo

RGBA Color Picker

By Thiago N.

A custom field plugin for Strapi v5 that allows color selection using RGBA, RGB, HEX, HSL, and HSLA formats, with live preview and transparency control.

Latest version

v1.0.2

released May 29, 2025

npm install rgba-color-picker

RGBA Color Picker Plugin for Strapi

RGBA Color Picker Demo

A custom field plugin for Strapi v5 that allows color selection using RGBA, RGB, HEX, HSL, and HSLA formats, with live preview and transparency control.


πŸ“¦ Installation

yarn add rgba-color-picker

Then enable it in your /strapi/config/plugins.ts:

export default {
  plugins: {
    'rgba-color-picker': {
      enabled: true,
    },
  },
};

If you're installing directly in a src/plugins folder instead, copy the plugin manually and skip the npm install step.


✨ Features

  • 🎨 Pick colors using multiple formats: hex, rgb, rgba, hsl, hsla
  • πŸ–±οΈ Built-in color input with preview
  • ✍️ Manual value input with real-time validation
  • πŸ”  Format selector (with persistence)
  • 🌍 Internationalization support (English and Portuguese πŸ‡ΊπŸ‡Έ πŸ‡§πŸ‡·)

🧩 Usage

  1. Go to the Content-type Builder in your Strapi Admin.
  2. Create or edit a collection type.
  3. Add a new Custom Field and choose RGBA Color Picker.
  4. Select your default format (optional).
  5. Save and use the color picker in your entries!

🌐 Translations (i18n)

The plugin is fully translatable. Included locales:

  • en (English)
  • pt-BR (PortuguΓͺs Brasil)

If you'd like to contribute with other languages, feel free to open a PR!


πŸ§ͺ Development & Contributing

To develop locally:

# Link the plugin to your Strapi project manually:
# Inside your Strapi app root
cd src/plugins
git clone https://github.com/thiagotnon/strapi-rgba-color-picker.git

# Or use `npm link` for local testing

To contribute:

  1. Fork the repo
  2. Make your changes
  3. Submit a PR ❀️

πŸ“„ License

MIT Β© RGBA Color Picker Plugin for Strapi


Submit your content

Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.

Submit
Submit your content