Sanity Plugin Best Practices

Anti-patterns and best practices for building Sanity Studio plugins in this monorepo. Use when writing, reviewing, or refactoring plugin code under plugins/ — especially for styling/CSS, component performance, and runtime cost. Triggers on vanilla-extract, raw <style> tags, styled-components, theming, inline styles, or questions about how plugins should be structured here.

sanity-io Updated

File contents

sanity-io/plugins/tree/main/.agents/skills/sanity-plugin-best-practices commit 11f593bbe6

Frequently asked questions

npx skillmds@latest add sanity-io/sanity-plugin-best-practices