基于 Astro 与 Tailwind CSS,不引入额外依赖包
astro-rainbow — Astro 博客模板
作者 w4n9hu1
AstroRainbow 是一个基于 Astro 与 Tailwind CSS 的简洁博客主题,支持明暗模式、草稿与命令行新建文章,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置明暗模式切换
响应式布局,适配手机与桌面设备
支持草稿,并提供命令行新建文章脚本
博客配置集中在 src/config.json
提供 Vercel 与 Netlify 部署入口
模板详细介绍
AstroRainbow 是一个面向博客的 Astro 主题,README 将其定位为干净、简单的博客模板。它只使用 Astro 和 Tailwind CSS,不依赖额外包,提供明暗模式切换与响应式布局,可在手机到桌面设备上使用。
内容方面,主题支持草稿管理,并提供命令行脚本创建新文章(npm run new "post title")。博客配置集中在 src/config.json 中,可在此调整站点相关设置。
使用方式上,可通过 npm create astro 以该仓库为模板初始化项目,本地运行 npm run install 与 npm run dev;部署方面 README 给出了 Vercel 与 Netlify 的一键部署入口。仓库采用 MIT 许可,免费范围为该版本代码,演示图片、字体、图标等第三方素材需另行核对各自许可。
适合你的项目吗?
适用场景
- 搭建个人博客并撰写、管理文章
- 需要明暗两种阅读主题的博客站点
- 希望用命令行快速创建新文章草稿
- 将博客部署到 Vercel 或 Netlify
适合人群
- 使用 Astro 的个人博客作者
- 偏好 Tailwind CSS 写样式的开发者
- 需要草稿流程与简洁版式的写作者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
通过 npm create astro@latest -- --template w4n9hu1/astro-rainbow 初始化项目
- 2
运行 npm run install 安装依赖,npm run dev 启动本地开发
- 3
使用 npm run new "post title" 创建新文章
- 4
博客配置在 src/config.json 中修改
- 5
代码为 MIT 许可,分发时需保留版权与许可声明;第三方素材需单独核对许可
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- MIT 许可要求在所有副本或实质性部分中保留版权声明与许可声明,因此分发或再发布该模板时须附带原始版权与许可文本。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
https://github.com/w4n9hu1/astro-rainbow/blob/main/LICENSEhttps://github.com/w4n9hu1/astro-rainbow/blob/main/README.mdLicensed under the MIT License, Copyright © 2024
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 73 / 100
- 技术栈
- Astro
- 网站类型
- 博客 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2024-09-28
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: cb689f6cca78d6d84b9cafa5105c439b496d1b093354952ad6a153dae526c362
2026-10-02T20:58:26.289Z
来源文件 / 仓库# 🌈 AstroRainbow  AstroRainbow is a clean and simple Astro theme designed for blogs. ## ✨ Features - **Simple & Elegant**: Clean design with a modern, minimalist style. - **Light & Dark Modes**: Switch easily between light and dark themes. - **Responsive Design**: Works well on all devices, from phones to desktops. - **Draft Support**: Save and manage drafts before publishing. - **Blog Post Creation**: Write and organize your blog posts effortlessly. - **Astro & Tailwind CSS Only**: Uses just Astro and Tailwind CSS—no extra packages needed. ## 👨🏻💻 Running Locally ```bash # clone the repo npm create astro@latest -- --template w4n9hu1/astro-rainbow # install dependencies npm run install # start running the project npm run dev # create a new post npm run new "post title" ``` ## 📝 Configuration Blog To configure your blog, edit the `src/config.json` file. ## 🚀 Deploy this template Click here to deploy on Vercel: [](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fw4n9hu1%2Fastro-rainbow) Click here to deploy on Netlify: [](https://app.netlify.com/start/deploy?repository=https%3A%2F%2Fgithub.com%2Fw4n9hu1%2Fastro-rainbow) ## ✨ Contributing Feel free to open an issue if you find bugs or want to request new features. ## 📜 License Licensed under the MIT License, Copyright © 2024
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 博客

fuwari
✨A static blog template built with Astro.
Astro · 博客

Firefly
Firefly 是一款基于 Astro 的静态博客主题,由 CuteLeaf 在 saicaca 的 Fuwari 模板基础上二次开发,主打清新美观的视觉风格。
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 · 作品集
