@asheeui/web

中文文档
2.9.2发布于 2026/11/08Apache-2.0TypeScriptES Module近 30 天下载 1787

Accessible and customizable React primitives engineered with Tailwind CSS.

原始使用文档
文档目录8 节
  1. Features
  2. Requirements
  3. Installation
  4. Documentation
  5. Quick start
  6. Theming
  7. Links
  8. License

@asheeui/web

A React UI framework built on Tailwind CSS v4. Accessible, config-driven components, a layout system, the sections a page is made of, and a Puck integration behind their own entry point.

Features

  • Config-driven — theme, variant, color, radius and spacing defaults resolve through one cascade, so a value can be set globally, per component or per instance.
  • A layout system — Container, Section, Stack/HStack/VStack, Grid, Page/PageHeader/PageContent/PageFooter, plus SidebarLayout and AuthLayout for application pages.
  • Page sections — Navbar, Hero, FeatureGrid, CTA, Testimonials, PricingCard and Footer, each taking its actions as configuration.
  • Puck integration — the framework's block registry lives in @asheeui/puck, so an application, an editor and a published page share one implementation, and a device renders the composed page with the native components. @puckeditor/core is an optional peer dependency of that package.
  • Tailwind CSS v4 — class names are static and complete, and colours resolve through CSS custom properties.
  • Light and dark themes — built-in light, dark and system themes, plus custom themes.
  • Accessible — landmarks, names, keyboard behaviour and announced state are part of each component's contract, with tests that state them.
  • TypeScript-first — fully typed configuration, theme registry and component props, with JSDoc on every exported symbol.

Requirements

  • React 18 or newer
  • Tailwind CSS v4
  • Node.js 22.12 or newer for development

Installation

npm install @asheeui/web

Import the stylesheet once and wrap your root in the provider:

@import "tailwindcss";
@import "@asheeui/web/styles";
import { AsheeUIProvider } from "@asheeui/web";

The optional @asheeui/cli package can scaffold that setup and check it, but it is not required: the two steps above are the whole setup.

Documentation

The framework documentation lives in the repository:

Quick start

import { Button, Page, PageContent, Hero } from "@asheeui/web";

export function App() {
  return (
    <Page>
      <PageContent>
        <Hero
          title="Run your campaigns from one place"
          primaryAction={{ label: "Start free", href: "/signup" }}
        />
        <Button>Hello AsheeUI</Button>
      </PageContent>
    </Page>
  );
}

A complete page is Navbar, a band or two, and Footer, all of them composing through Page, Section, Container and Grid.

Theming

Themes are CSS custom properties (--ashee-background, --ashee-primary, and so on), applied by the provider before the first paint. useTheme switches the theme at runtime and records the preference, themeController does the same outside React, and a theme is defined as a block in the configuration.

License

AsheeUI is licensed under the Apache License 2.0. Copyright and attribution notices are in the root NOTICE file; the repository's licensing guide explains what redistribution requires.

版本与发布记录

@asheeui/web 共发布 11 个版本,首次发布于 2026/10/08;过去 12 个月发布了 11 个版本。

版本发布日期距今
2.9.2latest2026/11/08今天
2.9.12026/11/053 天前
2.9.02026/11/017 天前
2.8.02026/10/318 天前
2.7.02026/10/2811 天前
2.6.02026/10/2811 天前

关于 @asheeui/web 的常见问题

@asheeui/web 是什么?

Accessible and customizable React primitives engineered with Tailwind CSS.

如何安装 @asheeui/web?

在项目目录运行 npm install @asheeui/web,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.0.0 || ^19.0.0)、react-dom(^18.0.0 || ^19.0.0)、tailwindcss(>=4.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@asheeui/web 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@asheeui/web 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@asheeui/web 可以商用吗?

@asheeui/web 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@asheeui/web 的下载量有多少?

根据 npm 官方下载统计,@asheeui/web 在 2026/10/07 – 2026/11/05 这 30 天内被下载 1,787 次,日均约 60 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@asheeui/web 还在维护吗?

最新版本 2.9.2 发布于 2026/11/08(今天);至今共发布 11 个版本,其中过去 12 个月发布了 11 个;首次发布于 2026/10/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。