See the demo here: https://tailwind-react-demo.app.faable.com/
In a terminal, install the dependencies and run the dev server with the following commands:
npm install
npm run dev
Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, stitches and goober) at build time.
This command creates tailwind configuration file tailwind.config.js
:
# cd into your project folder then:
npx tailwindcss-cli@latest init --full