Introduction

The @wp-block-tools/styles library returns HTML style and class attributes for the wrapper elements for WordPress blocks. The returned classes are tailwind css specific classes and they’re tailwind css representations of the styles applied via the WordPress block editor. Styles can be returned either as a string or in object form (for use with React). You can check the list of supported styles in the supported styles section.