DaisyUI

DaisyUI
难度:
前端框架
DaisyUI 效果预览

效果预览

设计规范

由官方品牌资料与该风格提示词推导的关键 token,可复制或配合下方 DESIGN.md 使用。

颜色

  • primary人工核准

    主操作与高亮

  • on-primary推导

    主色上的文字

  • secondary推导

    标签、徽章与次级强调

  • on-secondary推导

    辅色上的文字

  • neutral提示词

    页面底色

  • on-neutral推导

    底色上的文字

  • surface推导

    卡片、面板与浮层

  • on-surface推导

    表面上的文字

  • border推导

    边框与分割线

圆角与形状

推导
sm · 4px
md · 8px
lg · 12px
full

间距

推导
  • sm8px
  • md12px
  • lg24px

阴影与层级

提示词

层级由柔和、低对比度的阴影表达。

字体

推导
  • Ag

    标题 32px · 粗体

    Inter

  • Ag

    正文 16px · 常规

    Inter

  • Ag

    标签 13px · 中等

    Inter

daisyUI 是在 Tailwind 之上补一层语义化组件的主题系统:用 btn、card、navbar、drawer 这类类名完成常用结构,30+ 内置主题开箱切换,默认主色紫(#570DF8)、辅色品红与青绿;0.5rem 圆角、柔和阴影与粉彩表面,悬停状态清晰友好,几乎不用写自定义 CSS。适合想保留 Tailwind 自由度又要组件语义的团队。

DaisyUI前端框架

提示词模板

基础模板
Design a daisyUI-inspired interface. - Semantic component classes on top of Tailwind: btn, card, navbar, drawer; - Theme system with 30+ built-in themes; light default primary #570DF8; - Rounded corners (0.5rem), soft shadows, pastel surfaces; - Friendly, approachable components with clear hover states; - Zero custom CSS — pure utility classes. Colors: #570DF8, #F000B8, #37CDBE, #FFFFFF with #570DF8 accent. Typography: system-ui.

变体提示词

📱 移动端
Design a mobile app with DaisyUI aesthetics. Use DaisyUI color identity with #570DF8 accents. Clean, touch-friendly, native feel.
💻 Web端
Design a web application with DaisyUI style. Use DaisyUI color identity with #570DF8 accents. Professional, responsive layout.
📊 仪表板
Design a dashboard with DaisyUI design language. Use DaisyUI color identity with #570DF8 accents. Data-rich, organized, clear hierarchy.
📄 落地页
Design a landing page with DaisyUI visual identity. Use DaisyUI color identity with #570DF8 accents. Compelling, conversion-focused.

使用示例

DaisyUI 落地页

落地页
Build a landing page with daisyUI style: hero section, feature cards, and navbar using semantic Tailwind classes and #570DF8 accent.

DaisyUI 管理面板

仪表板
Create an admin panel with daisyUI design language: drawer navigation, stat cards, and theme switcher with #570DF8 color system.

✅ 适合场景

  • Tailwind CSS
  • 快速原型
  • 主题切换

❌ 不适合场景

  • 需要原生 CSS 组件库的团队
  • 深度自定义组件行为的项目

DESIGN.md 文件

符合 design.md 开放格式的设计系统描述,可复制或下载后交给 AI 编程工具使用。

下载