# @94ai-plus/nf-theme-chalk 中文文档

规范地址：https://npmcn.com/package/%4094ai-plus/nf-theme-chalk/

版本：1\.0\.0-beta\.1
npm 元数据更新时间：2026-11-05T08:58:53.091Z
中文译文更新时间：2026-11-06T17:11:44.926Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%4094ai-plus/nf-theme-chalk
原文对照：https://npmcn.com/package/%4094ai-plus/nf-theme-chalk/?lang=original
项目主页：https://oss.xccjh.top/common-ui-plus/index.html
源码仓库：http://gitlab.94ai.pro/ui/common-ui-plus

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：1.5 MB，112 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- 运行依赖：0 个
- peer 依赖：element-plus ^2\.14\.7
- 首次发布：2026-10-29T08:30:43.169Z
- 最新版本发布：2026-11-05T08:58:52.903Z
- 近 30 天下载量：2628（2026-10-05 至 2026-11-03，npm 官方下载统计）
- 已发布版本数：10（近 12 个月 10 个）

## 中文简介

常见- ui- plus 的默认主题

## 安装

```sh
npm install @94ai-plus/nf-theme-chalk
```

也可以使用：`pnpm add @94ai-plus/nf-theme-chalk`、`yarn add @94ai-plus/nf-theme-chalk`、`bun add @94ai-plus/nf-theme-chalk`

## README

#    [![94AI](https://cdn.jsdelivr.net/npm/@94ai-plus/nf-theme-chalk@1.0.0-beta.1/dist/readme/94logo.png)   ![common-ui+](https://cdn.jsdelivr.net/npm/@94ai-plus/nf-theme-chalk@1.0.0-beta.1/dist/readme/common-plus.svg)](https://oss.xccjh.top/common-ui-plus/index.html)

[![npm latest 版本](https://img.shields.io/npm/v/%4094ai-plus/nf-theme-chalk/latest.svg?label=version)](https://www.npmjs.com/package/@94ai-plus/nf-theme-chalk) [![开发环境 Node.js 22.13.0](https://img.shields.io/badge/Node.js-22.13.0-5FA04E.svg)](https://nodejs.org/en/blog/release/v22.13.0) [![Vue 3.5](https://img.shields.io/badge/Vue-3.5-42B883.svg)](https://vuejs.org/) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://cdn.jsdelivr.net/npm/@94ai-plus/nf-theme-chalk@1.0.0-beta.1/LICENSE) [![Repository test pass rate (default branch), not per-package results](https://oss.xccjh.top/common-ui-plus-badges/test-pass-rate.svg)](https://oss.xccjh.top/common-ui-plus-badges/test-pass-rate.svg) [![Repository source line coverage (default branch), not per-package coverage](https://oss.xccjh.top/common-ui-plus-badges/coverage.svg)](https://oss.xccjh.top/common-ui-plus-badges/coverage.svg)

[![NPM](https://nodei.co/npm/@94ai-plus/nf-theme-chalk.svg?downloads=true&downloadRank=true)](https://www.npmjs.com/package/@94ai-plus/nf-theme-chalk)

# @94ai-plus/nf-theme-chalk

Common UI Plus 默认主题包，主色 `$nf-color-primary: #17f`（`#1177ff`）。提供总 CSS、按组件 CSS、SCSS 源码及 Element Plus token / CSS variable 适配。

## [HomePage](https://oss.xccjh.top/common-ui-plus/index.html)

[官网](https://oss.xccjh.top/common-ui-plus/index.html) · [项目仓库](http://gitlab.94ai.pro/ui/common-ui-plus) · [快速上手](http://gitlab.94ai.pro/ui/common-ui-plus/-/blob/main/docs/guide/quick-start.md)

## Installation

```bash
yarn add @94ai-plus/nf-theme-chalk element-plus
```

## Usage

全量样式：

```ts
import 'element-plus/dist/index.css'
import '@94ai-plus/nf-theme-chalk/index.css'
```

按组件引入：

```ts
import '@94ai-plus/nf-theme-chalk/nf-button.css'
```

SCSS 源码入口（需要 Sass）：

```scss
@use '@94ai-plus/nf-theme-chalk/scss/index.scss';
```

主题选择可通过 `app.use(createCommonUI({ theme: 'chalk' }))`（`createCommonUI` 从 `@94ai-plus/common-ui` 导入）、`<NfConfigProvider theme="chalk">` 或设置根节点 `data-nf-theme="chalk"` 完成。双主题运行时切换需预先加载两份 CSS；Chalk / OEM 是组件品牌主题，与文档／演练场亮暗外观独立。

包内容包含 `dist/css`、`dist/scss`、`dist/style/index.css`；使用公开 exports 路径，不再使用旧版 `lib/css` 或 `lib/index.scss` 路径。本包不包含 Element Plus 全量基础 CSS，需单独引入。

主题将 Element Plus 默认尺寸（未传 size 或 size="default"）的单行控件高度统一为 28px；small 为 24px、large 为 40px，多选标签与多行内容仍可自然撑高。请在 Element Plus 基础 CSS 之后引入主题样式，全量及按组件主题入口均包含此适配。

## Contributors

感谢每一位参与项目建设的贡献者！

![最近三个月的贡献者气泡图](https://cdn.jsdelivr.net/npm/@94ai-plus/nf-theme-chalk@1.0.0-beta.1/dist/readme/contributors.svg)

![最近三个月的贡献者头像墙（使用姓名首字母）](https://cdn.jsdelivr.net/npm/@94ai-plus/nf-theme-chalk@1.0.0-beta.1/dist/readme/contributors-wall.svg)

以上为随本版本发布的贡献者统计快照，统计日期与分支见图中说明；仅统计 Git 非合并提交，头像使用姓名首字母，不是 GitLab 个人照片。

## License

本项目采用 [MIT License](https://cdn.jsdelivr.net/npm/@94ai-plus/nf-theme-chalk@1.0.0-beta.1/LICENSE) 开源许可。

Copyright (c) 2026-present Jiahe Zou, 94 Intelligent Technology Co., Ltd.

## 常见问题

### @94ai-plus/nf-theme-chalk 是什么？

常见- ui- plus 的默认主题

### 如何安装 @94ai-plus/nf-theme-chalk？

在项目目录运行 npm install @94ai-plus/nf-theme-chalk，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：element-plus（^2\.14\.7）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @94ai-plus/nf-theme-chalk 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/94ai-plus\_\_nf-theme-chalk 是否存在。

### @94ai-plus/nf-theme-chalk 支持 ESM 还是 CommonJS？

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

### @94ai-plus/nf-theme-chalk 可以商用吗？

@94ai-plus/nf-theme-chalk 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @94ai-plus/nf-theme-chalk 的下载量有多少？

根据 npm 官方下载统计，@94ai-plus/nf-theme-chalk 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,628 次，日均约 88 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @94ai-plus/nf-theme-chalk 还在维护吗？

最新版本 1\.0\.0-beta\.1 发布于 2026/11/05（2 天前）；至今共发布 10 个版本，其中过去 12 个月发布了 10 个；首次发布于 2026/10/29。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

