Skip to content

Instantly share code, notes, and snippets.

@ryanwelcher
Last active November 16, 2021 18:36
Show Gist options
  • Save ryanwelcher/016631d4190b1ee3f43ec2a3189f39f4 to your computer and use it in GitHub Desktop.
Save ryanwelcher/016631d4190b1ee3f43ec2a3189f39f4 to your computer and use it in GitHub Desktop.
WordPress 5.9 Theme.json border support and block level overrides.
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 1,
"settings": {
"border": {
"radius": true,
"color": true,
"style": true,
"width": true
},
"blocks": {
"core/button": {
"border": {
"radius": false
}
},
"core/code": {
"border":{
"radius": false,
"color": false,
"style": false,
"width": false
}
},
"core/comment-author-avatar": {
"border":{
"radius": false,
"color": false,
"style": false,
"width": false
}
},
"core/group" :{
"border":{
"radius": false,
"color": false,
"style": false,
"width": false
}
},
"core/image" :{
"border":{
"radius": false
}
},
"core/pullquote": {
"border":{
"radius": false,
"color": false,
"style": false
}
},
"core/search": {
"border":{
"radius": false,
"color": false
}
},
"core/table": {
"border":{
"color": false,
"style": false,
"width": false
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment