Chroma Panel

搜索文档

查找页面或章节

EN

版本发布

查看 Markdown

所有已发布的版本,最新的排在最前。

chroma-panel 最新的版本排在最前面。先通过发布说明确认改了什么,再按对应版本的升级命令操作。

  • v1.0.1最新

    • Added detailed change-event information.
    • Improved accessibility, documentation, and package optimization.
    • Fixed minor issues found during final v1 testing.
  • 1.0.0

    • Added OKLCH, OKLab, Lab, LCH, sRGB and Display P3 support.
    • Added color conversion, serialization, gamut detection and gamut mapping.
    • Added an accessible linear/radial gradient editor.
    • Added perceptual OKLab/OKLCH gradient interpolation.
    • Added source-aware onValueChange and onValueCommit events.
    • Added alpha-aware contrast calculation and accessible-color suggestions.
    • Added CSS, SCSS, Tailwind and design-token exports.
    • Added clipboard image pasting.
  • 0.2.0

    • Documented exact image pixel picking and zoom preview.
    • Documented keyboard image selection.
    • Added image file-size and dimension safety limits.
    • Documented the new copy-color button and showCopyButton prop.
    • Updated the generated API reference.
    • Updated the landing-page image feature description.
  • v0.1.4

    • Fixed the large gap below the palette search field.
    • Improved the palette search results layout.
    • Corrected the package size information across the website.
  • v0.1.3

    • Updated the documentation with clearer and more accurate information.
    • Updated the images to improve visual quality and consistency.
  • v0.1.2

    • Replaced “colour” with “color”.
    • Fixed small UI glitches and styling inconsistencies.
    • Improved overall stability and user experience.
  • v0.1.1

    • Consistent spelling across the UI and docs.
    • Installing from a git URL now builds correctly.
  • v0.1.0

    • Five ways to pick: wheel, sliders, palettes, pencils, image.
    • Keeps your exact color. No lost hue.
    • Works as a form input. Keyboard accessible.
    • No dependencies. Typed. ESM and CommonJS.

Canary 版本

预发布版本以 next 标签发布,没有主动选择的人永远不会装到它们。要安装的话,请按名称指定:

npm install chroma-panel@next

这些版本在上面的时间线中带有 Pre-release 标记,而且永远不会被标为 Latest。请把它们当作预览版:canary 版本中的 API 在进入稳定版之前仍可能变化。

版本规则

本包遵循语义化版本。以下任何一项出现破坏性变更,都会发布主版本:

API 参考中没有列出的内部类名不属于公开接口,可能在补丁版本中改动。

稳定版本

chroma-panel 于 2026 年 9 月 21 日发布 1.0。从现在起,有文档的 API 都遵循上面所说的主版本、次版本和补丁版本约定。如果你想获得修复和新功能,又不想自动引入破坏性变更,请锁定主版本范围。

npm install chroma-panel@^1.0.0

升级

npm install chroma-panel@latest

完整的发布说明

上面的时间线只列出每个版本的重点。完整的发布说明,包括每一次提交和每一位贡献者,都在 GitHub 上。