Astro博客文档

alkaline — Astro 博客模板

作者 AMagicianNamedGob

Alkaline 是一个基于 Astro 的博客与文档主题,默认低 JavaScript,内置 14 套配色、博客与文档布局、SEO 元标签,并使用 TailwindCSS 与 TypeScript。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

1 个预览视图
作者提供的预览
作者提供的预览首屏预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-02查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

基于 Astro,默认低 JavaScript 输出

02

内置 14 套配色,支持明暗模式并可自行扩展

03

同时提供博客与文档两种布局

04

包含 OpenGraph 与 meta 标签等 SEO 配置

05

使用 TailwindCSS 与 TypeScript,配置集中在 alkaline.config.ts

06

提供 24 个预置组件,组件内附文档说明

模板详细介绍

Alkaline 是一个 Astro 主题,面向博客和文档站点,强调低 JavaScript 与语义化 HTML。仓库提供 14 套内置配色(含明暗模式)、博客与文档两种布局、24 个预置组件,以及 OpenGraph 与 meta 标签等 SEO 配置。样式使用 TailwindCSS,配置与类型定义使用 TypeScript。

主题的全局设置集中在 alkaline.config.ts,可配置站点元数据、作者、字体等;google-fonts.ts 预置了 250 个 Google Fonts,可按类型补充字体名称;Types/types.ts 提供类型定义并与配置文件配合。astro.config.mjs、content.config.ts、eslint.config.js、tailwind.config.js、tsconfig.json 已预配置,通常无需改动。

项目当前状态稳定,但作者计划未来用 Next.js 重写(Alkaline v2),因此该仓库被定位为基础与参考,而非长期贡献目标;目前不接受 pull request,但欢迎通过 issue 反馈。README 还提到一个已知问题:类型提示仅在组件闭合标签上触发补全(如 Ctrl+Space)时才正常工作。

Astro博客文档

适合你的项目吗?

适用场景

  • 搭建以内容为主的个人博客
  • 建立项目文档站点
  • 需要低 JavaScript 与语义化 HTML 的静态站点
  • 希望用 TailwindCSS 快速调整主题样式

适合人群

  • 使用 Astro 的开发者
  • 需要博客与文档双布局的站点作者
  • 偏好低 JavaScript、语义化 HTML 的团队
  • 希望以 TypeScript 配置主题的用户

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    克隆仓库后执行 pnpm install(或 npm install),再运行 pnpm dev(或 npm run dev),默认地址为 http://localhost:4321

  2. 2

    站点元数据、作者、字体等全局设置修改 alkaline.config.ts

  3. 3

    字体在 google-fonts.ts 中按类型补充名称;类型定义位于 Types/types.ts

  4. 4

    astro.config.mjs、content.config.ts、eslint.config.js、tailwind.config.js、tsconfig.json 已预配置,通常无需改动

  5. 5

    已知问题:类型提示仅在组件闭合标签上触发补全(如 Ctrl+Space)时生效

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 当前不接受 pull request 贡献,仅欢迎通过 issue 提供讨论与反馈。
  • 作者计划未来用 Next.js 重写(Alkaline v2),本仓库被定位为基础与参考,而非长期维护的贡献目标。
  • 已知问题:类型提示仅在组件闭合标签上触发补全(如 Ctrl+Space)时才正常工作。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Right now, **pull requests aren’t being accepted**

README 原文

the **future focus is a Next.js rebuild**

README 原文

type hints only work if you ctrl+space (or equivalent) on the closing tag of a component

README 原文
https://github.com/AMagicianNamedGob/alkaline/blob/main/LICENSEhttps://github.com/AMagicianNamedGob/alkaline/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 82 / 100
技术栈
Astro
网站类型
博客 · 文档
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2025-09-14
截图检查日期
2026-10-02

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: b6997b84a7b8152486ff81553ba6ca191e59b9d86b733979d83d78bccc157a2d

2026-10-02T20:59:17.427Z

来源文件 / 仓库
# Alkaline

