Allow modification of theme.json global styles #36792
Labels
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?
There is currently no way (that I can tell) to modify the output of the global styles when using
theme.json
.Example use case: creating a color system to allow for different opacity of text and background colors.
Example setup:
style.css
(or equivalent)theme.json
global-styles
(#global-styles-inline-css
)What is your proposed solution?
If those styles were filterable then this could be easily done. The only solution I could see now is to dequeue the
global-styles
and then include our own CSS, but doing this feels like going against WordPress and not future-proof.The text was updated successfully, but these errors were encountered: