This is a starter project for integrating Tailwind CSS with PostCSS, allowing you to use custom variables and other PostCSS features in your Tailwind CSS setup.
Clone the repository:
git clone https://github.com/fless-lab/tailwind-integration-starter.git
cd tailwind-integration-starter
Install dependencies:
npm install
tailwind-integration-starter/
├── src/
│ ├── styles.css
│ └── index.html
├── dist/
│ └── styles.css (generated)
├── tailwind.config.js
├── postcss.config.js
└── package.json
To build the CSS file with Tailwind and PostCSS:
npm run build:css
To automatically rebuild the CSS file when you make changes:
npm run watch:css
tailwind.config.js
): You can customize your Tailwind setup, such as extending the theme, adding plugins, etc.postcss.config.js
): Configure PostCSS plugins as needed.Add your custom styles in src/styles.css
. You can use Tailwind's utilities or write your own CSS.
This project is licensed under the MIT License.