Adding Tailwind CSS to custom component

I was able to accomplish this by using the default Tailwind installation docs seen here: Installation - Tailwind CSS.

In my index.tsx file I imported ./output.css.

My file structure looks like so after following the Tailwind installation
image

Hope that helps

3 Likes