样式选项会定期集成到 theme.json 中。随时了解通过 theme.json 或样式编辑器可用的样式选项可能具有挑战性。为了澄清,下表显示了每个 theme.json 样式选项可用时的 WordPress 版本,以及向用户界面添加相应控件以允许从样式编辑器管理样式的时间。

样式键

键theme.json 起始版本样式编辑器起始版本
color.gradient5.85.9
color.background5.85.9
color.text5.85.9
border.color5.95.9
border.width5.95.9
border.style5.95.9
border.radius5.85.9
border.radius.topLeft5.95.9
border.radius.topRight5.95.9
border.radius.bottomLeft5.95.9
border.radius.bottomRight5.95.9
border.top.color6.16.1
border.top.width6.16.1
border.top.style6.16.1
border.right.color6.16.1
border.right.width6.16.1
border.right.style6.16.1
border.bottom.color6.16.1
border.bottom.width6.16.1
border.bottom.style6.16.1
border.left.color6.16.1
border.left.width6.16.1
border.left.style6.16.1
typography.fontFamily5.95.9
typography.fontSize5.85.9
typography.fontStyle5.95.9
typography.fontWeight5.95.9
typography.letterSpacing5.95.9
typography.lineHeight5.85.9
typography.textAlign6.66.6
typography.textColumns6.1N/A
typography.textDecoration5.96.2
typography.textIndent7.07.0
typography.textShadow7.1N/A
typography.textTransform5.96.0
typography.writingMode6.36.3
spacing.padding5.95.9
spacing.padding.top5.85.9
spacing.padding.right5.85.9
spacing.padding.left5.85.9
spacing.padding.bottom5.85.9
spacing.margin5.95.9
spacing.margin.top5.85.9
spacing.margin.right5.85.9
spacing.margin.left5.85.9
spacing.margin.bottom5.85.9
spacing.blockGap5.95.9
background.backgroundAttachment6.76.7
background.backgroundImage6.46.5
background.backgroundPosition6.66.6
background.backgroundRepeat6.66.6
background.backgroundSize6.66.6
dimensions.aspectRatio6.56.6
dimensions.height7.0N/A
dimensions.minHeight6.2N/A
dimensions.minWidth7.17.1
dimensions.width7.0N/A
outline.color6.2N/A
outline.offset6.2N/A
outline.style6.2N/A
outline.width6.2N/A
filter.duotone5.9N/A
shadow6.16.2