DEV Community

Akhil
Akhil

Posted on • Updated on

React + Tailwind starter template

I struggled a lot to integrate Tailwindcss with create-react-app few months back while working on a pet-project. Since then I thought of creating a starter template out of it so that new projects can be easily bootstrapped with that.
Finally I created a starter template with cra + tailwindcss.

https://github.com/WorkNTrack/create-react-app-tailwind-starter

It can be used to quickly get started with zero configurations. Production builds are enabled with purge so that unused css won't be dumped in the production builds.

For info or how the integration is done, please follow this blog in which I have explained each of the steps.
https://blog.24x7dev.com/blog/tailwind-with-react/

Top comments (3)

Collapse
 
dance2die profile image
Sung M. Kim

Hi Akhil.

We encourage the entire article to be published on DEV.to (if you have proper rights), with a linkback if appropriate. Otherwise, we recommend original material, such as an original commentary on the article. From the Terms of Use:

Users must make a good-faith effort to share content that is...not designed primarily for the purposes of promotion or creating backlinks. Additionally, posts must contain substantial content — they may not merely reference an external link that contains the full post.

Posts that are simply intended to encourage readers to view an external resource are discouraged.

Thank you.

Collapse
 
akhilgautam profile image
Akhil

On a different note Sung, the article is not incomplete here. The article completely justifies its title.
This article is about React + Tailwind starter template and not about how to create it. And I posted just the motivation behind writing that.
The link that you found out to be violating the terms and conditions, is for someone who wants to know how to integrate it which is something in addition to the title.
Adding links to third-party blogs for more clarification shouldn't be violating the T&C.
I will just wait until you see this comment and then will delete this blog.

Collapse
 
akhilgautam profile image
Akhil

Thanks for the information.
FYI, I tried a lot to write it here but the Markdown that I use on my site doesn't work here. I tried tweaking it a lot couldn't make it work and finally had write a gist out of it.
If you find this article somehow misleading or unfair, I am okay to remove it from here completely