Migrate Styled Components To Vanilla Extract

Step-by-step procedure for migrating a workspace off styled-components to vanilla-extract (zero-runtime CSS). Use when converting styled() components to .css.ts files, removing a styled-components dependency, adding a ./bundle.css export, or when asked to migrate styling to vanilla-extract. Pair with the sanity-plugin-best-practices styling reference for the underlying patterns.

sanity-io Updated

File contents

sanity-io/plugins/tree/main/.agents/skills/migrate-styled-components-to-vanilla-extract commit 27c962b80d

Frequently asked questions

npx skillmds@latest add sanity-io/migrate-styled-components-to-vanilla-extract