add box-shadow support for blocks via templates #43184
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
This PR is an extension of #41972
It aims at two features
theme.json
similar to that offontSizes
and generate preset variables that can be used across the theme.Why?
Changes #41972 helps in defining a shadow by targeting a block and it applies to all the instances.
While this is good, it doesn't allow to give a shadow only to a specific block such as apply shadow only to outer group block or special type of button etc..
This PR fills the gap by adopting the similar approach of
fontSize
How?
Testing Instructions
Screenshots or screencast