Skip to content
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

Move blocks and extensions, filters, plugins to a new plugin for blocks #248

Open
tobeycodes opened this issue Nov 11, 2024 · 0 comments
Open

Comments

@tobeycodes
Copy link
Member

We are currently loading blocks from the theme. Blocks are not tightly coupled to a theme. We should be writing CSS in viewStyles rather than in the CSS of the theme. This is better for CWV when using a block based theme as the styles will not load if the block is not on the page.

This makes it far easier to build multiple themes that share custom blocks or when working on projects that have a design refresh and need to more easily update their frontend to match new designs

plugins/block-library would have the scaffold generation and any block related code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant