"global-styles-inline-css" outputs colours, gradients etc not used/defined in theme.json #39442
Labels
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Description
global-styles-inline-css prints many colours, gradients, duotone and background/borders etc that are not defined in theme.json.
Expected behaviour would be that the global-styles-inline-css only outputs what is defined in theme.json and not some random other colours, gradients etc.
If that is on purpose then it would be good to let us opt out of this. I do not mean opt out of global-styles in general, which I know is possible, as I like my font-sizes, colour palette etc generated inside global-styles-inline-css, but opt-out of those default colours, gradients etc. that are not even defined in my theme.json and therefore do not have the possibility to choose those colours/gradients.
Step-by-step reproduction instructions
Example theme.json:
Small part of the generated CSS! I have only defined 4 colours, no gradients and no duotones:
Screenshots, screen recording, code snippet
No response
Environment info
Wordpress 5.9.2 & Gutenberg 12.7.2
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: