@carbon/ibm-products-styles

中文文档
2.98.0发布于 2026/10/28Apache-2.0构建来源已验证近 30 天下载 13.4万

Carbon for IBM Products styles

原始使用文档
文档目录3 节
  1. 📦 Installing Carbon for IBM Products Styles
  2. To change the package prefix
  3. IBM Telemetry

@carbon/ibm-products-styles

This package is published to support use of the styles from @carbon/ibm-products independently of @carbon/ibm-products.

If you are using the React components @carbon/ibm-products then you can load the styles direct from that package if preferred.

See the core package at https://github.com/carbon-design-system/ibm-products for usage and contribution details.

📦 Installing Carbon for IBM Products Styles

Using your favorite package installer e.g.

$ yarn add @carbon/ibm-products-styles

# or

$ npm install @carbon/ibm-products-styles

To change the package prefix

Follow the in the ibm-products README to change the prefix.

Prefix setting instructions

IBM Telemetry IBM Telemetry

This package uses IBM Telemetry to collect de-identified and anonymized metrics data. By installing this package as a dependency you are agreeing to telemetry collection. To opt out, see Opting out of IBM Telemetry data collection. For more information on the data being collected, please see the IBM Telemetry documentation.

版本与发布记录

@carbon/ibm-products-styles 共发布 236 个版本,首次发布于 2023/11/28;过去 12 个月发布了 49 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.98.0latest2026/10/2812 天前
2.98.0-rc.0next2026/10/2712 天前
2.97.02026/10/1426 天前
2.97.0-rc.02026/10/1227 天前
2.96.02026/09/301 个月前
2.96.0-rc.02026/09/281 个月前

其他发布通道:canary → 2.50.0-canary.74,next → 2.98.0-rc.0。

关于 @carbon/ibm-products-styles 的常见问题

@carbon/ibm-products-styles 是什么?

Carbon for IBM Products styles

如何安装 @carbon/ibm-products-styles?

在项目目录运行 npm install @carbon/ibm-products-styles,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@carbon/grid(^11.64.0)、@carbon/type(^11.69.0)、@carbon/layout(^11.61.0)、@carbon/motion(^11.54.0)、@carbon/themes(^11.83.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@carbon/ibm-products-styles 支持 TypeScript 吗?

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

@carbon/ibm-products-styles 可以商用吗?

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

@carbon/ibm-products-styles 的下载量有多少?

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

@carbon/ibm-products-styles 还在维护吗?

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