Thanks for this module, I use it everywhere I use Layout Builder - which is most sites I touch.
Problem/Motivation
I have Tailwind set up to scan the Drupal config directory during build and this then adds any classes that it finds into the final css. This way anything added to the config of a view, block or layout builder class etc gets added.
The problem is that TW build doesn't recognise:
classes: "container\r\nmax-w-md\r\ntw-mx-auto"
as containing any valid TW classes.
It does recognise:
classes: " container \r\n max-w-md \r\n tw-mx-auto "
so there is an easy workaround, it results in a bit more whitespace in the HTML, but that's okay with me.
Putting multiple classes on a single line with spaces as needed also works, but is contrary to the instructions on the field when adding/editing classes.
Proposed resolution
If the classes were stored as an array then it would solve the issue without any need for a workaround.
classes:
- container
- max-w-md
- mx-auto