Documentation Index
Fetch the complete documentation index at: https://mintlify.com/queaxtra/zvelte/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Zvelte uses the sveltekit-shadcn-template as its foundation. This production-ready template provides a modern tech stack with pre-configured tools and libraries to accelerate your development workflow.Template Repository
The template is cloned from:.git directory to give you a clean slate for your own version control.
What’s Included
The template comes with a carefully curated set of features and integrations:SvelteKit
Full-stack framework for building web applications with Svelte, including routing, server-side rendering, and API endpoints.
Shadcn UI
Beautiful, accessible UI components built with Radix UI primitives and styled with Tailwind CSS.
Tailwind CSS
Utility-first CSS framework for rapid UI development with consistent design patterns.
Internationalization (i18n)
Built-in support for multiple languages, making your app ready for a global audience.
Template Cloning Process
When you run thecreate command, Zvelte executes the following workflow:
- Clone: Uses
git cloneto fetch the template repository - Remove Git History: Deletes the
.gitdirectory to start fresh - Update Configuration: Modifies
package.jsonwith your project details - Install Dependencies: Optionally installs dependencies with your chosen package manager
The template repository is maintained separately from the Zvelte CLI, allowing independent updates and improvements to the template itself.
Customizing the Template
After creating your project, you can customize it to fit your needs:Modify Tailwind Configuration
Edittailwind.config.js to adjust colors, fonts, and design tokens:
tailwind.config.js
Configure Internationalization
Update i18n settings to add or remove languages based on your target audience.Add or Remove Components
The Shadcn UI components are source code, not a package dependency. You can modify or remove any component in your project.Customize Project Structure
Reorganize directories and files to match your team’s conventions or project requirements.The template is designed to be a starting point, not a rigid structure. Feel free to adapt it to your workflow.
Current Directory Merging
When you usezvelte create . in a non-empty directory, Zvelte performs a smart merge:
- No existing files are overwritten
- Conflicts are detected before any changes are made
- Your existing work is preserved
Template Repository Access
You can view the template source code, report issues, or contribute improvements:Visit the Template Repository
Explore the full template source code, view the README, and see what’s included before creating your project.
Keeping Up with Template Updates
Since the template is cloned and detached from its source:- Template updates don’t automatically apply to existing projects
- You can manually cherry-pick improvements from the template repository
- Create new projects to get the latest template version
- Consider using tools like
git remote add template <repo-url>to pull updates selectively
Each Zvelte project is independent. To benefit from template improvements, you’ll need to manually integrate changes or create a new project.