You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a bug fixed in #28581 where the theme.json generated CSS custom properties were not applied to the root inside the iframe, and so the styling appeared broken in some cases. However, I believe that having the custom properties in the main root level is also important for things in the sidebar.
In my particular case, I am defining the theme's color palette in settings.custom like so:
This is so that I can define all of my theme's colors in one place, while providing a limited color palette in the editor, and also even more limited pallets for specific blocks that all reference the single source of truth.
These custom properties are not loaded for the sidebar, and so my theme color palette looks like this, while the block itself displays the correct color (the block is teal):
Step-by-step reproduction instructions
Add custom properties to theme.json
Reference those custom properties in the main color palette of theme.json
See that the theme colors are all black in the site editor
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 5.8.2
Gutenberg 12.1.0
Firefox 96.0b7 (64-bit)
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:
Description
There was a bug fixed in #28581 where the theme.json generated CSS custom properties were not applied to the root inside the iframe, and so the styling appeared broken in some cases. However, I believe that having the custom properties in the main root level is also important for things in the sidebar.
In my particular case, I am defining the theme's color palette in
settings.custom
like so:This is so that I can define all of my theme's colors in one place, while providing a limited color palette in the editor, and also even more limited pallets for specific blocks that all reference the single source of truth.
These custom properties are not loaded for the sidebar, and so my theme color palette looks like this, while the block itself displays the correct color (the block is teal):
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
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: