-
Notifications
You must be signed in to change notification settings - Fork 4.8k
block.json: set color property individually #24927
Copy link
Copy link
Closed
Labels
[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Status] In ProgressTracking issues with work in progressTracking issues with work in progress
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Status] In ProgressTracking issues with work in progressTracking issues with work in progress
Type
Fields
Give feedbackNo fields configured for issues without a type.