-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Styles: Allow themes to opt out of core theme.json #40181
Comments
Just wanted to share #37550 as it touches on this specific thing (absorb the remaining CSS bits so themes can override easily). At some point, we may want to introduce a flag that allows to "reset" all core styles. Though, I wouldn't do that until we absorb the remaining pieces (block styles & block style variations). |
Hi, |
Still relevant |
Looked at the related conversations, and I'm having trouble understanding what this means. This is what I understand:
Does that captures the goal? This leaves me with a few questions:
In essence, my past self may have understood what this issue tries to capture, but my current self has some lacunas :) Could you offer some clarifications? |
I think it's much simper than that. WordPress itself contains a base theme.json file which contains some preset colors, settings, styles etc. Themes should have a way to opt out of that entirely and start with a base that is empty. |
We already have a mechanism to "opt-out" or tweak core defaults. It's per datum (setting, style, etc). Perhaps my question can be boiled down to: what are the things themes can't do now by overriding the specific things from the core (I want to understand the needs before we jump into adding more complexity. See related #45171 ) |
We have a mechanism for themes to opt out of opinionated styles for blocks, using |
Yes, exactly this. Because in custom client work Core generated styles are pretty much always in the way and breaks existing styles when updating Core. |
Any news on this ? |
The core theme.json (as well as potentially the styles in block.json: #34180) represent some opinions which some themes may not want to inherit. We should build a mechanism in theme.json to disable them.
This is similar to what the
wp-block-styles
theme support does at the moment. See #37255.The text was updated successfully, but these errors were encountered: