Add CSS Custom Property for layout width to editor and frontend #36414
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Enhancement
A suggestion for improvement.
Description
Pretty much all the options that we set in
theme.json
are available to theme & plugin authors via CSS Custom Properties. That is not the case for the layout width settings.It would be really useful to be able to access the
contentWidth
andwideWidth
values as custom properties.Based on the other properties the naming scheme would probably be something like:
Step-by-step reproduction instructions
does not apply
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: