Headless UI

Headless UI
难度:
前端框架
Headless UI 效果预览

效果预览

设计规范

由官方品牌资料与该风格提示词推导的关键 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

Headless UI 由 Tailwind Labs 出品,是一套完全无样式但可访问性拉满的组件:Menu、Listbox、Combobox、Switch 等把行为与过渡动画打包好,外观完全交给 Tailwind;天蓝(#38BDF8)是官方示例里的一抹亮色,进入/离开过渡与 data-state 样式由你掌控,控件以 rounded-md 与 14-16px Inter 呈现。适合自绘皮肤又不想重造交互的 Tailwind 项目。

Headless UI前端框架

提示词模板

基础模板
Design a Headless UI-inspired interface. - Unstyled accessible components from Tailwind Labs: Menu, Listbox, Combobox, Switch; - Sky #38BDF8 accent over a neutral gray scale; - Smooth enter/leave transitions and data-state styling; - Inter with 14-16px sizes, rounded-md controls; - Pairs natively with Tailwind utility styling. Colors: #38BDF8, #0F172A, #F8FAFC, #E2E8F0 with #38BDF8 accent. Typography: Inter.

变体提示词

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

使用示例

Headless UI 设置面板

Web 端
Build a settings panel with Headless UI components: switches, listboxes, and transition effects styled with Tailwind and #38BDF8 accents.

Headless UI 营销页面

落地页
Create a marketing page with Headless UI design language: dropdown navigation, modal dialogs, and smooth enter/leave animations.

✅ 适合场景

  • Tailwind CSS
  • 无障碍组件
  • React 与 Vue

❌ 不适合场景

  • 需要预置样式的快速开发
  • 复杂数据表格场景

DESIGN.md 文件

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

下载