This repo is a perfect solution when you need to develop a new website/templates based on Tailwindcss without any extra configuration or just for learning purposes.
- Node
^16.15.0
- NPM
^8.5.5
- Live Server
latest
After confirming that your environment meets the above requirements, it is time to clone the project locally by doing the following:
$ git clone https://github.com/DeanHristov/simple-tailwind-starter-kit.git <project-name>
$ cd <project-name>
When you're done with the steps above, run the following command:
$ npm install # or yarn install
├── dist # Contains **production-ready** code.
│ └── index.html # The entry page of the site
│ └── *.html # Sub-pages
│ └── css # Contains all compiled styles
│ └── style.css # the Main style. It is used from the index.html
├── package.json # It holds important metadata about the project
├── input.css # The entry point of tailwindcss
├── package-lock.json # Place where we controls the dependencies
├── README.md # A documentation file
All tasks automation are based on NPM scripts.
Tasks | Description |
---|---|
npm run watch |
Watching the styles for changes |
npm run build |
Building the styles in production-ready mode |
$ npm run watch
In order to open the page you can use any live server. For example, this could be a Live Server
Compiling the styles in production-ready mode in ~/dist directory.
$ npm run build
Author: D. Hristov