You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
theme.json generates font size and font family variables with mixed kebab-case and wp--kebab--case, for example: --wp--preset--font-family--headline or --wp--preset--font-size--lg.
This throws stylelint error: Expected custom property name to be kebab-case or wp--kebab--case custom-property-pattern
Steps to Reproduce
Add font size or font family variable in theme.json
Use generated variable in theme CSS
Stylelint throws error
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Describe the bug
Related to #300 and #314
theme.json generates font size and font family variables with mixed kebab-case and wp--kebab--case, for example:
--wp--preset--font-family--headline
or--wp--preset--font-size--lg
.This throws stylelint error:
Expected custom property name to be kebab-case or wp--kebab--case custom-property-pattern
Steps to Reproduce
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: