跳到正文
cccskills
免费在 GitHub 公开

daisyui-usage

MANDATORY usage rules for daisyUI 5

中文简介正在准备中。当前显示原文说明。

Tenon-Net/TenonAdmin星标 39(GitHub 39 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

daisyUI 5 usage rules

  1. We can give styles to a HTML element by adding daisyUI class names to it. By adding a component class name, part class names (if there's any available for that component), and modifier class names (if there's any available for that component)
  2. Components can be customized using Tailwind CSS utility classes if the customization is not possible using the existing daisyUI classes. For example btn px-10 sets a custom horizontal padding to a btn
  3. If customization of daisyUI styles using Tailwind CSS utility classes didn't work because of CSS specificity issues, you can use the ! at the end of the Tailwind CSS utility class to override the existing styles. For example btn bg-red-500! sets a custom background color to a btn forcefully. This is a last resort solution and should be used sparingly
  4. If a specific component or something similar to it doesn't exist in daisyUI, you can create your own component using Tailwind CSS utility
  5. when using Tailwind CSS flex and grid for layout, it should be responsive using Tailwind CSS responsive utility prefixes.
  6. Only allowed class names are existing daisyUI class names or Tailwind CSS utility classes.
  7. Ideally, you won't need to write any custom CSS. Using daisyUI class names or Tailwind CSS utility classes is preferred.
  8. Suggested - if you need placeholder images, use https://picsum.photos/200/300 with the size you want
  9. Suggested - when designing, don't add a custom font unless it's necessary
  10. Don't add bg-base-100 text-base-content to body unless it's necessary
  11. For design decisions, use Refactoring UI book best practices
  12. Always use the default variant of daisyUI components unless the user asked for a specific variant or color. For example when you need a button, do not use btn btn-primary, prefer btn, unless the user asked for a specific variant.

daisyUI 5 class names are one of the following categories. These type names are only for reference and are not used in the actual code

  • component: the required component class
  • part: a child part of a component
  • style: sets a specific style to component or part
  • behavior: changes the behavior of component or part
  • color: sets a specific color to component or part
  • size: sets a specific size to component or part
  • placement: sets a specific placement to component or part
  • direction: sets a specific direction to component or part
  • modifier: modifies the component or part in a specific way
  • variant: prefixes for utility classes that conditionally apply styles. syntax is variant:utility-class

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

[OMX] Run an anti-slop cleanup/refactor/deslop workflow

中文简介正在准备中。当前显示原文说明。

Tenon-Net/TenonAdmin392026年10月23日 更新

analyze

免费

[OMX] 只读调查跨文件的行为、原因或架构问题,提供源码证据与不确定性。单文件查找无需此流程。

中文简介正在准备中。当前显示原文说明。

Tenon-Net/TenonAdmin392026年10月23日 更新

ask

免费

[OMX] Ask a local external advisor CLI (Claude or Gemini) and capture a reusable artifact

中文简介正在准备中。当前显示原文说明。

Tenon-Net/TenonAdmin392026年10月23日 更新

autopilot

免费

[OMX] Supervise deep interview, consensus planning, and durable goal execution for explicit hands-off delivery.

中文简介正在准备中。当前显示原文说明。

Tenon-Net/TenonAdmin392026年10月23日 更新

[OMX] Stateful validator-gated research loop with native-hook persistence

中文简介正在准备中。当前显示原文说明。

Tenon-Net/TenonAdmin392026年10月23日 更新

[OMX] Bounded best-practice research wrapper using official/upstream evidence first

中文简介正在准备中。当前显示原文说明。

Tenon-Net/TenonAdmin392026年10月23日 更新

查看 Tenon-Net 的全部技能

报告此技能的问题