项目 / vuestorefront/storefront-ui

vuestorefront/storefront-ui

行业推荐
语言 TypeScript标签 vueecommerceui-kituipwavuejsvuejs2ui-componentsvue-componentsjavascriptstorefrontstorefront-themereactvuejs3数据更新 2026-11-24 06:50:13 · 仓库 2026-11-23

一段话介绍

Storefront UI 是一套面向电商的、基于 [Tailwind CSS](https://tailwindcss.com/) 的界面库与设计系统,同时提供 Vue 和 React 实现,用来加快店面界面开发。它提供按钮、复选框、对话框等小型基础组件,也提供商品卡、结算步骤等可复制的 Blocks,并附带 `useDropdown` 一类组合式工具、把 Tailwind 配置映射到 CSS 变量的预设,以及排版包和与代码对齐的 Figma 文件。文档按框架分为 [Vue 入门](https://docs.storefrontui.io/v2/vue/getting-started.html) 和 [React 入门](https://docs.storefrontui.io/v2/react/getting-started.html)。若要在本地改这个 monorepo,可在仓库根目录执行 `yarn` 后再运行 `yarn dev`,会同时启动 Vue(Nuxt)和 React(Next)预览;也可分别进入 `/apps/preview/nuxt` 或 `/apps/preview/next`。当前默认分支为 `v2-develop`。许可为 MIT。说明见[文档](https://docs.storefrontui.io/v2/)、[项目站点](https://storefrontui.io)和[仓库 README](https://github.com/vuestorefront/storefront-ui)。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
A frontend library for React and Vue that helps developers quickly build fast, accessible, and beautiful storefronts. Made with 💚 by Vue Storefront team and contributors.
2,821累计星
502Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

电商交易与订单履约

适配系统:交易中台、订单履约系统 · 得分 2.8

内置商品、购物车、订单与支付对象模型,可作为电商交易中台直接改造复用。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
在项目根目录运行 yarn 安装依赖后执行 yarn dev,即可同时本地运行 Vue(Nuxt)和 React(Next)两个预览项目;只跑其一需进入对应 /apps/preview 目录。
特点或设计要点
README 强调它更适合需要深度定制、以及同一套库被多个视觉不同的项目继承的场景:基础组件保持小而灵活,复杂示例以可复制代码给出。文档声明组件默认符合 WCAG AA。在线可试用 [Vue Playground](https://play-vue.vuestorefront.io) 和 [React Playground](https://play-react.vuestorefront.io)。根目录的 `yarn dev` 还会构建 `@storefront-ui/shared`、`@storefront-ui/tw-plugin-peer-next` 和 `@storefront-ui/typography` 等子依赖,因此仓库建议优先在根目录启动。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-08 · 语言 TypeScript · 贡献者 —
sdk

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 6,610 字节。

<p align="center">
  <img src="https://user-images.githubusercontent.com/1626923/157498695-885de6c5-deba-416d-8287-51e7269aef56.png" alt="Storefront UI" />
</p>

<h3 align="center">
  Framework-agnostic UI library and Design System for eCommerce based on <a href="https://tailwindcss.com/">TailwindCSS</a>.
</h3>


<p align="center">
  <a href="https://discord.gg/vuestorefront">
      <img alt="Chat with us on Discord" src="https://img.shields.io/discord/770285988244750366?label=join%20discord&logo=Discord&logoColor=white" />
  </a>
  <img alt="npm" src="https://img.shields.io/npm/v/@storefront-ui/vue">
  <a href="http://commitizen.github.io/cz-cli/">
      <img alt="Commitizen friendly" src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" />
  </a>
  <a href="https://github.com/vuestorefront/storefront-ui">
      <img alt="License" src="https://img.shields.io/github/license/vuestorefront/storefront-ui" />
  </a>
  <a href="https://github.com/vuestorefront/storefront-ui/pulls">
      <img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" />
  </a>
</p>
<hr>

<div align="center">
  <a href="https://docs.storefrontui.io/v2/vue/getting-started.html"><img alt="Vue Installation" height="40" width="120" src="./_readme/vuebtn.svg" /></a>
  <a href="https://docs.storefrontui.io/v2/react/getting-started.html"><img alt="React Installation" height="40" width="120" src="./_readme/reactbtn.svg" /></a>
</div>

<img src="./_readme/showcase.png">

## What problems does Storefront UI solve?

Like any UI Library / Design System the main goal of Storefront UI is to **accelerate the development process** by providing an opinionated set of premade components, utilities and patterns.

There is a lot of the things you have to take care of to build good user interfaces:

🔹 **Developer/Designer workflow** - Storefront UI comes out of the box with Figma files - a pixel-perfect representation of your code that your design and engineering teams needs to stay aligned.

🔹 **Performance** - Poorly written and overcomplicated components are often the performance bottleneck ruining the experience of your users. **All standard eCommerce pages that we've built with Storefront UI hit 95-100 on Lighthouse**! (mobile performance measured using [PSI](https://pagespeed.web.dev/))

🔹 **Accessibility** -  Web accessibility is more than an ethical requirement in the United States: [it’s also legally mandated](https://adasitecompliance.com/website-accessibility-legal-requirement/) and you risk fines if the justice department determines your website is non-compliant. At the same time building accessible components takes a lot of time and requires specific domain knowledge. **Storefront UI components are WCAG AA compliant out of the box!**

But let's be honest, almost all established UI libraries can solve that. **Here's what's Storefront UI is best at::**

🔸 **Customization** -  Most of the UI libraries out there fail when components need to be heavily customized. You suddenly find yourself working against your library just to achieve the desired look. Storefront UI is built for complex cases. We ship a set of small and flexible _base components_ like `Button`, `Checkbox` or `Modal` that can be used to build more complex ones. We also deliver more complex examples (aka _Blocks_) like `ProductCard` or a different checkout steps as copy-pasteable code using Storefront UI components and Tailwind utilities.

In addition, Storefront UI fits perfectly complex UI setups where one library is inherited and customized by multiple projects differing visually.

🔸 **Scaling** - The more your application grows the less maintainable your UI becomes. By providing the right building blocks and using Tailwind CSS we made sure that your UI will be easy to maintain and won't negatively impact your performance even on a large scale.

🔸 **Focus on eCommerce** - Storefront UI comes out of the box with components specific to eCommerce like `ProductCard`, `QuantitySelector` and even checkout components

## What comes out of the box? 🎁

- **Base Components** - beautiful, fast and fully accessible components like `Input` `Checkbox` `Button` that you can use to quickly build more complex structures
- **Blocks** - complex, copy-pasteable examples like `ProductCard` or checkout steps.
- **Composables** like `useDropdown` that abstract complex UI interactions
- **Tailwind preset** that maps tailwind config to CSS variables and provides few SFUI-specific defaults
- **Typography** package simplifying usage of 3rd party fonts
- **Figma** file with pixel-perfect representation of SFUI components based on tailwind properties

<a href="https://www.figma.com/design/ZxaUFeSq1XYvR8v8eqTrJU/SFUI-2-%7C-Design-Kit-v2.7--public-?node-id=22913-91045&p=f&t=Y3eoI5dyw6cRAzVk-0"><img src="./_readme/figma_included.png"></a>

## Contributing

We believe that the best software is made when a lot of people with different views collaborate on it. We welcome all contributions to Storefront UI.

You can become contributor not only by writing code:

- Contribute to documentation
- Write an article or tutorial
- Help others on our [Discord server](https://discord.vuestorefront.io)
- Report a bug
- Do a talk about Storefront UI at your local meetup

We are grateful for all kind of contributions. If you don't know where to start check out our [contribution guide](./CONTRIBUTING.md) or ask for help on [Discord](https://discord.vuestorefront.io)

## How to run project locally

In the `root` directory of this project run `yarn` command to install all needed dependencies.
After dependencies has been installed run `yarn dev` command to run this project.
Now both (Nuxt preview for Vue and Next preview for React) projects are running locally and you can start working on them.
If you need to run only one of them, you need to run a desired preview from its directory, so you need to go for Vue: `/apps/preview/nuxt` and for React: `/apps/preview/next`.

NOTE:
Subdependencies have to be build, such as
- `@storefront-ui/shared` located in `/packages/sfui/shared`
- `@storefront-ui/tw-plugin-peer-next` located in `/packages/sfui/tw-plugin-peer-next`
- `@storefront-ui/typography` located in `/packages/sfui/typography`

Knowing this we recommend using `yarn dev` in `root` directory.

## Links

- [Documentation](https://docs.storefrontui.io/v2/)
- [Playground Vue](https://play-vue.vuestorefront.io)
- [Playground React](https://play-react.vuestorefront.io)
- [Discord](https://discord.vuestorefront.io)
- [Alokai](https://vuestorefront.io)
↑