wp-style-engine
Installation
SKILL.md
WordPress Style Engine
Use the Style Engine when input already follows WordPress's structured block style shape or when several selector/declaration pairs must become one stylesheet. It reduces hand-built CSS and preserves preset-token conventions, but it is not a general CSS parser and it does not make arbitrary selectors or at-rules trustworthy.
Choose the public entry point
| Need | Function |
|---|---|
| Convert one block/theme style object to declarations, CSS, and class names | wp_style_engine_get_styles() |
| Compile multiple selector/declaration rules | wp_style_engine_get_stylesheet_from_css_rules() |
| Compile rules accumulated under a request-local context | wp_style_engine_get_stylesheet_from_context() |