Failure to parse theme.json should be a lot more obvious #32009
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Status] In Progress
Tracking issues with work in progress
[Type] Feedback
Issues that relate purely to feedback on a feature that isn't necessarily actionable
Description
A theme’s global styles are defined in a file called theme.json.
It’s a complicated file in JavaScript Object Notation (JSON ) format.
There are many settings which can have lots of values.
Well, something may be logged to PHP error log.
Step-by-step reproduction instructions
theme.json
Expected behaviour
The fact that
theme.json
could not be parsed should be made immediately obvious to the user.This is going to happen an awful lot in the next few months.
The ability to perform problem determination needs to be significantly improved.
Actual behaviour
It just looks awful.
Screenshots or screen recording (optional)
Screen capture after step 3.

Screen capture after breaking theme.json in step 4.

Code snippet (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: