Skip to content

Theme.json schema block properties: valid vs supported #36630

@ryanwelcher

Description

@ryanwelcher

The theme.json schema indicates that each block supports all of the valid properties that are enabled globally for color, spacing, and typography. While these entries are technically valid they do not reflect whether or not the individual block supports or respects the value.

There are some blocks that either a) don't opt-in to using the control or b) don't actually respect the setting. In these cases, would it be beneficial to have the schema reflect these cases and only include valid and supported items for each block?

Having the schema be more verbose and actually represent the functionality as well as what is valid would go along way for the developer experience and reduce confusion.

Metadata

Metadata

Assignees

Labels

Developer ExperienceIdeas about improving block and theme developer experience[Type] Developer DocumentationDocumentation for developers[Type] DiscussionFor issues that are high-level and not yet ready to implement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions