https://github.com/cworld1/astro-theme-pure
⭐ A simple, fast and powerful blog & document theme built by Astro
https://github.com/cworld1/astro-theme-pure
astro astrojs blog blog-theme
Last synced: 3 months ago
JSON representation
⭐ A simple, fast and powerful blog & document theme built by Astro
- Host: GitHub
- URL: https://github.com/cworld1/astro-theme-pure
- Owner: cworld1
- License: apache-2.0
- Created: 2024-07-26T08:44:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-30T05:58:27.000Z (8 months ago)
- Last Synced: 2025-07-30T07:39:24.789Z (8 months ago)
- Topics: astro, astrojs, blog, blog-theme
- Language: Astro
- Homepage: https://astro-pure.js.org
- Size: 18.8 MB
- Stars: 335
- Watchers: 5
- Forks: 87
- Open Issues: 18
-
Metadata Files:
- Readme: README-zh-CN.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-blog-themes - pure - theme-pure/refs/heads/main/.github/assets/body.webp) | (Astro)
README
# Astro Theme Pure
[English](./README.md) | 简体中文
一个由 Astro 构建的,轻便简洁、快速强大的博客 & 文档主题。
[](https://astro-pure.js.org/)
[](https://www.npmjs.com/package/astro-pure)
[](https://github.com/cworld1/astro-theme-pure/releases)
[](https://github.com/cworld1/astro-theme-pure/blob/main/LICENSE)


> [!NOTE]
> 已知问题:1. Head 标签和自定义选项仍在开发中(已经暴露模板直接改);2. 主题模板 v4.0.5^ CSS 预设被换到 PresetMini。如有任何问题,请及时反馈。
## 简介
查看 [预览 →](https://astro-pure.js.org/)
### :fire: 特性
- [x] :rocket: 快速高性能
- [x] :star: 简单干净的设计
- [x] :iphone: 响应式设计
- [x] :mag: 使用 [pagefind](https://pagefind.app/) 构建的全站搜索
- [x] :world_map: 站点地图和 RSS 订阅
- [x] :spider_web: 友好的 SEO
- [x] :book: 目录(table of contents)
- [x] :framed_picture: 动态为文章生成可供三方媒体预览的分享图像
- [x] :framed_picture: Mediumzoom 图像灯箱
### :package: 组件
主题包含了许多组件,不仅可以在主题中使用,还可以在其他 Astro 项目中使用。
> 其他 Astro 项目使用需要 UnoCSS。更多详情请查阅 [Package README](https://github.com/cworld1/astro-theme-pure/blob/main/packages/pure/README.md#use-with-common-astro-project)。
- 基础组件:`Aside`、`Tabs`、`Timeline`、`Steps`、`Spoiler`...
- 高级组件:`GithubCard`、`LinkPreview`、`Quote`、`QRCode`...
## :white_check_mark: Lighthouse 分数
[](https://pagespeed.web.dev/analysis/https-cworld-top/o229zrt5o4?form_factor=mobile&hl=en)
## 文档
[文档](https://astro-pure.js.org/docs) | [展示台](https://github.com/cworld1/astro-theme-pure/issues/10)
## NPM 包
在 NPM 上查看:[astro-theme-pure](https://www.npmjs.com/package/astro-pure)
## 本地开发
环境要求:
- [Nodejs](https://nodejs.org/): 18.0.0+
克隆存储库:
```shell
git clone https://github.com/cworld1/astro-theme-pure.git
cd astro-theme-pure
```
有用的命令:
```shell
# Install dependencies
bun install
# Start the dev server
bun dev
# Build the project
bun run build
# Preview (after the build)
bun preview
# Create a new post
bun pure new
```
## 贡献
为了花更多时间编写代码,减少在空白上纠结的时间,本项目使用代码约定和样式来鼓励一致性。风格一致的代码更容易(且更不容易出错)进行审查、维护和理解。
## 鸣谢
- [Astro Cactus](https://github.com/chrismwilliams/astro-theme-cactus)
- [Astro Resume](https://github.com/srleom/astro-theme-resume)
- [Starlight](https://github.com/withastro/starlight)
其他第三方参考资料在 [Docs#Contributions](https://astro-pure.js.org/docs/advanced/thanks) 上。感谢所有开源库。
## 许可证
本项目基于 Apache 2.0 许可证。
[](https://star-history.com/#cworld1/astro-theme-pure&Date)