基于 Qwik 与 QwikCity,使用目录式路由与布局组织页面
qwind — Astro 工具站模板
作者 arthelokyo
Qwind 是一个基于 Qwik 与 Tailwind CSS 的免费开源网站模板,含博客、暗色模式与静态部署配置,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
集成 Tailwind CSS,并支持暗色模式
内置博客内容目录,文章以 Markdown 文件形式存放
提供图片优化与字体优化相关配置
站点名称、origin、basePathname、trailingSlash 集中在 src/config.mjs 配置
MIT 许可,允许免费使用、修改、商用与分发
模板详细介绍
Qwind 是一个免费开源模板,用于搭建基于 Qwik 与 Tailwind CSS 的网站。它使用 QwikCity 提供的目录式路由、布局等能力,仓库中给出了完整的项目结构说明:src/routes 负责路由与页面,src/components 按 atoms、core、icons、widgets 组织组件,src/content/blog 存放 Markdown 博客文章,public 放置 favicon、manifest.json、robots.txt 等静态资源。模板自带 Hero、Features 等首页区块组件,并包含博客列表与文章页。
样式方面集成 Tailwind CSS 并支持暗色模式,同时提供图片与字体优化相关配置。站点基础信息集中在 src/config.mjs 的 SITE 对象中,可设置站点名称、origin、basePathname 与 trailingSlash,README 提到部署到 GitHub Pages 时需要调整 basePathname。
使用方式为在项目根目录执行 npm install 安装依赖,npm run dev 启动本地开发服务器,npm run build 生成生产构建到 dist 目录,npm run preview 在部署前本地预览,另有 npm run fmt 与 npm run lint 用于格式化与代码检查。构建产物可部署到任意静态托管服务,README 也提供了 Netlify 与 Vercel 的部署入口。
需要注意的限制:README 的 Roadmap 中多项内容仍标记为未完成,包括按域名与基础路径生成永久链接的工具、更简化的图片优化方式、SEO 组件、带分类标签作者的 MDX 博客、作品集/服务/联系/文档等常用页面以及图标库等,因此这些能力不应视为已具备。模板代码采用 MIT 许可,可免费使用、修改、商用与分发,但分发时需保留版权声明与许可声明;演示图片、字体、图标等第三方素材需单独核对其许可,域名、托管等外部服务可能另行收费。
适合你的项目吗?
适用场景
- 搭建带博客栏目的企业官网或产品官网
- 作为 Qwik + Tailwind CSS 技术栈的起步项目
- 部署为静态站点到 Netlify、Vercel 或其他静态托管服务
- 需要暗色模式与 Markdown 博客的展示型网站
适合人群
- 希望使用 Qwik 与 Tailwind CSS 构建网站的前端开发者
- 需要现成博客结构与首页区块组件的项目
- 计划将构建产物部署到静态托管服务的团队
- 接受在模板基础上自行补充页面与功能的开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
在项目根目录执行 npm install 安装依赖,npm run dev 启动本地开发服务器
- 2
修改 src/config.mjs 中的 SITE 配置站点名称、origin、basePathname 与 trailingSlash
- 3
npm run build 生成生产构建到 dist 目录,npm run preview 可在部署前本地预览
- 4
部署到 GitHub Pages 等子路径场景时需调整 basePathname
- 5
README 的 Roadmap 中列出的 SEO 组件、MDX 博客、更多页面等尚未完成,需自行实现
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 部署到 GitHub Pages 等子路径场景时,需要修改 src/config.mjs 中的 basePathname 配置,否则资源路径可能不正确。
- Roadmap 中带分类、标签与作者的 MDX 博客尚未完成,当前博客仅支持基础 Markdown 文章,不应视为已具备该能力。
- 作品集、服务、联系、文档等常用页面在 Roadmap 中仍为未完成项,模板未内置这些页面,需自行实现。
- 简化 SEO 的组件在 Roadmap 中尚未完成,模板未提供现成的 SEO 组件,需自行处理。
- 按域名与基础路径生成永久链接的工具尚未完成,相关链接处理需自行实现。
- 更简化的图片优化方式仍在 Roadmap 中未完成,图片优化需按现有配置自行处理。
- 更丰富的图标来源库尚未完成,图标资源有限,需自行补充。
- Roadmap 中 100% Google Page Speed 满分仍为未完成目标,不应视为已保证的性能结果。
- 示例管理后台在 Roadmap 中尚未完成,模板不包含后台管理功能。
- 首页复杂 JavaScript 示例组件尚未完成,模板未包含该演示组件。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Change this if you need to deploy to Github Pages, for example
README 原文
Create configurable blog with categories, tags and authors using MDX.
README 原文
Add more frequently used pages (Portfolio, Services, Contact, Docs ...).
README 原文
Create component to make SEO simpler and more intuitive.
README 原文
Create utilities to generate permalinks tailored to the domain and base pathname.
README 原文
Simplify the way to optimize images.
README 原文
Find or create a library to have more icon sources available.
README 原文
Achieve perfect 100% Google Page Speed score.
README 原文
Create small illustrative admin backend.
README 原文
https://github.com/arthelokyo/qwind/blob/main/LICENSE.mdhttps://github.com/arthelokyo/qwind/blob/main/README.mdInsert complex javascript example widget on home page to demonstrate Qwik features.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 81 / 100
- 技术栈
- Astro
- 网站类型
- 工具站 · 企业官网 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2024-08-26
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 3b7e325b4a031e63f84e04de9e167ebb5e8d8a6fe1caf911d88b0610beb53d3e
2026-10-02T07:44:11.258Z
来源文件 / 仓库# 💠 Qwind
**Qwind** is a free and open-source template to make your website using **[Qwik](https://qwik.builder.io/) + [Tailwind CSS](https://tailwindcss.com/)**. Ready to start a new project and designed taking into account best practices.
## Features
- ✅ Integration with **Tailwind CSS** supporting **Dark mode**.
- ✅ **Production-ready** scores in [Lighthouse](https://web.dev/measure/) and [PageSpeed Insights](https://pagespeed.web.dev/) reports.
- ✅ **Image optimization** and **Font optimization**.
<br>
<img src="./screenshot.jpg" alt="Qwind Theme Screenshot">
[](https://onwidget.com)
[](https://github.com/onwidget/qwind/blob/main/LICENSE.md)
[](https://github.com/onwidget)
[](https://github.com/onwidget/qwind#contributing)
[](https://snyk.io/test/github/onwidget/qwind)
<br>
<details open>
<summary>Table of Contents</summary>
- [Demo](#demo)
- [Getting started](#getting-started)
- [Project structure](#project-structure)
- [Commands](#commands)
- [Configuration](#configuration)
- [Deploy](#deploy)
- [Roadmap](#roadmap)
- [Contributing](#contributing)
- [Acknowledgements](#acknowledgements)
- [License](#license)
</details>
<br>
## Demo
📌 [https://qwind.pages.dev/](https://qwind.pages.dev/)
<br>
## Getting started
This project is using Qwik with [QwikCity](https://qwik.builder.io/qwikcity/overview/). QwikCity is just a extra set of tools on top of Qwik to make it easier to build a full site, including directory-based routing, layouts, and more.
### Project structure
Inside **Qwind** template, you'll see the following folders and files:
```
/
├── adaptors/
| └── static/
| └── vite.config.ts
├── public/
│ ├── favicon.svg
│ ├── manifest.json
│ └── robots.txt
├── src/
│ ├── assets/
│ │ ├── images/
| | └── styles/
| | └── global.css
│ ├── components/
│ │ ├── atoms/
│ │ ├── core/
│ │ ├── icons/
| | └── widgets/
| | ├── Hero.tsx
| | ├── Features.tsx
| | └── ...
│ ├── content/
│ | └── blog/
│ | ├── post-slug-1.md
│ | ├── post-slug-2.md
│ | └── ...
│ ├── routes/
│ | ├── blog/
│ | ├── index.tsx
| | ├── layout.tsx
| | ├-- service-worker.ts
│ | └-- ...
│ ├── config.mjs
│ ├── entry.dev.tsx
│ ├── entry.preview.tsx
│ ├── entry.ssr.tsx
│ └── root.tsx
├── package.json
└── ...
```
- `src/routes`: Provides the directory based routing, which can include a hierarchy of `layout.tsx` layout files, and an `index.tsx` file as the page. Additionally, `index.ts` files are endpoints. Please see the [routing docs](https://qwik.builder.io/qwikcity/routing/overview/) for more info.
- `src/components`: Recommended directory for components.
- `public`: Any static assets, like images, can be placed in the public directory. Please see the [Vite public directory](https://vitejs.dev/guide/assets.html#the-public-directory) for more info.
[](https://githubbox.com/onwidget/qwind/tree/main)
> **Seasoned qwik expert?** Delete this file. Update `config.mjs` and contents. Have fun!
<br>
### Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :----------------- | :--------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `127.0.0.1:5173/` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run fmt` | Format codes with Prettier |
| `npm run lint` | Run Eslint |
| `npm run qwik ...` | Run CLI commands like `qwik add`, `qwik build` |
<br>
### Configuration
Basic configuration file: `./src/config.mjs`
```javascript
export const SITE = {
name: "Example",
origin: "https://example.com",
basePathname: "/", // Change this if you need to deploy to Github Pages, for example
trailingSlash: true, // Generate permalinks with or without "/" at the end
};
```
<br>
### Deploy
#### Deploy to production (manual)
You can create an optimized production build with:
```shell
npm run build
```
Now, your website is ready to be deployed. All generated files are located at
`dist` folder, which you can deploy the folder to any hosting service you
prefer.
#### Deploy to Netlify
Clone this repository on own GitHub account and deploy to Netlify:
[](https://app.netlify.com/start/deploy?repository=https://github.com/onwidget/qwind)
#### Deploy to Vercel
Clone this repository on own GitHub account and deploy to Vercel:
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fonwidget%2Fqwind)
<br>
## Roadmap
### Base
- [ ] Create utilities to generate permalinks tailored to the domain and base pathname.
- [ ] Simplify the way to optimize images.
- [ ] Create component to make SEO simpler and more intuitive.
- [ ] Create configurable blog with categories, tags and authors using MDX.
- [ ] Add more frequently used pages (Portfolio, Services, Contact, Docs ...).
- [ ] Find or create a library to have more icon sources available.
- [ ] Refactor some code that doesn't follow Qwik conventions yet.
### Advanced
- [ ] Achieve perfect 100% Google Page Speed score.
- [ ] Insert complex javascript example widget on home page to demonstrate Qwik features.
- [ ] Create small illustrative admin backend.
<br>
## Contributing
If you have any idea, suggestions or find any bugs, feel free to open a discussion, an issue or create a pull request.
That would be very useful for all of us and we would be happy to listen and take action.
## Acknowledgements
Initially created by [onWidget](https://onwidget.com) and maintained by a community of [contributors](https://github.com/onwidget/qwind/graphs/contributors).
## License
**Qwind** is licensed under the MIT license — see the [LICENSE](https://github.com/onwidget/qwind/blob/main/LICENSE.md) file for details.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

astrowind
⭕️ AstroWind: A free template using Astro v7 and Tailwind CSS v4. Astro starter theme.
Astro · 博客

astro-paper
A minimal, accessible and SEO-friendly Astro blog theme.
Astro · 博客

astro-theme-cactus
A simple Astro theme. Use it to create your blog or website.
Astro · 作品集

astrofy
Astrofy is a free and open-source template for your Personal Portfolio Website built with Astro and TailwindCS…
Astro · 作品集
accessible-astro-starter
Accessible Astro Starter 是一个以无障碍为核心理念的 Astro 6 启动模板,由 incluud 团队维护。
Astro · 博客

astro-erudite
An opinionated, unstyled static blogging template built with Astro and native CSS.
Astro · 作品集
