This is a starter template for a React.js project, configured with Create-React-App, Tailwind and Typescript.
npx create-react-app <YOUR_APP_NAME> --template tailwind-ts
The tailwind.css
file (at project root) is used as source css for Tailwind. Use that to make changes to the generated-on-fly index.css
(in src/styles/). This generated file is used in the project.
Also, tailwind-config-full.js
exists as a reference should you need to modify tailwind.config.js
.
Starts tailwindcss
in jit mode and the local React dev server.
yarn dev
-
Build project:
yarn build
-
Build only CSS:
yarn build:css