-
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 top-level properties to theme.json for author data #68786
Comments
You know, I kind of like this. If this could be added I can see many others liking this also. Thank you for raising it up. |
Thanks for the suggestion.
|
I like the idea of making it easier to share and identify styles. But thinking of this more, I thought there was an intention to move the style.css metadata to the theme.json configuration file. So this needs to be approached carefully in a way that is future proof. Since the purpose is sharing the style, it probably also needs a version. |
@carolinan I also love the idea of adding a @t-hamano Here are responses to your questions.
From the agency side, we create many sites and often reuse different JSON files. This could be theme.json or different style variations, as outlined below. We've started a directory of these, but as they get copied into client themes, we can easily lose track of which one it originated from.
Because these are stored in a repo or shared online, they aren't associated with the theme until a developer copies the file as needed.
I equate the This field would link to the file within a repo. In the future, if w.org implements a styles directory, this field could also link to the directory.
I'm not sure a directory has been suggested in the issues, but I've had conversations with other agencies doing similar things in private and public repos. Like the pattern library, I see a future where users can submit style variations for specific blocks, color palettes, and typography pairings. |
Thanks for the reply. I understand the purpose, but I think it's better to avoid adding fields ahead of something that's not yet determined, like a style directory or style library. Also, the version field is already reserved. My ideas are:
|
What problem does this address?
As style variations gain popularity, developers have increased their activity in sharing custom block style variations, color palettes, sections, and typography styles. By adding new properties, theme developers can add references to their WordPress profile, theme and repository or theme documentation.
This data could also be used in future Style Directories or Style Libraries to provide author credit.
What is your proposed solution?
I propose adding the following properties to the schema for theme.json.
The text was updated successfully, but these errors were encountered: