carbon/tailwindcolors

Neos CMS 的一个插件,提供了一个 tailwindcss 颜色编辑器

安装次数: 1,059

依赖关系: 1

建议者: 0

安全: 0

星标: 2

关注者: 2

分支: 0

开放问题: 0

语言:TypeScript

类型:neos-carbon

0.1.6 2024-07-24 13:43 UTC

This package is auto-updated.

Last update: 2024-09-24 14:01:21 UTC


README

Latest stable version Total downloads License GitHub forks GitHub stars GitHub watchers

简介

本包提供用于 Neos CMS 的 TailwindCSS 颜色编辑器,可用于自定义颜色。

example

安装

在您的站点包中运行以下命令

composer require --no-update carbon/tailwindcolors

然后在您的项目目录中运行 composer update

使用方法

添加一个字符串类型的属性,并按照此示例配置编辑器

Foo.Bar:Content.Text:
  properties:
    options:
        preset: 'Carbon.TailwindColors.colors'
      ui:
        label: Color
        inspector:
          editorOptions:
            disabled: false
            # If set, this color gets displayed if no value is set
            placeholder: gold
            # Hides the reset button if set to false
            allowEmpty: true
            # This can be either color or grayscale. This reduces the list to only the color ones or only the gray colors
            scheme: color
            # You can disable certain strengths
            disableStrength: [50, 100]
            # If true, the picker is collapsed
            collapsed: true

贡献

欢迎贡献!

请创建详细的 issue 和 PR。