Color Randomizer – does not work with no colors in theme.json
#50150
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Experimental
Experimental feature or API.
Description
When using the Create Block Theme plugin to generate a blank theme, no colors are available in the blank theme's
theme.json
. Therefore, when you go to use the Color Randomizer, it throws an error in the console:Step-by-step reproduction instructions
Note: after creating a blank theme you can deactivate the Create Block Theme plugin and the issue still persists.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.2
Gutenberg 15.6.2
Create Block Theme plugin 1.8.2
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
The text was updated successfully, but these errors were encountered: