The Flotiq Color Picker plugin transforms standard text input fields into intuitive color selection interfaces. This plugin provides a visual way to select and manage colors for your content, eliminating the need to manually enter hex color codes.
Transformed text field into color picker:
Without predefined color palette
With predefined color palette
- First, click "Add Item".
- Select the Content Type.
- Choose at least one field to transform for provided Content Type.
After saving the plugin, if custom palette was not uploaded, the selected fields in your content type definition will be automatically updated with a validation pattern (regex) to ensure proper hex color code format. To maintain color validation functionality, please keep this pattern intact and avoid manual removal.
To use a predefined palette:
- Click "Upload Palette" in the plugin settings.
- Choose a JSON file with the correct format (see examples below).
The color palette must be a JSON array containing arrays of colors. Each color can be either:
- A simple string (hex color code)
- An object with
name(any string) andvalue(hex color code) properties
Example 1: Simple hex colors
[
[
"#F0F9FF",
"#E7F1FE"
],
[
"#F7FEE7",
"#E4F9B9"
]
]Example 2: Named colors
[
[
{
"name": "primary-50",
"value": "#F0F9FF"
},
{
"name": "primary-100",
"value": "#E7F1FE"
}
],
[
{
"name": "secondary-50",
"value": "#F7FEE7"
},
{
"name": "secondary-100",
"value": "#E4F9B9"
}
]
]If the format is correct, you should see the chosen file in the plugin settings:
yarnyarn start- work work work
- update your
src/plugin-manifest.jsonfile to contain the production URL and other plugin information yarn build- paste js code from
./build/static/js/main.xxxxxxxx.jsto Flotiq console - navigate to affected Flotiq pages
Dev environment is configured to use:
prettier- best used with automatic format on save in IDE, remember to runyarn formatbefore commiting changeseslint- it is built into bothstartandbuildcommands
- Open Flotiq editor
- Open Chrome Dev console
- Execute the following script
FlotiqPlugins.loadPlugin("plugin-id", "<URL TO COMPILED JS>");
- Navigate to the view that is modified by the plugin
- Open Flotiq editor
- Open Chrome Dev console
- Paste the content of
static/js/main.xxxxxxxx.js - Navigate to the view that is modified by the plugin
- Open Flotiq editor
- Add a new plugin and paste the URL to the hosted
plugin-manifest.jsonfile (you can usehttps://localhost:3050/plugin-manifest.jsonas long as you have accepted self-signed certificate for this url) - Navigate to the view that is modified by the plugin
If you wish to talk with us about this project, feel free to hop on our .
If you found a bug, please report it in issues.



