Build beautiful static websites with AI assistance. No complicated setup required.
Static Starter is a template for building websites. It gives you:
- Ready-to-use CSS - Professional styling without writing CSS from scratch
- Organized structure - Know exactly where every file goes
- AI assistance - Claude Code understands this project and helps you build
- Best practices - Security, SEO, and accessibility built-in
- Easy deployment - Host for free on Cloudflare Pages, Netlify, or GitHub Pages
Perfect for: portfolios, business sites, landing pages, blogs, and more!
Before you start, you'll need:
- A code editor - We recommend VS Code (free)
- Git - For version control (Download Git)
- A GitHub account - For hosting your code (Sign up free)
New to these tools? Check out our beginner guides:
Option A: Use as Template (Recommended)
- Click the green "Use this template" button on GitHub
- Name your repository (e.g., "my-websites")
- Click "Create repository"
- Clone your new repository:
git clone https://github.com/YOUR-USERNAME/my-websites.git cd my-websites
Option B: Clone Directly
git clone https://github.com/YOUR-USERNAME/static-starter.git
cd static-startercode .Or: Open VS Code → File → Open Folder → Select the folder
Copy the template folder and give it your domain name:
Windows (Command Prompt):
xcopy _template my-website.com /E /IMac/Linux:
cp -r _template my-website.comCopy the CSS files to your project:
Windows:
copy @css\main.css my-website.com\css\
copy @css\variables.css my-website.com\css\Mac/Linux:
cp @css/main.css my-website.com/css/
cp @css/variables.css my-website.com/css/Open my-website.com/css/variables.css and change the colors:
:root {
--primary: #3498db; /* Your main brand color */
--secondary: #2c3e50; /* Your secondary color */
--action: #e74c3c; /* Button/CTA color */
}Open my-website.com/index.html and start editing!
Replace the placeholder text:
[Project Name]→ Your website name[Page Title]→ Page title[CDN_URL]→ Your image hosting URL (or use placeholder images for now)
Install the "Live Server" extension in VS Code, then:
- Right-click
index.html - Select "Open with Live Server"
- Your site opens in the browser!
Here's what each folder is for:
static-starter/
│
├── @docs/ 📚 Documentation & guides
│ ├── git/ Git for beginners
│ ├── vscode/ VS Code for beginners
│ ├── claude-code/ Claude Code for beginners
│ ├── accessibility/ Making sites accessible
│ ├── seo/ Search engine optimization
│ └── ... More guides
│
├── @css/ 🎨 CSS Framework
│ ├── main.css The complete CSS (don't edit)
│ └── variables.css Your customizations
│
├── @images/ 🖼️ Image hosting guide
│
├── _template/ 📁 Starting point for new sites
│
├── my-website.com/ 🌐 Your website (example)
│ ├── css/ CSS files
│ ├── fonts/ Custom fonts
│ ├── js/ JavaScript
│ ├── legal/ Privacy policy, terms
│ ├── index.html Homepage
│ └── _headers Security settings
│
├── CLAUDE.md 🤖 AI instructions
├── README.md 📖 This file
└── .gitignore 🚫 Files Git should ignore
Edit your-site/css/variables.css:
:root {
/* Brand Colors - change these! */
--primary: #your-color; /* Main brand color */
--secondary: #your-color; /* Secondary color */
--action: #your-color; /* Buttons, links */
/* These work automatically */
--success: #22c55e; /* Green - success messages */
--warning: #f59e0b; /* Yellow - warnings */
--danger: #ef4444; /* Red - errors */
}The CSS framework uses simple class names:
Layout:
<!-- 3 column grid -->
<div class="grid grid--3">
<div>Column 1</div>
<div>Column 2</div>
<div>Column 3</div>
</div>
<!-- 2 columns on desktop, 1 on mobile -->
<div class="grid grid--2 grid--1-m">
<div>Left</div>
<div>Right</div>
</div>Spacing:
<section class="padding--l margin-bottom--xl">
Content with large padding and extra-large bottom margin
</section>Text:
<h1 class="text--xxl text-align--center">Big Centered Heading</h1>
<p class="text--m text--neutral">Medium gray text</p>Buttons:
<button class="btn btn--primary">Primary Button</button>
<button class="btn btn--action btn--outline">Outline Button</button>This project is designed to work with Claude Code. When you open this project in VS Code with Claude Code installed:
- Claude automatically reads
CLAUDE.mdand understands the project - Ask Claude to help you build features
- Claude knows how to use the CSS framework correctly
Example requests:
"Create a hero section with a heading, description, and CTA button"
"Add a 3-column features section"
"Make a contact form using Web3Forms"
"Fix the mobile layout"
See @docs/claude-code/README.md for more tips.
- Push your code to GitHub
- Go to Cloudflare Pages
- Click "Create a project"
- Connect your GitHub repository
- Set build output directory to your site folder (e.g.,
my-website.com) - Click "Save and Deploy"
Done! Your site is live at your-project.pages.dev
- Go to Netlify
- Drag and drop your site folder
- Done! Your site is live
- Go to your repo on GitHub
- Settings → Pages
- Select source: main branch, folder: your site folder
- Done! Your site is live at
username.github.io/repo-name
Use Web3Forms for free, no-backend forms:
- Get your access key at https://web3forms.com
- Add this form to your HTML:
<form action="https://api.web3forms.com/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<label for="name">Name</label>
<input type="text" name="name" required>
<label for="email">Email</label>
<input type="email" name="email" required>
<label for="message">Message</label>
<textarea name="message" required></textarea>
<button type="submit" class="btn btn--primary">Send</button>
</form>See @docs/web3forms/README.md for more details.
This structure lets you manage multiple websites in one repository:
static-starter/
├── @css/ # Shared CSS
├── @docs/ # Shared documentation
├── _template/ # Template for new sites
│
├── portfolio.com/ # Site 1
├── business-name.com/ # Site 2
├── side-project.com/ # Site 3
└── ...
Each site deploys independently. Just point your hosting to the right folder.
- Git for Beginners - Version control basics
- VS Code for Beginners - Editor setup
- Claude Code for Beginners - AI assistance
- Accessibility - Making sites accessible
- SEO - Search optimization
- Security - Keeping your site safe
- MDN Web Docs - HTML, CSS, JavaScript reference
- web.dev - Web development best practices
- CSS-Tricks - CSS tutorials and guides
If you have Claude Code installed, just ask:
"How do I add a new page?"
"What's the best way to make this responsive?"
"Explain how the grid system works"
MIT License - free to use for personal and commercial projects.
Found a bug? Have an improvement? Contributions are welcome!
- Fork this repository
- Make your changes
- Submit a pull request
Happy building! 🚀