OneBite.Dev - Coding blog in a bite size

How to add word space in tailwind CSS

Is there any way to have a word space in tailwind? Yes, this is useful if you want to have a distance / space between word

Is there any way to have a word space in tailwind? Yes, this is useful if you want to have a distance / space between word.

Even though it’s not part of utility yet (not sure why). We can use the flexibility of tailwind using arbitary values. Here’s how I implemented it

<div class="[word-spacing:-20px]"> my words is long</div>
tailwind