# Migration Guide: Puck 0.24

This guide is for existing projects on `@puckeditor/core` 0.21, 0.22 or 0.23. The SDK and `@pantheon-systems/puck-css` now require `@puckeditor/core` `>=0.24.0` as a peer, and new projects from `create-p1-starter-kit` pin `0.24.0`.

## Steps

1. Pin Puck in your `package.json`:

   ```json
   "@puckeditor/core": "0.24.0"
   ```

2. Upgrade `@pantheon-systems/p1-next-sdk` and `@pantheon-systems/puck-css` to the versions released with this change, then reinstall.

3. If your lockfile or package manager overrides pin `@tiptap/core` or `@tiptap/pm`, move them to `3.34.0` or remove the pin. Puck 0.24's rich-text extensions require a matching `@tiptap/core`.

## What changes in the editor

- The editor theme re-declares more of Puck's color tokens, so custom overrides of `--puck-color-*` variables on `.puck-editor-theme` keep winning, including in modals that render inside the editor root.
- Inspector fields are padded and separated by Puck itself. Field sections and fields that a block does not assign to a group get the same spacing as grouped ones. If you restyled `[class*="_PuckFields-field_"]`, re-check the spacing.
