2.7 KiB
2.7 KiB
可用样式选项
新的样式选项会定期集成到 theme.json 中。要随时了解通过 theme.json 或样式编辑器可用的样式选项可能具有挑战性。为明确说明,下表列出了每个 theme.json 样式选项可用的 WordPress 版本,以及相应控件添加到用户界面以便通过样式编辑器管理该样式的时间。
样式键值
| 键值 | theme.json 起始版本 | 样式编辑器起始版本 |
|---|---|---|
color.gradient |
5.8 | 5.9 |
color.background |
5.8 | 5.9 |
color.text |
5.8 | 5.9 |
border.color |
5.9 | 5.9 |
border.width |
5.9 | 5.9 |
border.style |
5.9 | 5.9 |
border.radius |
5.8 | 5.9 |
border.radius.topLeft |
5.9 | 5.9 |
border.radius.topRight |
5.9 | 5.9 |
border.radius.bottomLeft |
5.9 | 5.9 |
border.radius.bottomRight |
5.9 | 5.9 |
border.top.color |
6.1 | 6.1 |
border.top.width |
6.1 | 6.1 |
border.top.style |
6.1 | 6.1 |
border.right.color |
6.1 | 6.1 |
border.right.width |
6.1 | 6.1 |
border.right.style |
6.1 | 6.1 |
border.bottom.color |
6.1 | 6.1 |
border.bottom.width |
6.1 | 6.1 |
border.bottom.style |
6.1 | 6.1 |
border.left.color |
6.1 | 6.1 |
border.left.width |
6.1 | 6.1 |
border.left.style |
6.1 | 6.1 |
typography.fontFamily |
5.9 | 5.9 |
typography.fontSize |
5.8 | 5.9 |
typography.fontStyle |
5.9 | 5.9 |
typography.fontWeight |
5.9 | 5.9 |
typography.letterSpacing |
5.9 | 5.9 |
typography.lineHeight |
5.8 | 5.9 |
typography.textDecoration |
5.9 | 6.2 |
typography.textTransform |
5.9 | 6.0 |
spacing.padding |
5.9 | 5.9 |
spacing.padding.top |
5.8 | 5.9 |
spacing.padding.right |
5.8 | 5.9 |
spacing.padding.left |
5.8 | 5.9 |
spacing.padding.bottom |
5.8 | 5.9 |
spacing.margin |
5.9 | 5.9 |
spacing.margin.top |
5.8 | 5.9 |
spacing.margin.right |
5.8 | 5.9 |
spacing.margin.left |
5.8 | 5.9 |
spacing.margin.bottom |
5.8 | 5.9 |
spacing.blockGap |
5.9 | 5.9 |
dimensions.minHeight |
6.2 | 不适用 |
outline.color |
6.2 | 不适用 |
outline.offset |
6.2 | 不适用 |
outline.style |
6.2 | 不适用 |
outline.width |
6.2 | 不适用 |
filter.duotone |
5.9 | 不适用 |
shadow |
6.1 | 6.2 |