块编辑器开发文档

@wordpress/postcss-themes

💡 云策文档标注

概述

@wordpress/postcss-themes 是一个 PostCSS 插件,用于生成主题颜色。它作为 Gutenberg 项目的一部分,以 monorepo 形式组织,需要 Node.js 长期支持版本。

关键要点

  • 这是一个 PostCSS 插件,核心功能是生成主题颜色。
  • 安装方式:通过 npm 安装,命令为 npm install @wordpress/postcss-themes --save。
  • 环境要求:需要 Node.js 的长期支持版本(Active LTS 或 Maintenance LTS),不兼容旧版本。
  • 项目结构:属于 Gutenberg 项目的 monorepo 中的独立包,每个包有特定用途,发布到 npm 供 WordPress 和其他项目使用。
  • 贡献指南:如需贡献,请参考 Gutenberg 项目的主要贡献者指南。

📄 原文内容

PostCSS plugin to generate theme colors.

Installation

Install the module

npm install @wordpress/postcss-themes --save

Note: This package requires Node.js version with long-term support status (check Active LTS or Maintenance LTS releases). It is not compatible with older versions.

Contributing to this package

This is an individual package that’s part of the Gutenberg project. The project is organized as a monorepo. It’s made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to npm and used by WordPress as well as other software projects.

To find out more about contributing to this package or Gutenberg as a whole, please read the project’s main contributor guide.