DEV Community

Discussion on: Setting up React.js(CRA) with Tailwind CSS and CSS-IN-JS

Collapse
 
benrogerson profile image
Ben Rogerson

There are a few things you could adjust with this setup:

"Make a build of TailwindCSS" - you can remove that whole section.
There's actually no need to generate the Tailwind classes as the class conversions are all handled by twin.macro!
All you need to import is the base style file (import 'tailwindcss/dist/base.min.css';)

In the tailwind.config file, Twin only reads the theme and plugin values. The other values won't do anything with Twin.

Everything else is great! Thanks for writing this awesome article :)

Collapse
 
angelmtztrc profile image
Angel Martinez • Edited

Thank you very much for your advice. I already updated the post. I kept the configuration file of TailwindCSS because is more helpful if all we can see which things we can edit in TailwindCSS. By the way, I updated the GitHub repository and tomorrow the template for create-react-app will be available in NPM to use it.