-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block.json: set color property individually #24927
Comments
Hi @nosolosw, the API's are experimental I guess we can simply change to have two separate properties __experimentalColor.color for color and __experimentalColor.background for "background-color" right? |
I'd think we want to consolidate For context, a related PR where I tried to do this (but was held off due to other things) #24320 |
@jorgefilipecosta I am a little confused with the naming convention of these colors and some properties like |
Hi @kishanjasani, it is experimental because we are still developing and improving it so its shape and name could change in the future. |
The implicit block attributes for colors we declare through block.json follow this logic:
--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.
The text was updated successfully, but these errors were encountered: