
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeBased on the error you're seeing, this is a Studio v2 vs v3 compatibility issue. The command sanity install @sanity/color-input and the sanity.json plugins array are part of the Studio v2 workflow, which is now deprecated.
Here's what's happening: In Studio v2, plugins needed to be registered in the sanity.json file's plugins array for their custom types to become available. Just installing the package isn't enough - you need to explicitly add it to your configuration.
If you're still using Studio v2, you need to add the plugin to your sanity.json file:
{
"root": true,
"project": {
"name": "Your Project"
},
"plugins": [
"@sanity/base",
"@sanity/components",
"@sanity/default-layout",
"@sanity/default-login",
"@sanity/desk-tool",
"@sanity/color-input" // Add this line
]
}After adding it to the plugins array, restart your Studio and the color type should be recognized.
If you're on Studio v3 (or should migrate to it), the process is different. Install the plugin with:
npm install @sanity/color-inputThen add it to your sanity.config.ts or sanity.config.js:
import {defineConfig} from 'sanity'
import {colorInput} from '@sanity/color-input'
export default defineConfig({
// ... other config
plugins: [
colorInput()
]
})The fact that you're using the sanity install command suggests you're on Studio v2. You can check by looking for either a sanity.json file (v2) or a sanity.config.ts/js file (v3) in your project root. Since Studio v2 is deprecated, I'd recommend migrating to v3 when possible.
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