krakero/tailwind-fieldtype 问题修复 & 功能扩展

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

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

krakero/tailwind-fieldtype

最新稳定版本:2.0.3

Composer 安装命令:

composer require krakero/tailwind-fieldtype

包简介

README 文档

README

Tailwind Fieldtype is a Statamic addon that provides a Tailwind color picker.

NOTE: This fieldtype does not ensure the CSS classes are available in your frontend.

Features

  • Choose "advanced" mode for all shades
  • Choose "simple" mode for just a single color selection
  • Add a prefix like bg or text, so the class is ready to go (e.g. bg-red-500)

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require krakero/tailwind-fieldtype

How to Use

Once you install the addon you will need to run krakero:tailwind-config. This command will look for the tailwind.config.js file located in your project root and generate a tailwind.config.php file for use by all Tailwind Picker fields.

NOTES:

  • If you make changes to your config file you will need to run this command again.
  • The tailwind.config.php file should be committed with your code.
  • This package needs to run npm install in its directory to be able to convert the config file

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-07-26