carbon / tailwindcolors
Neos CMS 的一个插件,提供了一个 tailwindcss 颜色编辑器
0.1.6
2024-07-24 13:43 UTC
Requires
- neos/neos-ui: ^7.3 || ^8.0
README
简介
本包提供用于 Neos CMS 的 TailwindCSS 颜色编辑器,可用于自定义颜色。
安装
在您的站点包中运行以下命令
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。