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

You don't need CSS for that: All the ways you can use theme.json for styling #308

Closed
bph opened this issue Sep 10, 2024 Discussed in #302 · 6 comments
Closed

You don't need CSS for that: All the ways you can use theme.json for styling #308

bph opened this issue Sep 10, 2024 Discussed in #302 · 6 comments
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Sep 10, 2024

Discussed in #302

Originally posted by justintadlock September 3, 2024
Some feedback from devs on a specific project (CC: @mikachan):

They weren’t aware of all the options available in theme.json and didn’t realise how much SCSS could be moved there.

While most of the options are documented in the Theme Handbook, those docs don't really show the various use cases. Sometimes, a walkthrough is needed for folks to understand how these pieces connect.

The goal is here to write a tutorial that's aimed at classic themers (and new themers) on really using theme.json to style their themes. The tutorial would cover things like:

  • Defining presets (standard and custom) via the settings object
  • Working with the styles object to design basic and more complex designs
  • Using style variations (theme, block/section, color, and typography) instead of CSS
  • When you must revert back to using CSS/stylesheets

Basically, we have the docs in place that describes what things are. Now it's time to show how to actually use them.

@bph bph moved this from To-do to Needs a writer in Developer Blog Content Board Sep 10, 2024
@justintadlock justintadlock self-assigned this Sep 10, 2024
@bph bph moved this from Needs a writer to To-do in Developer Blog Content Board Sep 26, 2024
@justintadlock justintadlock moved this from To-do to In Progress in Developer Blog Content Board Oct 7, 2024
@justintadlock justintadlock moved this from In Progress to Needs 1st review in Developer Blog Content Board Oct 11, 2024
@justintadlock
Copy link

It's still a little rough around the edges (I'll do some cleanup tomorrow), but I think this one's ready for its first review: https://docs.google.com/document/d/1llxfUFGUQIfcfkzzV6DNUapouadHlXAjcQ_UF4yHaow/edit?usp=sharing

The article morphed a bit into more of an overview of all the different ways to style things with less focus on the "vs. CSS" part.

@bph
Copy link
Collaborator Author

bph commented Oct 16, 2024

@justintadlock I am done with a review and left some comments on the post. Learned quite a few new things and appreciate pulling the details into a big picture post. It could use a few more links to other articles on the developer blog in a resource section.

@justintadlock
Copy link

Thank you, @bph. I added a Resources section at the end and will do an in-content link review too before publishing (I usually do this anyway).

@justintadlock justintadlock moved this from Needs 1st review to Needs 2nd review in Developer Blog Content Board Oct 16, 2024
@justintadlock
Copy link

Leaving this open for @marybaum since she has already started on one of the reviews.

@justintadlock justintadlock moved this from Done w/ 2nd review to Needs 2nd review in Developer Blog Content Board Oct 17, 2024
@justintadlock justintadlock moved this from Needs 2nd review to Ready to publish in Developer Blog Content Board Oct 17, 2024
@justintadlock
Copy link

Social copy:

A few handy tricks and shortcuts for theme authors to master theme.json and build with the Global Styles system:

https://developer.wordpress.org/news/2024/10/17/mastering-theme-json-you-might-not-need-css/

@justintadlock justintadlock moved this from Ready to publish to Published (Done) in Developer Blog Content Board Oct 22, 2024
@jonathanbossenger
Copy link

Scheduled on social for November 7th

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Published (Done)
Development

No branches or pull requests

3 participants