-
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
add CSS reset theme option #27517
add CSS reset theme option #27517
Conversation
This is an interesting idea. I know that @youknowriad has mentioned in the past that we may want to add some kind of resets when the theme supports theme.json, but I don't know which specific styles he was referring to. Pulling his thoughts here because we may want to do this without the |
I'm pretty sure that was not me :P I personally don't like global resets and I'd love to understand the reasoning more :) |
😅 Ah, it was perhaps not related to resets, but outputting different CSS for some blocks (button)? |
I only ask because if we have a list of things we want to do differently if the theme has a theme.json, we may consolidate the same mechanism for everything. |
The reasoning is that there is a lot of boilerplate code that we ship with every theme, which could be reduced if it was simply part of the editor itself. @youknowriad what don't you like about them? |
Having a reset can break styles especially for things that are supposed to be "context agnostic". For example if you say |
Makes sense. I'll close this one then :) |
I'm not sure if "break" is the right word. Alter might be more suitable. All CSS alters something.
The context in our case: WordPress and/or even Gutenberg. I think that it is likely that this discussion is a lot more nuanced than this and should be explored further. Having a small, specific, per block reset seems fine. However, how would one reset the Also, how would a per block reset look for List block and it's final output on the front end. Would the It might be recommended that there be a combination of reset or normalization in WordPress core and Gutenberg. Ideally, both of them would be able to be dequeued by theme authors in I see that there is still ongoing discussion in #27116, which is encouraging. |
Description
WIP. This adds an option to experimental theme JSON to add a CSS reset
How has this been tested?
Screenshots
Types of changes
Checklist: