JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 265
  • Score
    100M100P100Q89402F
  • License MIT

Color widget for Netlify CMS.

Package Exports

  • netlify-cms-widget-color

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (netlify-cms-widget-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

netlify-cms-widget-color

This project is a simple color widget for Netlify CMS that uses react-color. Remembering all the world's code values for colors is hard. Now you don't have to. Install the color widget so you can make an easy job of things like changing your font color, directly in the editor UI.

Install and Usage

As an npm package:

npm install netlify-cms-widget-color
import CMS from 'netlify-cms'
import ColorWidget from 'netlify-cms-widget-color'
CMS.registerWidget('color', ColorWidget)

Add to your config.yml:

    fields:
      - { name: <fieldname>, label: <fieldlabel>, widget: color }

Via script tag:

Note: we use netlify-cms-extended here, see: netlify/netlify-cms#1292

<script src="https://unpkg.com/netlify-cms-extended"></script>
<script src="https://unpkg.com/netlify-cms-widget-color"></script>
<script>
  CMS.registerWidget(color, NetlifyCMSColorWidget)
</script>