@adobe/spectrum-css

中文文档
3.0.0发布于 2021/02/10Apache-2.0零依赖近 30 天下载 8234

The Spectrum CSS top-level backwards compatible package

原始使用文档
文档目录3 节
  1. Updating
  2. Release process
  3. CLI

@adobe/[email protected]

2.x-compatible bundle package

This package builds a 2.x compatible bundle package containing backwards-compatible versions of all Spectrum CSS components.

This package should be used by teams that are unable to migrate to individually versioned components at this time, but still want to get updates to Spectrum CSS as long as they can.

Updating

This package should be updated and released when non-breaking changes are made to any components included in package.json.

If breaking changes are made to any components included in package.json, that package's version will be frozen and will never be updated again for this package.

Release process

  1. Run the release script in the root of the project to release individual components:
npm run release
  1. Run the release script. Version numbers will be updated automatically, the package will be published, and the documentation site will be deployed.

To release all bundles:

npm run release:bundles

To release only this bundle:

cd bundles/spectrum-css-compat
npm run release

CLI

See bundle-builder CLI.

版本与发布记录

@adobe/spectrum-css 共发布 38 个版本,首次发布于 2018/11/21;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.0.0latest2021/02/105 年前
2.18.02020/03/066 年前
2.17.02020/02/116 年前
2.16.02020/01/236 年前
2.15.22019/12/146 年前
2.15.12019/11/096 年前

其他发布通道:alpha → 2.14.0-alpha.9。

关于 @adobe/spectrum-css 的常见问题

@adobe/spectrum-css 是什么?

The Spectrum CSS top-level backwards compatible package

如何安装 @adobe/spectrum-css?

在项目目录运行 npm install @adobe/spectrum-css,或使用 pnpm add / yarn add / bun add。

@adobe/spectrum-css 支持 TypeScript 吗?

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

@adobe/spectrum-css 可以商用吗?

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

@adobe/spectrum-css 的下载量有多少?

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

@adobe/spectrum-css 还在维护吗?

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