-
Notifications
You must be signed in to change notification settings - Fork 94
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
Tutorial - Using the Style Book #1340
Comments
Only noting we no longer refer to Styles as Global Styles, like FSE is now just Site Editor. |
Really helpful reminder, Courtney. Thank you so much! **Script Rough Draft [ revised ] ** Imagine you are creating a new website using the block theme, Twenty Twenty-Three. To find its style book, from your dashboard, hover your mouse over the “Appearance” navigation link in the left-hand sidebar and select, "Editor”. Then, click on the site editor to the right. Click the "Styles" icon in the top right-hand corner. Then, select the "Eye" icon that appears. This is your block theme’s personal style book! From here, you can see how the stylistic changes you make will affect the appearance of your website. Depending on your block theme's options, I can make sweeping changes to my fonts, change my background color, and in some themes, even adjust the layout options. This WordPress Stylebook provides five tabs--text, media, design, widgets and theme, so that I can quickly see the changes I make take effect without having any content on your site—yet! Any future content I write or any existing content on my website will have this style applied to it. For example, let's say that this is a photography blog, and I would like every photo I upload to be displayed on my website in black and white. This saves me time as a photographer, as now I do not need to edit each photo individually in a separate program, or add a filter to every photo I upload. The stylebook also also allows me to add individual styles onto specific blocks. For example, say I am a writer and will often use the quote block on this website. I would like to customize just this one block, because I would always like my quotes to stand out from the rest of the text. I navigate to the quote block by clicking it on my screen under the 'text' tab. This takes me to the quote block. From here, I can make changes to the font that only affect the quote block. I select a font that I’d like to use for my future or existing quotes, make it a little larger. Finally, I make it italic. Now, my quote block will always stand out, even if I make sweeping changes to the rest of the text Pro-Tip: To avoid a theme design headache in the future, I recommend that you stylize individual blocks sparingly. Notice how I changed the font globally under general styles > text. Did you notice that the quote block I just styled did not change? Let's say you find and install a cool new font that you'd like to use everywhere. If If I styled every single text block individually, when I make what I hope will be a big change site-wide to ALL the text, my individually styled text blocks will not change. To reset a single block’s style back to the default, I can head back to block’s individual styles settings either by clicking on it again,, or by navigating to it in the styles panel on the right by clicking 'blocks' and then 'quote'. If I reset this block to the "default" font, that tells WordPress to use the font I set in the site-wide styles you see when you first enter global styles. Now, that will allow me to style my website’s fonts—quotes and all—in one place. The changes I will make to my text site-wide (rather than in this individual block) mean that if I change my font, it will now also apply to this individual block. With thoughtful design, I can get started working on my new website from scratch, or I can give my existing content a brand new look with quick clicks of a button. The style book also allows me to double-check my website for accessibility. For example, I noticed that the calendar widget on this theme is not accessible with the color scheme I picked; the contrast is not high enough. For this specific instance, I customize this block to my liking, and now anyone who requires strong contrast to be able to read will be able to read this calendar. Now you know how to use the WordPress stylebook with your block theme! To learn more about the features coming out in WordPress 6.2, please visit learn.wordpress.org for more tutorials, online workshops, and courses. See you next time! |
Video + Sound recording complete. Needs annotations and a re-record for some odd clicking noises. |
Brief Slides for this tutorial: https://docs.google.com/presentation/d/1VxN2fQqyXdiWfLXqF4mYqMFyEy0KIzKTBUfso-VGxYg/edit?usp=sharing |
Ready for Review: (Rough draft)
Thank you all for your time! |
Overall ImpressionThis is needed and expertly done! It was clear and enjoyable to watch. 🙂 Specific Feedback
|
Love it. Very clear and easy to follow. |
I love it, thank you for putting it together 🙂 One question, how does the style book interact with styles set for individual blocks in theme.json? which one takes precedence? |
Great tutorial, Sarah! It sunk in for me while watching as well! |
@lada7042 will be updating this tutorial for the learning pathways project. Thank you, Laura |
@westnz Is there a time limit you have for these? I added to the script more on the features that are there: Browse styles, typography, colors, layout. I am keeping the quote block example but updating the information. The original mentioned checking accessibility in the style book I changed to to checking the font since the 2024 theme colors are already accessible. |
Hey @lada7042 |
@westnz Most tutorials are only in English. Please remember that not all viewers are native speakers. To absorb technical content, it is very important that the presenter speaks slowly with enough pauses, even if the viewer understands English. The same is true for any beginner WordPress users. Understanding technical concepts is more difficult than watching a movie. :-) |
Good point @gudrunfrank and completely agree. I definitely keep that in mind when creating content. Maintaining a consistent pace is another important factor to consider during the recording process. :-) |
@annezazu Could you please clarify a previous question that I don't know the answer to? I would like to be able to address it in the updated recording for the learning pathways. |
Do you mean something like having a style variation set in theme.json for an individual block? If so, you'll see it appear in Styles > Blocks > The block with the variation. |
Hey @lada7042 |
@westnz Should be done by Friday? |
Please review Using the Style Book using the Reviewer template found in Guidelines for reviewing content |
Tutorial/Lessons Review ChecklistPlease tick all items you've confirmed:
Well done, Laura 😃 Some extra feedback:
|
Thanks @westnz for the review I updated the video with your recommendations. |
Please review Using the Style Book using the Reviewer template found in Guidelines for reviewing content Using-Style-Book-Lesson.mp4 |
Tutorial/Lessons Review ChecklistPlease tick all items you've confirmed:
Well done. |
transcript- 0:40 3:25 5:58 7:26 8:20 |
//publish |
YouTube link: https://youtu.be/NLnKutKvrt8 |
Sensei lesson to be created: https://learn.wordpress.org/wp-admin/post.php?post=140825&action=edit |
Thank you @westnz Sensei lesson complete: https://learn.wordpress.org/lesson/using-the-style-book/ |
Topic Description
Based off of @westnz 's comment about styling your site with global styles here, -- using a stylebook to globally style your website is an efficient and simple way to see what changes you are making on a global scale as you get started designing your block theme. This discusses the benefits and allows folks to more strongly differentiate between a local change and one that impacts an entire site globally and would complement that linked lesson plan.
Related Resources
Links to related content on Learn, HelpHub, DevHub, GitHub Gutenberg Issues, DevNotes, etc.
Guidelines
Review the team guidelines
Tutorial Development Checklist
The text was updated successfully, but these errors were encountered: