@atlaskit/reduced-ui-pack

中文文档
20.1.1发布于 2026/08/29Apache-2.0ES Module零依赖近 30 天下载 1.1万

CSS classes which provide styling for a reduced number of Atlaskit components.

原始使用文档
文档目录3 节
  1. Installation
  2. Using the component
  3. Importing

Reduced UI Pack

This package exports a CSS file which includes some CSS classes that provide styling for a reduced number of Atlaskit components.

There is also an icon SVG sprite sheet included. See the "Try it out" section below for usage instructions.

Installation

npm install reduced-ui-pack

Make sure you're also including the css-reset stylesheet before these styles. The css-reset stylesheet provides the core typography rules which reduced-ui-pack builds upon. Install it with:

npm install @atlaskit/css-reset

Using the component

Importing

The reduced-ui-pack package can be consumed via the dist, or in Webpack.

Importing in Webpack

import 'reduced-ui-pack';

The Webpack style loader should then place the CSS within the HEAD of your HTML element.

Importing in HTML

<html>
    <head>
        <link rel="stylesheet" href="node_modules/@atlaskit/css-reset/dist/bundle.css" />
        <link rel="stylesheet" href="node_modules/reduced-ui-pack/dist/bundle.css" />
    </head>
    <body>
        <!-- ... -->
    </body>
</html>

版本与发布记录

@atlaskit/reduced-ui-pack 共发布 152 个版本,首次发布于 2017/02/10;过去 12 个月发布了 9 个版本。

版本发布日期距今
20.1.1latest2026/08/292 个月前
20.1.02026/08/202 个月前
20.0.02026/06/164 个月前
19.1.42026/04/136 个月前
19.1.32026/04/096 个月前
19.1.22026/03/048 个月前

其他发布通道:next → 18.0.2。

关于 @atlaskit/reduced-ui-pack 的常见问题

@atlaskit/reduced-ui-pack 是什么?

CSS classes which provide styling for a reduced number of Atlaskit components.

如何安装 @atlaskit/reduced-ui-pack?

在项目目录运行 npm install @atlaskit/reduced-ui-pack,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@atlaskit/css-reset(^8.3.0)、react(^18.2.0 || ^19.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@atlaskit/reduced-ui-pack 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/atlaskit__reduced-ui-pack 是否存在。

@atlaskit/reduced-ui-pack 支持 ESM 还是 CommonJS?

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

@atlaskit/reduced-ui-pack 可以商用吗?

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

@atlaskit/reduced-ui-pack 的下载量有多少?

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

@atlaskit/reduced-ui-pack 还在维护吗?

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