Using theme.json Presets in Style.css?
-
We are using WordPress 6.6 and created our theme.json to it’s fullest but we still need to add some custom css via style.css. The question is whether it is possible to use the CSS presets from our theme.json file within style.css.
We tried for instance:
color: var(–wp–preset–color–{our-custom-color});
But is it not working. Style.css file does not seem to recognize the preset. The Style.css file is working fine for other general css declarations.Thank for any guidance with this.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Using theme.json Presets in Style.css?’ is closed to new replies.