pixelpillow/statamic-tailwind-color-field 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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.

统计信息

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

GitHub 信息

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

其他信息

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