Interface: WpThemeJSON
Defined in: packages/core/src/react/provider/types.ts:95
Properties
$schema?
optional$schema:string
Defined in: packages/core/src/react/provider/types.ts:99
JSON schema URI for theme.json.
customTemplates?
optionalcustomTemplates:object[]
Defined in: packages/core/src/react/provider/types.ts:319
Additional metadata for custom templates defined in the templates folder.
name
name:
string
Filename, without extension, of the template in the templates folder.
postTypes?
optionalpostTypes:string[]
List of post types that can use this custom template.
title
title:
string
Title of the template, translatable.
settings?
optionalsettings:SettingsProperties&object
Defined in: packages/core/src/react/provider/types.ts:111
Settings for the block editor and individual blocks. These include things like:
- Which customization options should be available to the user.
- The default colors, font sizes... available to the user.
- CSS custom properties and class names used in styles.
- And the default layout of the editor (widths and available alignments).
Type declaration
blocks?
optionalblocks:object
Settings defined on a per-block basis.
blocks.core/archives?
optionalblocks.core/archives:SettingsPropertiesComplete
blocks.core/audio?
optionalblocks.core/audio:SettingsPropertiesComplete
blocks.core/block?
optionalblocks.core/block:SettingsPropertiesComplete
blocks.core/button?
optionalblocks.core/button:SettingsPropertiesComplete
blocks.core/buttons?
optionalblocks.core/buttons:SettingsPropertiesComplete
blocks.core/calendar?
optionalblocks.core/calendar:SettingsPropertiesComplete
blocks.core/categories?
optionalblocks.core/categories:SettingsPropertiesComplete
blocks.core/code?
optionalblocks.core/code:SettingsPropertiesComplete
blocks.core/column?
optionalblocks.core/column:SettingsPropertiesComplete
blocks.core/columns?
optionalblocks.core/columns:SettingsPropertiesComplete
blocks.core/comment-author-avatar?
optionalblocks.core/comment-author-avatar:SettingsPropertiesComplete
blocks.core/comment-author-name?
optionalblocks.core/comment-author-name:SettingsPropertiesComplete
blocks.core/comment-content?
optionalblocks.core/comment-content:SettingsPropertiesComplete
blocks.core/comment-date?
optionalblocks.core/comment-date:SettingsPropertiesComplete
blocks.core/comment-edit-link?
optionalblocks.core/comment-edit-link:SettingsPropertiesComplete
blocks.core/comment-reply-link?
optionalblocks.core/comment-reply-link:SettingsPropertiesComplete
blocks.core/comment-template?
optionalblocks.core/comment-template:SettingsPropertiesComplete
blocks.core/comments-query-loop?
optionalblocks.core/comments-query-loop:SettingsPropertiesComplete
blocks.core/cover?
optionalblocks.core/cover:SettingsPropertiesComplete
blocks.core/embed?
optionalblocks.core/embed:SettingsPropertiesComplete
blocks.core/file?
optionalblocks.core/file:SettingsPropertiesComplete
blocks.core/freeform?
optionalblocks.core/freeform:SettingsPropertiesComplete
blocks.core/gallery?
optionalblocks.core/gallery:SettingsPropertiesComplete
blocks.core/group?
optionalblocks.core/group:SettingsPropertiesComplete
blocks.core/heading?
optionalblocks.core/heading:SettingsPropertiesComplete
blocks.core/home-link?
optionalblocks.core/home-link:SettingsPropertiesComplete
blocks.core/html?
optionalblocks.core/html:SettingsPropertiesComplete
blocks.core/image?
optionalblocks.core/image:SettingsPropertiesComplete
blocks.core/latest-comments?
optionalblocks.core/latest-comments:SettingsPropertiesComplete
blocks.core/latest-posts?
optionalblocks.core/latest-posts:SettingsPropertiesComplete
blocks.core/legacy-widget?
optionalblocks.core/legacy-widget:SettingsPropertiesComplete
blocks.core/list?
optionalblocks.core/list:SettingsPropertiesComplete
blocks.core/loginout?
optionalblocks.core/loginout:SettingsPropertiesComplete
blocks.core/media-text?
optionalblocks.core/media-text:SettingsPropertiesComplete
blocks.core/missing?
optionalblocks.core/missing:SettingsPropertiesComplete
blocks.core/more?
optionalblocks.core/more:SettingsPropertiesComplete
blocks.core/navigation?
optionalblocks.core/navigation:SettingsPropertiesComplete
blocks.core/navigation-link?
optionalblocks.core/navigation-link:SettingsPropertiesComplete
blocks.core/nextpage?
optionalblocks.core/nextpage:SettingsPropertiesComplete
blocks.core/page-list?
optionalblocks.core/page-list:SettingsPropertiesComplete
blocks.core/paragraph?
optionalblocks.core/paragraph:SettingsPropertiesComplete
blocks.core/post-author?
optionalblocks.core/post-author:SettingsPropertiesComplete
blocks.core/post-comments?
optionalblocks.core/post-comments:SettingsPropertiesComplete
blocks.core/post-comments-count?
optionalblocks.core/post-comments-count:SettingsPropertiesComplete
blocks.core/post-comments-form?
optionalblocks.core/post-comments-form:SettingsPropertiesComplete
blocks.core/post-comments-link?
optionalblocks.core/post-comments-link:SettingsPropertiesComplete
blocks.core/post-content?
optionalblocks.core/post-content:SettingsPropertiesComplete
blocks.core/post-date?
optionalblocks.core/post-date:SettingsPropertiesComplete
blocks.core/post-excerpt?
optionalblocks.core/post-excerpt:SettingsPropertiesComplete
blocks.core/post-featured-image?
optionalblocks.core/post-featured-image:SettingsPropertiesComplete
blocks.core/post-navigation-link?
optionalblocks.core/post-navigation-link:SettingsPropertiesComplete
blocks.core/post-template?
optionalblocks.core/post-template:SettingsPropertiesComplete
blocks.core/post-terms?
optionalblocks.core/post-terms:SettingsPropertiesComplete
blocks.core/post-title?
optionalblocks.core/post-title:SettingsPropertiesComplete
blocks.core/preformatted?
optionalblocks.core/preformatted:SettingsPropertiesComplete
blocks.core/pullquote?
optionalblocks.core/pullquote:SettingsPropertiesComplete
blocks.core/query?
optionalblocks.core/query:SettingsPropertiesComplete
blocks.core/query-pagination?
optionalblocks.core/query-pagination:SettingsPropertiesComplete
blocks.core/query-pagination-next?
optionalblocks.core/query-pagination-next:SettingsPropertiesComplete
blocks.core/query-pagination-numbers?
optionalblocks.core/query-pagination-numbers:SettingsPropertiesComplete
blocks.core/query-pagination-previous?
optionalblocks.core/query-pagination-previous:SettingsPropertiesComplete
blocks.core/query-title?
optionalblocks.core/query-title:SettingsPropertiesComplete
blocks.core/quote?
optionalblocks.core/quote:SettingsPropertiesComplete
blocks.core/rss?
optionalblocks.core/rss:SettingsPropertiesComplete
blocks.core/search?
optionalblocks.core/search:SettingsPropertiesComplete
blocks.core/separator?
optionalblocks.core/separator:SettingsPropertiesComplete
blocks.core/shortcode?
optionalblocks.core/shortcode:SettingsPropertiesComplete
blocks.core/site-logo?
optionalblocks.core/site-logo:SettingsPropertiesComplete
blocks.core/site-tagline?
optionalblocks.core/site-tagline:SettingsPropertiesComplete
blocks.core/site-title?
optionalblocks.core/site-title:SettingsPropertiesComplete
blocks.core/social-link?
optionalblocks.core/social-link:SettingsPropertiesComplete
blocks.core/social-links?
optionalblocks.core/social-links:SettingsPropertiesComplete
blocks.core/spacer?
optionalblocks.core/spacer:SettingsPropertiesComplete
blocks.core/table?
optionalblocks.core/table:SettingsPropertiesComplete
blocks.core/table-of-contents?
optionalblocks.core/table-of-contents:SettingsPropertiesComplete
blocks.core/tag-cloud?
optionalblocks.core/tag-cloud:SettingsPropertiesComplete
blocks.core/template-part?
optionalblocks.core/template-part:SettingsPropertiesComplete
blocks.core/term-description?
optionalblocks.core/term-description:SettingsPropertiesComplete
blocks.core/text-columns?
optionalblocks.core/text-columns:SettingsPropertiesComplete
blocks.core/verse?
optionalblocks.core/verse:SettingsPropertiesComplete
blocks.core/video?
optionalblocks.core/video:SettingsPropertiesComplete
blocks.core/widget-area?
optionalblocks.core/widget-area:SettingsPropertiesComplete
blocks.core/widget-group?
optionalblocks.core/widget-group:SettingsPropertiesComplete
border?
optionalborder:object
border.color?
optionalborder.color:boolean
Allow users to set custom border colors.
border.radius?
optionalborder.radius:boolean
Allow users to set custom border radius.
border.style?
optionalborder.style:boolean
Allow users to set custom border styles.
border.width?
optionalborder.width:boolean
Allow users to set custom border widths.
color?
optionalcolor:object
color.background?
optionalcolor.background:boolean
Allow users to set background colors.
color.custom?
optionalcolor.custom:boolean
Allow users to select custom colors.
color.customDuotone?
optionalcolor.customDuotone:boolean
Allow users to create custom duotone filters.
color.customGradient?
optionalcolor.customGradient:boolean
Allow users to create custom gradients.
color.defaultGradients?
optionalcolor.defaultGradients:boolean
Allow users to choose colors from the default gradients.
color.defaultPalette?
optionalcolor.defaultPalette:boolean
Allow users to choose colors from the default palette.
color.duotone?
optionalcolor.duotone:SettingsDuotone
Duotone presets for the duotone picker. Doesn't generate classes or properties.
color.gradients?
optionalcolor.gradients:SettingsGradient
Gradient presets for the gradient picker.
Generates a single class (.has-{slug}-background) and custom property (--wp--preset--gradient--{slug}) per preset value.
color.link?
optionalcolor.link:boolean
Allow users to set link colors.
color.palette?
optionalcolor.palette:SettingsColorPalette
Color palette presets for the color picker.
Generates three classes (.has-{slug}-color, .has-{slug}-background-color, and .has-{slug}-border-color) and a single custom property (--wp--preset--color--{slug}) per preset value.
color.text?
optionalcolor.text:boolean
Allow users to set text colors.
custom?
optionalcustom:object
Index Signature
[k: string]: string | number | SettingsCustomAdditionalProperties
layout?
optionallayout:object
layout.contentSize?
optionallayout.contentSize:string
Sets the max-width of the content.
layout.wideSize?
optionallayout.wideSize:string
Sets the max-width of wide (.alignwide) content.
spacing?
optionalspacing:object
spacing.blockGap?
optionalspacing.blockGap:null|boolean
Enables --wp--style--block-gap to be generated from styles.spacing.blockGap.
A value of null instead of false further disables layout styles from being generated.
spacing.margin?
optionalspacing.margin:boolean
Allow users to set a custom margin.
spacing.padding?
optionalspacing.padding:boolean
Allow users to set a custom padding.
spacing.units?
optionalspacing.units:string[]
List of units the user can use for spacing values.
typography?
optionaltypography:object
typography.customFontSize?
optionaltypography.customFontSize:boolean
Allow users to set custom font sizes.
typography.dropCap?
optionaltypography.dropCap:boolean
Enable drop cap.
typography.fontFamilies?
optionaltypography.fontFamilies:object[]
Font family presets for the font family selector.
Generates a single custom property (--wp--preset--font-family--{slug}) per preset value.
typography.fontSizes?
optionaltypography.fontSizes:object[]
Font size presets for the font size selector.
Generates a single class (.has-{slug}-color) and custom property (--wp--preset--font-size--{slug}) per preset value.
typography.fontStyle?
optionaltypography.fontStyle:boolean
Allow users to set custom font styles.
typography.fontWeight?
optionaltypography.fontWeight:boolean
Allow users to set custom font weights.
typography.letterSpacing?
optionaltypography.letterSpacing:boolean
Allow users to set custom letter spacing.
typography.lineHeight?
optionaltypography.lineHeight:boolean
Allow users to set custom line height.
typography.textDecoration?
optionaltypography.textDecoration:boolean
Allow users to set custom text decorations.
typography.textTransform?
optionaltypography.textTransform:boolean
Allow users to set custom text transforms.
styles?
optionalstyles:StylesProperties&object
Defined in: packages/core/src/react/provider/types.ts:210
Organized way to set CSS properties. Styles in the top-level will be added in the body selector.
Type declaration
blocks?
optionalblocks:object
Styles defined on a per-block basis using the block's selector.
blocks.core/archives?
optionalblocks.core/archives:StylesPropertiesAndElementsComplete
blocks.core/audio?
optionalblocks.core/audio:StylesPropertiesAndElementsComplete
blocks.core/block?
optionalblocks.core/block:StylesPropertiesAndElementsComplete
blocks.core/button?
optionalblocks.core/button:StylesPropertiesAndElementsComplete
blocks.core/buttons?
optionalblocks.core/buttons:StylesPropertiesAndElementsComplete
blocks.core/calendar?
optionalblocks.core/calendar:StylesPropertiesAndElementsComplete
blocks.core/categories?
optionalblocks.core/categories:StylesPropertiesAndElementsComplete
blocks.core/code?
optionalblocks.core/code:StylesPropertiesAndElementsComplete
blocks.core/column?
optionalblocks.core/column:StylesPropertiesAndElementsComplete
blocks.core/columns?
optionalblocks.core/columns:StylesPropertiesAndElementsComplete
blocks.core/comment-author-avatar?
optionalblocks.core/comment-author-avatar:StylesPropertiesAndElementsComplete
blocks.core/comment-author-name?
optionalblocks.core/comment-author-name:StylesPropertiesAndElementsComplete
blocks.core/comment-content?
optionalblocks.core/comment-content:StylesPropertiesAndElementsComplete
blocks.core/comment-date?
optionalblocks.core/comment-date:StylesPropertiesAndElementsComplete
blocks.core/comment-edit-link?
optionalblocks.core/comment-edit-link:StylesPropertiesAndElementsComplete
blocks.core/comment-reply-link?
optionalblocks.core/comment-reply-link:StylesPropertiesAndElementsComplete
blocks.core/comment-template?
optionalblocks.core/comment-template:StylesPropertiesAndElementsComplete
blocks.core/comments-query-loop?
optionalblocks.core/comments-query-loop:StylesPropertiesAndElementsComplete
blocks.core/cover?
optionalblocks.core/cover:StylesPropertiesAndElementsComplete
blocks.core/embed?
optionalblocks.core/embed:StylesPropertiesAndElementsComplete
blocks.core/file?
optionalblocks.core/file:StylesPropertiesAndElementsComplete
blocks.core/freeform?
optionalblocks.core/freeform:StylesPropertiesAndElementsComplete
blocks.core/gallery?
optionalblocks.core/gallery:StylesPropertiesAndElementsComplete
blocks.core/group?
optionalblocks.core/group:StylesPropertiesAndElementsComplete
blocks.core/heading?
optionalblocks.core/heading:StylesPropertiesAndElementsComplete
blocks.core/home-link?
optionalblocks.core/home-link:StylesPropertiesAndElementsComplete
blocks.core/html?
optionalblocks.core/html:StylesPropertiesAndElementsComplete
blocks.core/image?
optionalblocks.core/image:StylesPropertiesAndElementsComplete
blocks.core/latest-comments?
optionalblocks.core/latest-comments:StylesPropertiesAndElementsComplete
blocks.core/latest-posts?
optionalblocks.core/latest-posts:StylesPropertiesAndElementsComplete
blocks.core/legacy-widget?
optionalblocks.core/legacy-widget:StylesPropertiesAndElementsComplete
blocks.core/list?
optionalblocks.core/list:StylesPropertiesAndElementsComplete
blocks.core/loginout?
optionalblocks.core/loginout:StylesPropertiesAndElementsComplete
blocks.core/media-text?
optionalblocks.core/media-text:StylesPropertiesAndElementsComplete
blocks.core/missing?
optionalblocks.core/missing:StylesPropertiesAndElementsComplete
blocks.core/more?
optionalblocks.core/more:StylesPropertiesAndElementsComplete
blocks.core/navigation?
optionalblocks.core/navigation:StylesPropertiesAndElementsComplete
blocks.core/navigation-link?
optionalblocks.core/navigation-link:StylesPropertiesAndElementsComplete
blocks.core/nextpage?
optionalblocks.core/nextpage:StylesPropertiesAndElementsComplete
blocks.core/page-list?
optionalblocks.core/page-list:StylesPropertiesAndElementsComplete
blocks.core/paragraph?
optionalblocks.core/paragraph:StylesPropertiesAndElementsComplete
blocks.core/post-author?
optionalblocks.core/post-author:StylesPropertiesAndElementsComplete
blocks.core/post-comments?
optionalblocks.core/post-comments:StylesPropertiesAndElementsComplete
blocks.core/post-comments-count?
optionalblocks.core/post-comments-count:StylesPropertiesAndElementsComplete
blocks.core/post-comments-form?
optionalblocks.core/post-comments-form:StylesPropertiesAndElementsComplete
blocks.core/post-comments-link?
optionalblocks.core/post-comments-link:StylesPropertiesAndElementsComplete
blocks.core/post-content?
optionalblocks.core/post-content:StylesPropertiesAndElementsComplete
blocks.core/post-date?
optionalblocks.core/post-date:StylesPropertiesAndElementsComplete
blocks.core/post-excerpt?
optionalblocks.core/post-excerpt:StylesPropertiesAndElementsComplete
blocks.core/post-featured-image?
optionalblocks.core/post-featured-image:StylesPropertiesAndElementsComplete
blocks.core/post-navigation-link?
optionalblocks.core/post-navigation-link:StylesPropertiesAndElementsComplete
blocks.core/post-template?
optionalblocks.core/post-template:StylesPropertiesAndElementsComplete
blocks.core/post-terms?
optionalblocks.core/post-terms:StylesPropertiesAndElementsComplete
blocks.core/post-title?
optionalblocks.core/post-title:StylesPropertiesAndElementsComplete
blocks.core/preformatted?
optionalblocks.core/preformatted:StylesPropertiesAndElementsComplete
blocks.core/pullquote?
optionalblocks.core/pullquote:StylesPropertiesAndElementsComplete
blocks.core/query?
optionalblocks.core/query:StylesPropertiesAndElementsComplete
blocks.core/query-pagination?
optionalblocks.core/query-pagination:StylesPropertiesAndElementsComplete
blocks.core/query-pagination-next?
optionalblocks.core/query-pagination-next:StylesPropertiesAndElementsComplete
blocks.core/query-pagination-numbers?
optionalblocks.core/query-pagination-numbers:StylesPropertiesAndElementsComplete
blocks.core/query-pagination-previous?
optionalblocks.core/query-pagination-previous:StylesPropertiesAndElementsComplete
blocks.core/query-title?
optionalblocks.core/query-title:StylesPropertiesAndElementsComplete
blocks.core/quote?
optionalblocks.core/quote:StylesPropertiesAndElementsComplete
blocks.core/rss?
optionalblocks.core/rss:StylesPropertiesAndElementsComplete
blocks.core/search?
optionalblocks.core/search:StylesPropertiesAndElementsComplete
blocks.core/separator?
optionalblocks.core/separator:StylesPropertiesAndElementsComplete
blocks.core/shortcode?
optionalblocks.core/shortcode:StylesPropertiesAndElementsComplete
blocks.core/site-logo?
optionalblocks.core/site-logo:StylesPropertiesAndElementsComplete
blocks.core/site-tagline?
optionalblocks.core/site-tagline:StylesPropertiesAndElementsComplete
blocks.core/site-title?
optionalblocks.core/site-title:StylesPropertiesAndElementsComplete
blocks.core/social-link?
optionalblocks.core/social-link:StylesPropertiesAndElementsComplete
blocks.core/social-links?
optionalblocks.core/social-links:StylesPropertiesAndElementsComplete
blocks.core/spacer?
optionalblocks.core/spacer:StylesPropertiesAndElementsComplete
blocks.core/table?
optionalblocks.core/table:StylesPropertiesAndElementsComplete
blocks.core/table-of-contents?
optionalblocks.core/table-of-contents:StylesPropertiesAndElementsComplete
blocks.core/tag-cloud?
optionalblocks.core/tag-cloud:StylesPropertiesAndElementsComplete
blocks.core/template-part?
optionalblocks.core/template-part:StylesPropertiesAndElementsComplete
blocks.core/term-description?
optionalblocks.core/term-description:StylesPropertiesAndElementsComplete
blocks.core/text-columns?
optionalblocks.core/text-columns:StylesPropertiesAndElementsComplete
blocks.core/verse?
optionalblocks.core/verse:StylesPropertiesAndElementsComplete
blocks.core/video?
optionalblocks.core/video:StylesPropertiesAndElementsComplete
blocks.core/widget-area?
optionalblocks.core/widget-area:StylesPropertiesAndElementsComplete
blocks.core/widget-group?
optionalblocks.core/widget-group:StylesPropertiesAndElementsComplete
border?
optionalborder:unknown
color?
optionalcolor:unknown
elements?
optionalelements:object
Styles defined on a per-element basis using the element's selector.
elements.h1?
optionalelements.h1:StylesPropertiesComplete
elements.h2?
optionalelements.h2:StylesPropertiesComplete
elements.h3?
optionalelements.h3:StylesPropertiesComplete
elements.h4?
optionalelements.h4:StylesPropertiesComplete
elements.h5?
optionalelements.h5:StylesPropertiesComplete
elements.h6?
optionalelements.h6:StylesPropertiesComplete
elements.link?
optionalelements.link:StylesPropertiesComplete
spacing?
optionalspacing:unknown
typography?
optionaltypography:unknown
templateParts?
optionaltemplateParts:object[]
Defined in: packages/core/src/react/provider/types.ts:336
Additional metadata for template parts defined in the parts folder.
area?
optionalarea:string
The area the template part is used for. Block variations for header and footer values exist and will be used when the area is set to one of those.
name
name:
string
Filename, without extension, of the template in the parts folder.
title?
optionaltitle:string
Title of the template, translatable.
version
version:
2
Defined in: packages/core/src/react/provider/types.ts:103
Version of theme.json to use.