> DOCUMENTATION
Tailwind Installation Guide
Pure HTML templates with Tailwind CSS. No build step required — just open and customize.
> Why Pure HTML + Tailwind?
These templates use the Tailwind CSS CDN, making them the simplest option to get started:
- No build step — Open in any browser instantly
- No dependencies — No Node.js, npm, or package managers needed
- Easy to customize — Just edit the HTML files directly
- Framework agnostic — Use with any backend or CMS
- Perfect for prototyping — Great for quick mockups and landing pages
> Prerequisites
All you need is:
- A web browser (Chrome, Firefox, Safari, or Edge)
- A text editor (VS Code, Sublime Text, or even Notepad)
That's it! No Node.js, npm, or command line required.
> Getting Started
Step 1: Download Your Template
After downloading, extract the .zip file to any folder on your computer:
Package Contents:
index.html— Homepageabout.html,contact.html, etc. — Additional pagestailwind.config.js— Tailwind CSS configurationstyle.css— Custom styles (if any)scripts.js— Custom JavaScript (if any)
Note: Tailwind CSS is loaded via CDN in each HTML file. No build step required.
Step 2: Open in Browser
Simply double-click any .html file to open it in your browser.
Or drag the file into your browser window.
The template loads Tailwind CSS from CDN, so you need an internet connection.
Step 3: Edit and Customize
Open any HTML file in your text editor and start customizing:
<!-- Example: Change the hero title -->
<h1 class="text-4xl font-bold text-white">
Your Business Name Here
</h1>
<!-- Example: Change button color -->
<button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3">
Get Started
</button>Save the file and refresh your browser to see changes instantly.
> Local Server (Optional)
For a better development experience with auto-refresh, use a local server:
Option 1: VS Code Live Server
- Install the Live Server extension
- Open your template folder in VS Code
- Right-click
index.html→ "Open with Live Server"
Changes auto-refresh in the browser!
Option 2: Python (if installed)
# Navigate to template folder
cd ~/Downloads/my-template
# Start server (Python 3)
python -m http.server 8000
# Or Python 2
python -m SimpleHTTPServer 8000Then open http://localhost:8000
Option 3: npx (if Node.js installed)
# No installation needed
npx serve
# Or with live-server for auto-refresh
npx live-server> Customization Tips
Changing Colors
Tailwind uses a color palette. Replace color classes throughout:
<!-- Blue theme -->
<div class="bg-blue-600 text-blue-100">
<!-- Green theme -->
<div class="bg-green-600 text-green-100">
<!-- Custom colors via CDN config -->
<script>
tailwind.config = {
theme: {
extend: {
colors: {
brand: '#ff6b35',
}
}
}
}
</script>Changing Fonts
Add Google Fonts and configure Tailwind:
<!-- In <head> -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
}
}
}
</script>Replacing Images
Simply replace files in the assets/ folder with your own images, keeping the same filenames. Or update the src attributes:
<!-- Original -->
<img src="assets/hero-image.jpg" alt="Hero">
<!-- Your image -->
<img src="assets/your-photo.jpg" alt="Your Photo">> Deployment Options
Option 1: Netlify Drop (Easiest)
- Go to netlify.com/drop
- Drag and drop your entire template folder
- Done! Your site is live instantly
Free hosting with a .netlify.app domain!
Option 2: GitHub Pages (Free)
- Create a GitHub repository
- Upload your template files
- Go to Settings → Pages
- Select "main" branch and click Save
Your site will be at username.github.io/repo-name
Option 3: Vercel
- Push to GitHub/GitLab
- Go to vercel.com
- Import your repository
- Click Deploy (no configuration needed)
Option 4: Traditional Web Hosting
Upload via FTP to any web host:
- Connect to your host via FTP (FileZilla, Cyberduck)
- Upload all files to
public_htmlorwwwfolder - Your site is live at your domain!
> Upgrading to Production Tailwind
For production sites with better performance, consider migrating from CDN to a build process:
- Smaller file sizes — Only includes CSS you actually use
- Better caching — CSS is bundled with your site
- Works offline — No CDN dependency
Check out our React, Next.js, Vue, or SvelteKit guides for production-ready setups.
> Troubleshooting
Make sure you have an internet connection — the template loads Tailwind from CDN.
Check that this line is in your HTML <head>:
<script src="https://cdn.tailwindcss.com"></script>Check that the image paths are correct. If opening via file://, paths should be relative:
<!-- Correct -->
<img src="assets/image.jpg">
<img src="./assets/image.jpg">
<!-- Won't work -->
<img src="/assets/image.jpg">Ensure the HTML element has the dark class and Tailwind is configured:
<html class="dark">
<head>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class'
}
</script>
</head>For custom utilities, add them to the Tailwind config:
<script>
tailwind.config = {
theme: {
extend: {
spacing: {
'128': '32rem',
}
}
}
}
</script>