With Tailwind 2.2 now you can easily use
after pseudo selectors.
Here’s an example:
<p class="flex flex-row items-center before:mr-2 before:bg-gray-400 before:h-2 before:w-2"> Hello Tailwind 2.2 </p>
There are other great new features added to version 2.2, check them out here.Tweet