# @riiid/santa-closet-web 中文文档

规范地址：https://npmcn.com/package/%40riiid/santa-closet-web/

版本：0\.1\.3
npm 元数据更新时间：2026-11-02T07:37:38.580Z
中文译文更新时间：2026-11-02T08:22:01.851Z
软件包许可：Apache-2\.0

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

原始 npm 页面：https://www.npmjs.com/package/%40riiid/santa-closet-web
原文对照：https://npmcn.com/package/%40riiid/santa-closet-web/?lang=original
源码仓库：https://github.com/riiid/santa-closet-web

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

- 包体积（解压后）：206 kB，111 个文件
- TypeScript 类型：未声明
- Node.js 要求：\>=8
- 运行依赖：2 个
- peer 依赖：react ^15\.0\.0 \|\| ^16\.0\.0，react-dom ^15\.0\.0 \|\| ^16\.0\.0，@types/react ^16\.9\.23
- 首次发布：2019-04-09T13:44:42.082Z
- 最新版本发布：2020-09-01T00:08:27.196Z
- 已发布版本数：17（近 12 个月 0 个）

## 中文简介

圣诞老人产品UI设计工具包

## 安装

```sh
npm install @riiid/santa-closet-web
```

也可以使用：`pnpm add @riiid/santa-closet-web`、`yarn add @riiid/santa-closet-web`、`bun add @riiid/santa-closet-web`

## README

# santa-closet-web

[![NPM](https://img.shields.io/npm/v/@riiid/santa-closet-web.svg)](https://www.npmjs.com/package/@riiid/santa-closet-web)

**UI设计工具包🎅的产品**

**依赖关系**

-   反应起来吧！

🚧👷警告👷🚧  

-   基础及组件。👀

## 安装

```bash
yarn add @riiid/santa-closet-web
```

## 使用

### 基金会

圣诞衣橱，超大型，超大型，쉐，超大型，超大型，超大型。  
\[qh\] \[qh `dark` 또는 `light` \* \* \* \* \*

基础网。  

| 插件 | 自述 |
| --- | --- |
| 所有 | @riiid / santa-closet-web |
| 颜色 | @riiid santa-closet-web /颜色 |
| 主题 | @riiid santa-closet-web /主题 |
| 图标 | @riiid / santa-closet-web /图标 |
| 阴影 | @riiid santa-closet-web /阴影 |

예시

```jsx
import {white1, shadowDown1} from '@riiid/santa-closet-web'
import {dark as theme} from '@riiid/santa-closet-web/theme';
import {Arrow, Cart, Password} from '@riiid/santa-closet-web/icons'

class Example extends Component {
  render () {
    return (
      <div style={shadowDown1}>
        <Arrow/>
        <Cart width={30} height={30} fill={white1}/>
        <Password fill={theme.color1}/>
      </div>
    )
  }
}
```

**图标列表** ![image](https://user-images.githubusercontent.com/12146287/57600954-336f7f00-7596-11e9-91a5-58b76fd15059.png)

## 例子

#### Cheetsheet

[`cheat sheet`](https://santa-closet.riiid.app/) - [https://santa-closet.riiid.app](https://santa-closet.riiid.app/)  

#### 示例项目

`yarn link` 部署组网 `/lib` 폴더와연결하여테스트합니다。🖐🏻

## 部署

`yarn release` \[qh\] \[qh\] \[qh\] \[qh\] \[qh\] \[qh\] \[qh\] \[qh\]

## 许可证

Riiid© [Riiid](https://github.com/Riiid)

## 常见问题

### @riiid/santa-closet-web 是什么？

圣诞老人产品UI设计工具包

### 如何安装 @riiid/santa-closet-web？

在项目目录运行 npm install @riiid/santa-closet-web，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：react（^15\.0\.0 \|\| ^16\.0\.0）、react-dom（^15\.0\.0 \|\| ^16\.0\.0）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @riiid/santa-closet-web 支持 TypeScript 吗？

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

### @riiid/santa-closet-web 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=8。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @riiid/santa-closet-web 可以商用吗？

@riiid/santa-closet-web 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @riiid/santa-closet-web 还在维护吗？

最新版本 0\.1\.3 发布于 2020/09/01（6 年前）；至今共发布 17 个版本，其中过去 12 个月发布了 0 个；首次发布于 2019/04/09。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

