Skip to content

cworld1/astro-theme-pure

Repository files navigation

Astro Theme Pure

English | 简体中文

A simple, fast and powerful blog & document theme built by Astro.

GitHub deployments NPM Version GitHub Release GitHub License

image image

Note

Known issues: 1. Header & customize options is still under development (template exposed still). 2. Theme template v4.0.5^ UnoCSS preset changed to PresetMini. If there's any problem, please report as issue.

Introduction

Checkout Demo Site →

🔥 Features

  • 🚀 Fast & high performance
  • ⭐ Simple & clean design
  • 📱 Responsive design
  • 🔍 Full-site search built with pagefind
  • 🗺️ Sitemap & RSS feed
  • 🕸️ SEO-friendly
  • 📖 TOC (table of contents)
  • 🖼️ Dynamic open graph generation for posts
  • 🖼️ Mediumzoom lightbox for images

📦 Components

Theme includes a lot of components, which can not only be used in the theme, but also in other astro projects.

For other astro projects, UnoCSS is required. See Package README for more details.

  • Basic components: Aside, Tabs, Timeline, Steps, Spoiler...
  • Advanced components: GithubCard, LinkPreview, Quote, QRCode...

✅ Lighthouse score

lighthouse-score

Documentation

Docs | Showcase

Package

See astro-theme-pure on npm.

Local development

Environment requirements:

Clone the repository:

git clone https://github.com/cworld1/astro-theme-pure.git
cd astro-theme-pure

Useful commands:

# 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 new

Contributions

To spend more time coding and less time fiddling with whitespace, this project uses code conventions and styles to encourage consistency. Code with a consistent style is easier (and less error-prone!) to review, maintain, and understand.

Thanks

Other third party references are on Docs#Contributions. Appreciate for all open source libraries.

License

This project is licensed under the Apache 2.0 License.

Star History Chart