
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI understand you're facing a challenge migrating from Sanity Studio v2 to v3 with the sanity-plugin-color-list plugin that's extensively used in your schemas. This is a common issue during v3 migrations when community plugins haven't been updated.
The sanity-plugin-color-list plugin you're using is a community plugin created by Kim Björkman that was built for Studio v2 and has not been updated for Studio v3 compatibility. As the plugin page indicates, it only works with the older, now-deprecated version of Sanity Studio (v2).
Since this plugin is extensively used in your schemas, here are your recommended paths forward:
Sanity maintains an official color input plugin called @sanity/color-input that fully supports Studio v3. While it has a different API than sanity-plugin-color-list, it provides similar functionality including predefined color swatches.
Installation:
npm install @sanity/color-inputAdd to your sanity.config.ts:
import {defineConfig} from 'sanity'
import {colorInput} from '@sanity/color-input'
export default defineConfig({
// ... other config
plugins: [
colorInput(),
// ... other plugins
]
})Schema definition:
The official plugin uses type: "color" and provides a colorList option for predefined swatches:
{
title: "Color",
name: "myColor",
type: "color",
options: {
colorList: [ // Predefined color swatches
{ title: "Red", value: "#f16d70" },
{ title: "Teal", value: "#88c6db" },
{ title: "Purple", value: "#aca0cc" }
]
}
}The official plugin returns a comprehensive color object with hex, hsl, hsv, and rgb values, giving you more flexibility in how you use colors on your frontend.
If the official plugin doesn't meet your specific requirements, you could:
sanity-plugin-color-list repositoryThis gives you full control but requires ongoing maintenance on your end.
For Studio v3, you can create custom input components. If sanity-plugin-color-list had specific features you need, you could build a custom input that replicates that functionality while being v3-compatible. The Sanity documentation on custom inputs can guide you through this process.
Whichever option you choose, I'd recommend:
sanity-plugin-color-list across your schemas to understand the scope of changessanity-plugin-color-list README mentions it returns "the whole color object" - you'll need to verify compatibility with the official plugin's data structureThe official @sanity/color-input plugin is your best bet for long-term support and compatibility with future Sanity updates. While it requires schema refactoring, it's actively maintained by Sanity and designed specifically for Studio v3.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store