A simple and efficient boilerplate setup for developing web applications using TailwindCSS and Sass. This boilerplate integrates modern tools like Gulp for task automation, PostCSS for CSS processing, and BrowserSync for live reloading.
Before using this boilerplate, ensure you have the following installed:
Clone this repository:
git clone https://github.com/mdsaifurrahmann/tailwindcss-sass-boilerplate.git
cd tailwindcss-sass-boilerplate
Install dependencies:
npm install
Start the development server:
npm run start
or
npm run watch
.
├── src
│ ├── assets # Static assets (images, fonts, etc.)
│ ├── js # JavaScript files
│ └── scss # SCSS files
├── public
│ ├── assets # Processed assets
│ ├── css # Compiled CSS files
│ └── js # Compiled JavaScript files
├── .browsersyncrc # Browser-Sync file
├── gulpfile.js # Gulp task configuration
├── index.html # Static Files
├── tailwind.config.js # TailwindCSS Config file
├── postcss.config.js # PostCSS Config file
└── package.json # Project metadata and dependencies
npm run start
or
npm run watch
Runs the development server with live reloading and watches for changes in SCSS, JS, and HTML files.
npm run build
Compiles and minifies SCSS and JS files and copies assets to the public
folder.
Compile SCSS:
gulp scss
Compile JS:
gulp javascript
Copy Assets:
gulp assets
The TailwindCSS configuration is located in tailwind.config.js
. You can customize it to define your design system, including colors, spacing, typography, etc.
Modify the browserSync.init
configuration in gulpfile.js
to adjust settings like the server base directory, port, or proxy settings.
Feel free to contribute to this boilerplate by submitting issues or pull requests. Contributions are always welcome!
This project is licensed under the MIT License.
Start building your projects faster with this lightweight and powerful boilerplate! 🚀