Skip to content

block.json: set color property individually #24927

@oandregal

Description

@oandregal

The implicit block attributes for colors we declare through block.json follow this logic:

CSS Property block.json (check presence of) Style attribute (block serialization) theme.json
--wp--style--color--link __experimentalColor.linkColor style.color.link styles.color.link
background __experimentalColor.gradients style.color.gradient styles.color.gradient
background-color __experimentalColor style.color.background styles.color.background
color __experimentalColor style.color.text styles.color.text

Text and background colors are coupled, although some blocks may not require them both at once.

Metadata

Metadata

Labels

[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Status] In ProgressTracking issues with work in progress

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions