/contentful-ui-colorpicker

Color picker custom UI Extension for Contentful

Primary LanguageHTMLMIT LicenseMIT

experimental

Contentful UI Color Picker

Custom Contentful UI Extension for fields of type "Short Text" (a.k.a. Symbol)

It uses the native OS color picker, and includes a polyfill for older browsers (thanks to nativeColorPicker)

Installation and Usage

Requirements: node, contentful-cli

Clone or download this repository, and then execute the following commands in your Terminal:

To create it: CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=<your-token-goes-here> contentful extension create --space-id <your-space-id-goes-here>

You should see a successful message and then be able to select "Color Picker" for any Short Text field in your CMS instance.

Development / Contributions

Requirements: python (self-signed certificate is in the repo to prevent Chrome enforcing of https)

To update it: CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=<your-token-goes-here> contentful extension update --space-id <your-space-id-goes-here> --force

To use local: CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=<your-token-goes-here> contentful extension update --space-id <your-space-id-goes-here> --force --src https://localhost:3000 && python https