mailwind icon indicating copy to clipboard operation
mailwind copied to clipboard

Allow the usage of conditional breakpoint styling

Open prutheus opened this issue 2 years ago • 0 comments

I want to use breakpoint styling in my mail templates, like this:

<div class="flex w-full flex-col items-start gap-3 md:flex-row md:justify-between">

... but mailwind generates following snippet from this line:

<div class="flex w-full flex-col items-start gap-3 md:flex-row md:justify-between" style="box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.75rem;">

So I wonder if tailwind can also build these styles correctly?

prutheus avatar Apr 12 '22 16:04 prutheus