Skip to content

Implement front-end styling for blocks #963

@jasmussen

Description

@jasmussen

Some blocks will require support from the theme to be displayed properly on the front end, both in terms of theme_support as well as loading relevant styles (gallery columns) that we so chose to not render inline.


Extracting from #422:

there’s been some chatter about how themes could define support for blocks or block controls (like image full bleed). maybe something with that and add_theme_support ?

seems we might need to allow a base stylesheet for a block, plus editor and/or front-end specific extras

So, this likely means that more blocks will need to register themselves on the server side, and we'll need to allow the register_block function to accept values for these stylesheets.

Edit: also worth considering: themes themselves will probably want to add styles for individual blocks.

See also #289.

Metadata

Metadata

Assignees

Labels

Gutenberg PluginIssues or PRs related to Gutenberg Plugin management related efforts[Priority] HighUsed to indicate top priority items that need quick attention[Type] TaskIssues or PRs that have been broken down into an individual action to take

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions