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

Section Styles: Enable default block styles to be defined using styles/*.json files #63307

Open
bacoords opened this issue Jul 9, 2024 · 0 comments
Labels
[Type] Enhancement A suggestion for improvement.

Comments

@bacoords
Copy link
Contributor

bacoords commented Jul 9, 2024

What problem does this address?

Theme.json can get rather large/monolithic, the ability to use smaller JSON files (as introduced for theme and block style variations) is leading us towards a more well-organized and composable future for themes. But adding all of your block styles into one theme.json file is still seen as a hurdle for theme builders.

What is your proposed solution?

Right now we can set up block style variations using separate JSON files in /styles/*.json. We should extend this to allow developers to define the default styles for any block using this same approach.

One example could just be support for using

	"title": "Default",
	"slug": "default",

which would be recognized immediately as additional default style choices for blocks.

See also: #38890 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
1 participant