@automattic/color-studio

中文文档
4.1.0发布于 2025/01/29SEE LICENSE IN LICENSE.md零依赖近 30 天下载 10.9万

The color palette for Automattic products.

原始使用文档
文档目录5 节
  1. Using Color Studio as a Dependency
  2. SCSS
  3. JavaScript
  4. Development
  5. License

Color Studio

The color palette for Automattic products, exported in multiple formats.

Color palette preview

Using Color Studio as a Dependency

npm install @automattic/color-studio

This package is dependency-free.

SCSS

@import "~@automattic/color-studio/dist/color-variables";

button {
  background: $studio-pink-50;
  color: $studio-white;
}

JavaScript

const PALETTE = require( '@automattic/color-studio' );

console.log( PALETTE.colors[ 'Pink 50' ] );

The above imports the contents of the JSON file.

Development

# Spin up Color Studio
yarn install
yarn test
yarn start

# Generate the JSON file, the stylesheets, and the Sketch Palettes file
yarn palette

# Build the documentation and the examples from `docs/source`
yarn docs

# Build and link the Sketch extension
yarn sketch

# Generate the preview image (by taking a screenshot of the documentation)
yarn meta

All the build commands run automatically before every commit.

License

Color Studio is licensed under GNU General Public License v2.0 (or later).

版本与发布记录

@automattic/color-studio 共发布 17 个版本,首次发布于 2019/07/04;过去 12 个月发布了 0 个版本。

版本发布日期距今
4.1.0latest2025/01/291.8 年前
4.0.02024/11/132 年前
3.0.32024/10/012 年前
3.0.22024/09/052 年前
3.0.12024/08/202 年前
3.0.02024/08/192 年前

关于 @automattic/color-studio 的常见问题

@automattic/color-studio 是什么?

The color palette for Automattic products.

如何安装 @automattic/color-studio?

在项目目录运行 npm install @automattic/color-studio,或使用 pnpm add / yarn add / bun add。

@automattic/color-studio 支持 TypeScript 吗?

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

@automattic/color-studio 可以商用吗?

@automattic/color-studio 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@automattic/color-studio 的下载量有多少?

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

@automattic/color-studio 还在维护吗?

最新版本 4.1.0 发布于 2025/01/29(1.8 年前);至今共发布 17 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/07/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。