Building a starter Block Theme #4 - Presets in theme.json

Опубликовано: 19 Март 2026
на канале: Daisy Olsen
539
16

In this livestream I went through most of the theme.json settings for adding preset values, including pallette, duotone, gradient, contentWidth, wideWidth, spacing units, and font sizes. Some PHP errors made an appearance to spice things up a bit.

Table of Contents:

00:30 Recap of the previous stream
02:12 Adding a color palette to theme.json and talking about semantic naming of colors
20:52 Adding gradient presets to theme.json
37:55 Adding Duotone presets to theme.json
45:11 Troubleshooting unexpected errors
52:04 Adding widths for contentWidth and wideWidth to theme.json
59:41 A short discussion of px vs rem vs em values
01:03:30 Adding units of measurement presets to theme.json
02:08:03 Adding font size presets to theme.json

**Follow me**
Instagram:   / daisyonwp  
Facebook:   / daisyonwp  
Twitter:   / daisyolsen  
LinkedIn:   / daisyolsen  
GitHub: https://github.com/daisyolsen
WordPress https://profiles.wordpress.org/daisyo/

Chat with me: https://daisyonwp.com/chat-with-daisy

Join me live:   / daisyonwp  
Fridays, 10:30 am ET

**Resources**
Theme Developer Handbook: https://developer.wordpress.org/themes/
Living Reference for theme.json: https://developer.wordpress.org/block...
A Developers Guide to Block Themes Part 1: https://learn.wordpress.org/course/a-...
A Developer's Guide to Block Themes Part 2: https://learn.wordpress.org/course/a-...
Livestream Code Repo: https://github.com/DaisyOlsen/livestr...