Add support for custom CSS in theme style variations #49970
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Custom CSS fields were recently added for both themes and blocks, in the global styles UI and in theme.json. But they only work at the main theme.json level; adding a custom CSS field either globally of per-block in a theme style variation file has no effect.
What is your proposed solution?
It would be great if it were possible to add per-variation custom CSS. When setting it from the UI, the custom CSS would apply to the active variation and reset when switching to another variation. This would bring consistency with the other design tools when variations switching.
The text was updated successfully, but these errors were encountered: