深绿森林配色搭配黄铜点缀,并提供浅鼠尾草主题切换
astro-njx-verdant — Astro 电商模板
作者 njbSaab
基于 Astro 的植物药房风格电商主题,深绿配色,内置商品目录与 Shopify 数据源切换,输出静态页面。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置 JSON 演示目录,可通过环境变量切换到 Shopify Storefront API 与托管结账
购物车抽屉、收藏、即时搜索与快速查看弹窗,均使用原生脚本实现
约 28 个页面,含六个带筛选排序的集合页与 14 个商品页
全部文案集中在两个 constants 文件,设计令牌集中在单个 @theme 块
构建输出静态 HTML,可部署到 Cloudflare Pages 或任意静态托管
模板详细介绍
astro-njx-verdant 是一个用 Astro 构建的静态电商店面主题,面向护肤品、药房、水疗、花店等偏植物与园艺调性的店铺。视觉上采用深森林绿主色搭配黄铜色点缀,并提供可切换的浅鼠尾草配色模式;首页使用满幅主视觉与错落的分类瓷砖,标题使用大写展示字体。
商品数据来自可插拔的 provider:默认使用仓库内置的 JSON 演示目录(含 14 件商品与 6 个集合),也可通过环境变量切换到 Shopify Storefront API,由 Shopify 托管结账处理支付。购物车抽屉、收藏、即时搜索、快速查看弹窗等交互由少量原生脚本实现,不引入 React 或 Vue 等客户端框架。
主题包含约 28 个页面:首页、六个带筛选与排序的集合页、14 个商品页,以及关于、联系、FAQ、账户界面、隐私、条款和 404 页面。所有文案集中在两个 constants 文件中,设计令牌集中在 global.css 的一个 @theme 块内。构建产物为纯 HTML,可部署到 Cloudflare Pages 或任意静态托管。
需要注意:仓库中的演示数据、图片(来自 Unsplash)、字体与图标等第三方素材需按各自许可单独核对;README 提到后续将推出包含评论、客户账户等功能的 Pro 版本,本次收录的仅为采用 MIT 许可的公开免费代码。
适合你的项目吗?
适用场景
- 为护肤品或植物药房品牌搭建静态商品展示与结账入口
- 用内置演示目录快速预览店面结构与页面组织
- 接入自有 Shopify 店铺,由 Shopify 托管结账处理支付
- 作为二次开发的起点,替换文案与设计令牌后改造成其他零售主题
适合人群
- 经营护肤品、药房、水疗或花店等植物调性店铺的开发者
- 希望用 Astro 输出静态店面并接入 Shopify 的团队
- 需要集中管理文案与设计令牌、便于改版的前端开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后执行 npm install,复制 .env.example 为 .env,默认使用内置演示目录
- 2
接入 Shopify 需在后台创建应用并授予 Storefront API 读取权限,再填写域名与访问令牌
- 3
商品目录可编辑 src/data/mock-catalog.json,图片放在 public/products/
- 4
文案修改位于 src/constants/components.ts 与 src/constants/pages.ts,设计令牌位于 src/styles/global.css
- 5
构建后可用 npx wrangler pages deploy dist 部署到 Cloudflare Pages
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 项目资料提及可选付费版本或功能;本次仅收录公开免费代码,不包含付费升级。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 接入 Shopify 需在 Shopify 后台创建应用并授予 Storefront API 读取权限,填写店铺域名与访问令牌;使用该数据源依赖 Shopify 这一外部服务。
- 切换到真实店铺需设置环境变量并依赖 Shopify 托管结账处理支付,属于外部服务依赖。
- 评论、客户账户、更丰富目录等 Pro 功能尚未包含在免费版本中,属于后续付费升级内容。
- 演示图片来自 Unsplash,需按 Unsplash 自身许可单独核对,不随代码许可一并授予。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
wired for **Shopify** out of the box
README 原文
then flip one environment variable and the same pages build from your **real Shopify store**, with Shopify's hosted checkout handling payments.
README 原文
An extended **Pro** version (reviews, customer accounts, richer catalog) is on the way — watch the repo to get notified.
README 原文
https://github.com/njbSaab/astro-njx-verdant/blob/main/LICENSEhttps://github.com/njbSaab/astro-njx-verdant/blob/main/README.mdPhotos: [Unsplash](https://unsplash.com).
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-13。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 80 / 100
- 技术栈
- Astro
- 网站类型
- 电商
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-12
- 截图检查日期
- 2026-10-13
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-13
查看当时使用的来源资料
SHA-256: 84fb224875747745c26ed7ce1cfb8ef114f97b80150b0be8e1942c974dbb702d
2026-10-13T00:27:41.674Z
来源文件 / 仓库# astro-njx-verdant — botanical apothecary ecommerce theme for Astro [](https://vercel.com/new/clone?repository-url=https://github.com/njbSaab/astro-njx-verdant) [](https://app.netlify.com/start/deploy?repository=https://github.com/njbSaab/astro-njx-verdant) > Part of **[njX Astro Themes](https://njxui.dev/themes)** — ecommerce storefronts & landing pages by one author, free today, Pro versions on the way. A complete storefront built with **Astro 5 + Tailwind CSS v4** in a deep-green botanical voice: dark forest palette with a brass accent, a light sage mode, quick-view product popups — wired for **Shopify** out of the box and deployable to **Cloudflare Pages** (or any static host) in minutes. **Live demo → [astro-njx-verdant.pages.dev](https://astro-njx-verdant.pages.dev)** Everything in the demo — cart, checkout, search, favorites — is this theme running on mock data.  ## What is this? A **static storefront**: Astro renders every page to plain HTML at build time, so the site is fast by default and hosting is essentially free. Product data comes from a pluggable provider — start with the bundled JSON catalog, then flip one environment variable and the same pages build from your **real Shopify store**, with Shopify's hosted checkout handling payments. Made for skincare brands, apothecaries, spas, florists and any shop that sells with a botanical, garden-first voice. ## Features - 🌿 **Deep-green design system** — dark forest palette + brass accent, staggered category tiles over a full-bleed hero, uppercase display type (Archivo) - 🌤 **Two moods, one switch** — dark greenhouse by default, a light sage theme on toggle; no reload flash - 🛒 **Persistent cart drawer** — quick-add, quantities, line remove, clear all, hands off to Shopify's hosted checkout - ❤️ **Favorites** with badge counter - 🔍 **Instant search** over an inline index - 🔌 **Two data providers, one switch** — `COMMERCE_PROVIDER=mock` (bundled JSON) or `shopify` (live products over the Storefront API) - 📝 **All copy in two constants files** — rebrand every text without touching markup - 📄 **28 pages** — home, six collections with filters and sorting, 14 product pages, about, contacts, FAQ, account UI, privacy, terms, honest 404 - ⚡️ **Zero client framework** — a few small vanilla scripts; no React/Vue cost ## Quick start ```bash git clone https://github.com/njbSaab/astro-njx-verdant.git my-store cd my-store npm install cp .env.example .env # defaults to the mock catalog npm run dev # http://localhost:4321 ``` That's it — the store runs on the bundled demo catalog (`src/data/mock-catalog.json`). Edit that file to see your own products immediately. ## Connect your Shopify store 1. In Shopify admin: **Settings → Apps and sales channels → Develop apps → Create an app.** 2. Give it the *Storefront API* scopes (unauthenticated read products/collections/checkouts). 3. Install the app and copy the **Storefront API access token** (this token is public-safe). 4. Update `.env`: ```bash COMMERCE_PROVIDER=shopify PUBLIC_SHOPIFY_DOMAIN=your-store.myshopify.com PUBLIC_SHOPIFY_STOREFRONT_TOKEN=xxxxxxxxxxxxxxxx ``` 5. `npm run build` — the same pages now build from your live catalog, and the cart creates a real Shopify cart and redirects to your hosted checkout. The provider interface lives in `src/lib/commerce/` — adding WooCommerce, Medusa or your own API means implementing one small TypeScript interface. ## Deploy Any static host works. For Cloudflare Pages: ```bash npm run build npx wrangler pages deploy dist --project-name my-store ``` The whole store fits comfortably in Cloudflare's free tier. ## Make it yours - **All copy in two files** — `src/constants/components.ts` (header, footer, cart, search, modal) and `src/constants/pages.ts` (home, about, FAQ, product page, …). - **Design tokens** — one `@theme` block in `src/styles/global.css`; the light sage mode is a single `.dark` override block. - **Catalog** — `src/data/mock-catalog.json` + photos in `public/products/`, or Shopify. ## Project structure ``` src/ ├── constants/ # ALL copy: components.ts + pages.ts ├── data/mock-catalog.json # demo products & collections (14 items) ├── layouts/Layout.astro # header, drawers, search, theme & cart logic ├── components/ProductCard.astro ├── lib/ │ ├── commerce/ # provider interface + mock & shopify implementations │ ├── cart.ts # persistent cart (nanostores) │ └── favorites.ts # favorites store └── pages/ # index, collections/, products/, about, faq, … ``` ## Sibling themes & Pro Same engine, different voices: **[astro-njx-store](https://github.com/njbSaab/astro-njx-store)** (warm paper-and-pine), **[astro-njx-boutique](https://github.com/njbSaab/astro-njx-boutique)** (editorial fashion) and **[astro-njx-dark-lux](https://github.com/njbSaab/astro-njx-dark-lux)** (monochrome dark luxury). An extended **Pro** version (reviews, customer accounts, richer catalog) is on the way — watch the repo to get notified. ## Credits Made by [njX](https://njxui.dev) — also the author of [njx-ui](https://njxui.dev), a classless-friendly CSS library for landings. Photos: [Unsplash](https://unsplash.com). If this theme saves you time, a star on GitHub would make my day ♡
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

astro-shopify
astro-shopify 是一个面向开发者的轻量级电商启动模板,用于构建基于 Shopify 的无头店面。
Astro · 电商

astro-ecommerce
Astro Ecommerce - Ready to use components
Astro · 电商

astro-medusa-starter
Astro + Medusa starter for e-commerce. Optimized to the core.
Astro · 电商

sanity-astro-club
sanity-astro-club 开源网站模板。
Astro · 电商

atelier-ko
Atelier Kō 是一个为小型家具工坊或类似手工艺目录设计的 Astro 电商主题,它的核心假设是:作品不多,摄影足够有力,因此界面刻意保持冷静和建筑感。
Astro · 电商

starter-astro
A small, production-minded storefront starter for Astro.
Astro · 电商
