定制 pixelpillow/statamic-tailwind-color-field 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pixelpillow/statamic-tailwind-color-field

最新稳定版本:v1.0.0

Composer 安装命令:

composer require pixelpillow/statamic-tailwind-color-field

包简介

This Statamic field type lets you choose Tailwind color names for use in the frontend.

README 文档

README

Tailwind color field is a Statamic addon that lets you define your Tailwind colors and use them in your blueprints.

Field in action: Scherm­afbeelding 2024-01-18 om 12 04 47

Field settings: CleanShot 2024-01-18 at 12 05 57@2x

How to Install

Add this addon by running the following command in your terminal:

composer require pixelpillow/statamic-tailwind-color-field

How to Use

Field Configuration

You can add the fieldtype to your blueprints like you would any other fieldtype that is already part of Statamic. For configuration, you simply add the Tailwind color fieldtype to your blueprint's fieldset. The fieldtype has the following configuration options:

  • Tailwind Colors: (required): A list of all the colors you want to use in your blueprint. You can add as many as you want. The fieldtype will automatically add a color picker for each color you add here. Use the key for the color name and the value for the hex code. Eg. for "bg-orange-500" you use "orange" => "#ff0000"
  • Default Value: Set a default value for the field eg. "orange"

... and that's it! You can now use the fieldtype in your blueprints.

统计信息

  • 总下载量: 182
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: Vue

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固