How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

Sanity Color Picker

Studio v2
This plugin only works with an older version of Sanity Studio (v2), which is deprecated.

A color picker input using react-color and react-eyedrop

By Edolyne Long

v2 install command (deprecated)

sanity install color-picker

Color Picker

Color picker with eyedropper tool input for Sanity that stores a selected color.

Installing

In your Sanity studio folder, run:

sanity install color-picker 

Usage

Use it in your schema types:

// [...]
{
  fields: [
    // [...]
    {
      name: 'color',
      title: 'Color',
      type: 'colorPicker'
    }
  ]
}

Note that the above only works if you import and use the all:part:@sanity/base/schema-type part in your schema.

License

MIT-licensed. See LICENSE.