Using Tailwind Templates
Introduction
This documentation covers the instruction on how to install and use the Tailwind CSS templates, and answers to any problems and issues you may face while using the templates.
If you have any question that is beyond the scope of this documentation feel free to Open a Support Ticket or reach out to us on Discord.
We will get back to you ASAP.
The Tailwind templates are built with plain HTML and Tailwind CSS and a few Vanilla JS scripts. And we used Alpine JS for interactions like slider, video, and image popup.
Downloading Templates:
You can download all available templates that are available under the big bundle, by visiting your account.
You can download it anytime you want, as long as you have an account with us.
Directory Structure:
When you download a template and extract it youâll get a folder that looks like this:
|-- Template Folder
|-- src
| |-- css
| |-- All CSS Files
| |-- js
| |-- All JS Files
| |-- images
| |-- All Images
| |-- partials
| |-- HTML Common Sections Like Header, Footer etc
| |-- index.html and All HTML Pages Files
|
|
|-- All Config files
If you want to customize the template just go to the src
folder, and youâll find all the files you need to customize.
Installing Tempaltes:
To use the Tailwind template first we will have to install the dependencies and plugins included in the template.
Note: Before we install the plugins make sure you have Node.js installed on your machine. Otherwise, the commands wonât work.
Here are the steps youâll have to take to install the templates:
Step#1: Download the template from GrayGrids. When you download the template, youâll get a zip file.
Step#2: Unzip/Extract the zip file. After youâve extracted it youâll find all the files and assets youâll need.
Step#3: Now open up the Terminal/Command Line in the project folder. And run this command to install the plugins and the dependencies:
npm install
Itâll take a few seconds to install. After installation is done, run this command to start the project:
npm run start
When it starts itâll automatically open up the project on [localhost:3000](http://localhost:3000)
.
Now you can change the default content and add your own content, and see the changes on the browser immediately.
Deploying to server
To deploy the Template, youâll have to generate the build
folder. You can do that by running this command:
npm run build
Itâll give you a build
folder, now you can just upload it on your server and your website will be live.