osw-studio / docs /TEMPLATES.md
otst's picture
fix docs missing on hf build
b937320
# Templates
**Start your projects faster with pre-built templates.**
Templates are ready-to-use website starting points that include complete file structures, styling, and functionality. Use them to skip the initial setup and start customizing right away.
---
## What Are Templates?
Templates are complete website projects that you can use as starting points:
- **Complete structure** - All HTML, CSS, and JavaScript files
- **Professional design** - Ready-to-use layouts and styling
- **Customizable** - Modify anything to match your needs
- **Learning resources** - Study well-structured code
**Think of templates as:**
- Website blueprints you can build upon
- Starter kits that save time
- Examples of best practices
- Shortcuts to professional results
---
## Built-in Templates
OSW Studio includes templates to get you started:
### Example Studios
A sample multi-page agency portfolio showing OSW Studio's capabilities.
**Includes:**
- Multiple HTML pages
- Responsive design
- Interactive elements
- Example of good structure
**Best for**: Learning how OSW Studio works
### Blank
Minimal starting point with basic structure.
**Includes:**
- Single `index.html`
- Basic CSS file
- Empty JavaScript file
- Clean slate for building
**Best for**: Starting from scratch with minimal setup
---
## Using Templates
### Create Project from Template
1. Click **Projects** in sidebar
2. Click **+ New Project**
3. Select **Use a template**
4. Browse available templates
5. Click on a template to preview
6. Click **Use This Template**
7. Name your project
8. Click **Create**
Your project opens with all template files ready to customize.
### Customize the Template
Once your project is created, modify it like any other project:
**Using AI:**
```
Change the color scheme to blue and green
```
```
Replace the hero section with a full-width image banner
```
```
Add a contact form to the contact page
```
**Manually:**
- Edit files directly in the code editor
- Add/remove files as needed
- Update content and styling
---
## Creating Your Own Templates
Turn any project into a reusable template.
### When to Create Templates
Create templates for:
- Website structures you build often
- Client starter kits
- Personal boilerplate code
- Team standards
### How to Create a Template
1. **Build your project**
- Create a complete, working website
- Include all files and assets
- Test thoroughly
2. **Export as template**
- Open the project
- Click **Menu** (⋮) → **Export**
- Choose **Template**
- Fill in template information:
- Name
- Description
- Category
- Tags
- Preview image (optional)
3. **Use your template**
- Find it in the Templates view
- Create new projects from it
- Share with others (export as file)
###What Makes a Good Template
**✅ Include:**
- Clear, organized file structure
- Commented code for guidance
- Responsive design
- Common pages (home, about, contact)
- Reusable components
**❌ Avoid:**
- Personal/client-specific content
- Hardcoded data that should be dynamic
- Overly complex structures
- Unnecessary files
---
## Managing Templates
### Browse Templates
1. Click **Templates** in sidebar
2. View available templates
3. Filter by category or search
4. Click to preview
### Delete Templates
1. Go to Templates view
2. Find the template
3. Click **Delete** (trash icon)
4. Confirm deletion
**Note**: Built-in templates can't be deleted.
---
## Importing & Exporting Templates
### Export a Template
Share your templates with others:
1. Go to **Templates** view
2. Find your template
3. Click **Export** (download icon)
4. Save the template file (`.json`)
### Import a Template
Use templates from others:
1. Click **Templates** in sidebar
2. Click **Import Template**
3. Select template file
4. Template appears in your library
---
## Template Tips
**💡 Start with a template**
Even if you'll heavily customize it, starting from a template is faster than from scratch
**💡 Create templates for repetition**
Building similar sites for clients? Create a template once, reuse forever
**💡 Keep templates simple**
Generic templates are more reusable than highly specific ones
**💡 Document your templates**
Add comments in the code explaining sections and how to customize
**💡 Update your templates**
Improve them over time as you learn better patterns
---
## Templates vs Skills
**Templates** = Starting point for a project
- Complete website structure
- HTML, CSS, JavaScript files
- Ready to customize and deploy
**Skills** = Instructions for AI
- Markdown documents
- Teach AI your preferences
- Guide AI's behavior
Use templates to start projects. Use skills to improve how AI builds them.
**[Learn about Skills →](?doc=skills)**
---
## Common Questions
**Q: Can I modify templates after creating a project?**
A: Yes! Once you create a project from a template, it's yours to modify completely.
**Q: Do I need to credit template authors?**
A: Check the template's license. Most templates you create are yours to use freely.
**Q: Can I sell websites built from templates?**
A: Built-in templates are yours to use commercially. For imported templates, check their license.
**Q: How many templates can I have?**
A: No limit. Create as many as you need.
---
**Next Steps:**
- **[Getting Started](?doc=getting-started)** - Create your first project
- **[Skills](?doc=skills)** - Teach AI your preferences
- **[Projects](?doc=projects)** - Manage your work
---
**Want to create templates?** Build a great project, then export it as a template for future use!