![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
![Astro](https://img.shields.io/badge/Astro-5.2.4-BC52EE?logo=astro)
![TailwindCSS](https://img.shields.io/badge/TailwindCSS-3.4.17-38B2AC?logo=tailwindcss)
![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue?logo=typescript)
![Node](https://img.shields.io/badge/Node-18+-339933?logo=node.js)

## Type Hints Weirdness

🤷 For some inexpicable reason, type hints only work if you ctrl+space (or equivalent) on the closing tag of a component.

## Demo & Astro Info

**Alkaline** is a sleek, Astro-powered theme designed for speed, clarity, and low-JavaScript sites.
It ships with **14 built-in color themes**, **multiple layouts**, **24 pre-built components**, and **SEO optimizations**—all while keeping dependencies minimal.

👉 **[Live Demo](https://alkaline-site.vercel.app/)**

💻 **[New to Astro](https://docs.astro.build/en/getting-started/)**

## 🚀 Features

- ⚡ **Near Zero-JS** by default for blazing fast performance
- 🎨 **14 color themes** with light/dark support and a dead simple way to add your own
- 📝 **Blog & Docs layouts** baked in
- 🔎 **SEO ready** OpenGraph + meta tags included
- 📖 **Documentation** provided in each and every component
- 🛠️ **TailwindCSS** for easy styling and customization
- 🤯 **24 components** to help you get started

### 📊 Performance & Accessibility

Alkaline is built with a performance-first, semantic HTML approach.
It consistently scores **100** in Lighthouse audits right out of the box.

![Lighthouse score 100](screenshots/lighthouse.png "Alkaline Lighthouse report")

## 🖌️ Sample Themes

<p align="center">
  <img src="screenshots/theme-light.png" alt="Light theme" width="45%" />
  <img src="screenshots/theme-dark.png" alt="Dark theme" width="45%"/>
</p>

<p align="center">
  <img src="screenshots/theme-old-couch.png" alt="Old Couch theme" width="45%" />
  <img src="screenshots/theme-pop-punk.png" alt="Pop Punk theme" width="45%" />
</p>

## 📦 Getting Started

Clone and run locally:

```bash
git clone https://github.com/AMagicianNamedGob/alkaline
cd alkaline
pnpm install // or npm install
pnpm dev // or npm run dev
```

Open `http://localhost:4321` in your browser.

## 🛠️ Configurations

- **alkaline.config.ts** – Main theme configuration. Customize site metadata, authors, fonts, and other global settings. Feeds data across the site and can be tailored to your needs.

- **google-fonts.ts** – Preloaded with 250 Google Fonts. Add more by simply including the font name in the type.

- **Types/types.ts** – TypeScript definitions for Alkaline. Ensures type safety and consistency across the project. Works with `alkaline.config.ts` for a smooth configuration experience.

### Preconfigured files (usually no changes needed unless customizing)

- `astro.config.mjs`
- `content.config.ts` *(advanced options available)*
- `eslint.config.js`
- `tailwind.config.js`
- `tsconfig.json`

## 👻 Dependencies Docs

While Alkaline is designed to be lightweight with minimal dependencies, it does rely on a few key packages to deliver its features and performance. Here are the main dependencies used in Alkaline, as well as links to their documentation for further reference:

- Astro - <https://astro.build/docs>
- TailwindCSS - <https://tailwindcss.com/docs>
- Astro-Icon - <https://:github.com/natemoo-re/astro-icon>
- MDX - <https://mdxjs.com/docs/getting-started>

## 🔮 Roadmap

Alkaline is stable as-is, but the **future focus is a Next.js rebuild**.
That means this repo is a foundation and reference point, not a long-term home for contributions.

Planned steps:

- [x] Live demo site
- [x] Accessibility refinements
- [ ] Potential upgrade to TailwindCSS v4
- [ ] Next.js rebuild (Alkaline v2)

## 🤝 Contributing

Right now, **pull requests aren’t being accepted**, since the Next.js rebuild will change the project’s direction, but that may change based on interest and demand.

That said, **discussions and feedback are welcome**—feel free to open an [issue](../../issues) if you have ideas, requests, or spot a bug.

## 📜 License

MIT © [AMagicianNamedGob](https://github.com/AMagicianNamedGob)

---

<br />

🙏 Alkaline is completely free and open source. I’m currently between jobs, and donations help me cover food and rent while I continue improving and maintaining this theme.

If you’d like to support my work, you can do so here:

- ~~GitHub Sponsors~~ COMING SOON!
- [Buy Me a Coffee](https://buymeacoffee.com/trujared)
- [PayPal](https://www.paypal.biz/jaredMakes)

Your support makes a huge difference — thank you for helping me keep Alkaline alive and free for everyone!
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。