基于 SvelteKit 的最小启动模板,附带 TypeScript 与 Tailwind CSS
sveltekit-template — Svelte 启动器模板
作者 rajput-hemant
基于 SvelteKit 的最小启动模板,集成 TypeScript、Tailwind CSS,并预配置 ESLint、Prettier、Husky、lint-staged 与 commitlint。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
预配置 ESLint、Prettier、Husky、lint-staged 与 commitlint
默认使用 bun 作为包管理器,并说明如何切换到 pnpm、npm 或 yarn
提供 dev、build、preview、lint、check、fmt 等 npm 脚本
目录结构精简,包含 components、lib、routes、types 等基础目录
采用 MIT 许可,允许免费使用、修改、商用与分发
模板详细介绍
这是一个面向 SvelteKit 项目的最小启动模板,仓库由 rajput-hemant 维护,采用 MIT 许可。模板在 SvelteKit 基础上加入 TypeScript 与 Tailwind CSS,并预先配置 ESLint、Prettier、Husky、lint-staged 和 commitlint,用于统一代码检查、格式化与提交信息规范。默认包管理器为 bun,同时说明可切换至 pnpm、npm 或 yarn。
目录结构保持精简:public 下放置 favicon,src 内含 components(tailwind-indicator.svelte)、lib(utils.ts)、routes(+layout.svelte 与 +page.svelte)、types(reset.d.ts)以及 app.css、app.d.ts、app.html;根目录包含 svelte.config.js、tailwind.config.js、tsconfig.json、vite.config.ts、postcss.config.js、renovate.json 等配置文件。
使用方式为通过 degit 从仓库拉取模板到本地项目目录,再安装依赖。README 提供 dev、build、start、preview、lint、check、check:watch、fmt:check、fmt:write、prepare 等脚本说明,并列出安装后需要更新 package.json、README.md 与 LICENSE 的清单。模板本身不包含业务页面或后端服务,属于项目脚手架起点。
适合你的项目吗?
适用场景
- 新建 SvelteKit 项目时作为初始脚手架
- 需要 TypeScript 与 Tailwind CSS 组合的前端项目起步
- 希望统一代码检查、格式化与 Git 提交信息规范的团队
- 使用 bun 或可切换包管理器的 SvelteKit 开发流程
适合人群
- 熟悉 SvelteKit 并希望快速开始新项目的开发者
- 需要 TypeScript 与 Tailwind CSS 预设配置的前端项目
- 希望内置 ESLint、Prettier 与提交钩子的团队
- 接受以 degit 方式复制模板而非使用 CLI 生成项目的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需先全局安装 degit,再执行 degit rajput-hemant/sveltekit-template <project-name> 拉取模板
- 2
默认使用 bun 安装依赖;若改用 pnpm、npm 或 yarn,需先删除 bun.lockb 再生成对应锁文件
- 3
安装后按 README 清单更新 package.json、README.md 与 LICENSE 中的项目信息
- 4
仓库演示图片、字体、图标等第三方素材需单独核对其许可,MIT 许可仅覆盖代码本身
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 模板默认使用 bun 作为包管理器;若改用 pnpm、npm 或 yarn,需先删除 bun.lockb 文件,再运行对应命令生成锁文件。
- 使用模板前需先全局安装 degit 工具,再通过 degit 命令拉取仓库内容到本地项目目录。
- 安装后需按清单更新 LICENSE 中的姓名与年份,以及 package.json 和 README.md 中的项目信息。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
This template uses [bun](https://bun.sh/docs/cli/install) as the default package manager. If you want to use `pnpm`, `npm` or `yarn`, you need to remove the `bun.lockb` file and run `pnpm i`, `npm i` or `yarn` to generate the lock file for the respective package manager.
README 原文
**Install `degit` globally**
README 原文
https://github.com/rajput-hemant/sveltekit-template/blob/master/LICENSEhttps://github.com/rajput-hemant/sveltekit-template/blob/master/README.md- [ ] Update `LICENSE` with your name and year.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 83 / 100
- 技术栈
- Svelte
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-28
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Svelte。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 0959f20d1f8964371223c4b8e71f5d73f0b98cae1b1078fe67508a5a0e0b9bb4
2026-10-01T13:25:49.026Z
来源文件 / 仓库<div align=center>
![views] ![stars] ![forks] ![issues] ![license] ![repo-size]

# SvelteKit Starter Template
### A Minimal SvelteKit Starter Template with TypeScript, Tailwind CSS, and pre-configured with ESLint, Prettier, and Husky.
</div>
## Features
- ⚡ **[SvelteKit](https://kit.svelte.dev/)** - Cybernetically enhanced web apps
- 🎨 **[Tailwind CSS](https://tailwindcss.com/)** - A Utility-First CSS Framework for Rapid UI Development
- 📦 **[TypeScript](https://www.typescriptlang.org/)** - A typed superset of JavaScript that compiles to plain JavaScript
- 📝 **[ESLint](https://eslint.org/)** - The pluggable linting utility for JavaScript and JSX
- 🛠 **[Prettier](https://prettier.io/)** - An opinionated code formatter
- 🐶 **[Husky](https://typicode.github.io/husky/#/)** - A tool that makes Git hooks easy
- 🚫 **[lint-staged](https://github.com/okonet/lint-staged)** - Run linters against staged git files
- 📄 **[commitlint](https://commitlint.js.org/#/)** - Lint commit messages
- 📦 **[bun](https://bun.sh)** - A JavaScript runtime w/ Fast, disk space efficient package manager
## Getting Started
**Install `degit` globally**
```bash
bun i -g degit || pnpm i -g degit || yarn global add degit || npm i -g degit
```
**Create a new project from this template**
```bash
degit rajput-hemant/sveltekit-template <project-name>
cd <project-name>
```
**Install dependencies**
```bash
bun i || pnpm i || yarn || npm i
```
**Initialize a new git repository _(Optional)_:**
```bash
git init
git add .
git commit --no-verify -m "init"
```
## Available Scripts
In the project directory, you can run:
| **Script** | **Description** |
| ------------- | ------------------------------------------------- |
| `dev` | Runs the app in the development mode. |
| `build` | Builds the app for production. |
| `start` | Runs the built app in the production mode. |
| `preview` | Builds and serves the app in the production mode. |
| `lint` | Runs next lint on the project. |
| `check` | Runs SvelteKit checks. |
| `check:watch` | Runs SvelteKit checks in watch mode. |
| `fmt:check` | Checks if the code is formatted with Prettier. |
| `fmt:write` | Formats the code with Prettier. |
| `prepare` | Installs husky git hooks. |
## Folder Structure
```bash
.
├── public
│ └── favicon.png
├── src
│ ├── components
│ │ └── tailwind-indicator.svelte
│ ├── lib
│ │ └── utils.ts
│ ├── routes
│ │ ├── +layout.svelte
│ │ └── +page.svelte
│ ├── types
│ │ └── reset.d.ts
│ ├── app.css
│ ├── app.d.ts
│ └── app.html
├── bun.lockb
├── LICENSE
├── package.json
├── postcss.config.js
├── README.md
├── renovate.json
├── svelte.config.js
├── tailwind.config.js
├── tsconfig.json
└── vite.config.ts
```
## After Installation Checklist
- [ ] Update `package.json` with your project details.
- [ ] Update `README.md` with your project details.
- [ ] Update `LICENSE` with your name and year.
## Switching Package Manager
This template uses [bun](https://bun.sh/docs/cli/install) as the default package manager. If you want to use `pnpm`, `npm` or `yarn`, you need to remove the `bun.lockb` file and run `pnpm i`, `npm i` or `yarn` to generate the lock file for the respective package manager.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contributors:
<div align=center>
[![][contributors]][contributors-graph]
_Note: It may take up to 24h for the [contrib.rocks][contrib-rocks] plugin to update because it's refreshed once a day._
</div>
<!----------------------------------{ Labels }--------------------------------->
[views]: https://komarev.com/ghpvc/?username=sveltekit-template&label=view%20counter&color=red&style=flat
[repo-size]: https://img.shields.io/github/repo-size/rajput-hemant/sveltekit-template
[issues]: https://img.shields.io/github/issues-raw/rajput-hemant/sveltekit-template
[license]: https://img.shields.io/github/license/rajput-hemant/sveltekit-template
[forks]: https://img.shields.io/github/forks/rajput-hemant/sveltekit-template?style=flat
[stars]: https://img.shields.io/github/stars/rajput-hemant/sveltekit-template
[contributors]: https://contrib.rocks/image?repo=rajput-hemant/sveltekit-template&max=500
[contributors-graph]: https://github.com/rajput-hemant/sveltekit-template/graphs/contributors
[contrib-rocks]: https://contrib.rocks/preview?repo=rajput-hemant%sveltekit-template
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

CMSaasStarter
A modern SaaS template/boilerplate built with SvelteKit, Tailwind, and Supabase. Includes marketing page, blog…
Svelte · 后台

sveltekit-electron
Minimal Sveltekit + Electron starter template.
Svelte · 启动器

tauri-sveltekit
A minimal Tauri & SvelteKit starter template
Svelte · 启动器

modernstack-saas
A modern SaaS template/boilerplate built with SvelteKit, Convex, Better Auth, and shadcn-svelte. Includes subs…
Svelte · 后台

sveltekit-mdsvex-blog-template
MDsveX blog starter template built with Sveltekit & Tailwind
Svelte · 作品集

sveltekit-shadcn-blog-starter
Production-ready SvelteKit blog starter featuring shadcn-svelte UI, MDsveX for Markdown, Tailwind CSS styling,…
Svelte · 博客
