When developing a theme, it is handy to have define( 'WP_DEVELOPMENT_MODE', 'theme' ); defined so your theme.json styles don't get cached. While this works for theme.json, it doesn't seem to clear the cache for style variations in the /styles folder.
The only way I can get the cache to clear is by going to Editor → Styles and clicking another style and clicking back. Ideally using the theme development mode should clear all .json caches.
Step-by-step reproduction instructions
Add a style variation in the /styles folder.
Add a button and set the color to an accent color.
In your style variation, override the accent color with something like #000 and save.
Visit the browser and refresh the page.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.5
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Description
When developing a theme, it is handy to have
define( 'WP_DEVELOPMENT_MODE', 'theme' );
defined so your theme.json styles don't get cached. While this works for theme.json, it doesn't seem to clear the cache for style variations in the /styles folder.The only way I can get the cache to clear is by going to Editor → Styles and clicking another style and clicking back. Ideally using the theme development mode should clear all .json caches.
Step-by-step reproduction instructions
#000
and save.Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.5
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes