跳到主内容
智客 ZICQ

技能库 智客分类:设计创意 frontend-design OpenClaw

Frontend Design

创建美丽现代UI的专家前端设计指南. 在构建起落架页面,仪表板,或任何用户界面时使用.

1149 安装量 · 194 星标

官方网址:ClawHub

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

创建美丽现代UI的专家前端设计指南

何时用

建筑物着陆页、仪表板或任何用户界面

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Frontend Design Skill、Design Workflow、1. Layout Design、2. Theme Guidelines、3. Theme Patterns、4. Animation Guidelines。 其中含规范建议的小节:分步指令。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Expert frontend design guidelines for creating beautiful, modern UIs. Use when building landing pages, dashboards, or any user interface.

Frontend Design SkillDesign Workflow1. Layout Design2. Theme Guidelines3. Theme Patterns4. Animation Guidelines5. Implementation Rules6. Responsive Design7. Accessibility8. Component Design TipsQuick Reference

SKILL.md 与 Agent 调用

官方规范 ↗
name
frontend-design
description
Expert frontend design guidelines for creating beautiful, modern UIs. Use when building landing pages, dashboards, or any user interface.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「frontend-design」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-243309b6776eff4d-%E5%89%8D%E7%AB%AF%E8%AE%BE%E8%AE%A1.html
请存为 .cursor/skills/frontend-design/SKILL.md 或 .claude/skills/frontend-design/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。

ClawHub ↗

阅读排版
--- name: frontend-design description: Expert frontend design guidelines for creating beautiful, modern UIs. Use when building landing pages, dashboards, or any user interface. metadata: {"clawdbot":{"emoji":"🎨"}} --- # Frontend Design Skill Use this skill when creating UI components, landing pages, dashboards, or any frontend design work. ## Design Workflow Follow this structured approach for UI design: 1. **Layout Design** — Think through component structure, create ASCII wireframes 2. **Theme Design** — Define colors, fonts, spacing, shadows 3. **Animation Design** — Plan micro-interactions and transitions 4. **Implementation** — Generate the actual code ### 1. Layout Design Before coding, sketch the layout in ASCII format: ``` ┌─────────────────────────────────────┐ │ HEADER / NAV BAR │ ├─────────────────────────────────────┤ │ │ │ HERO SECTION │ │ (Title + CTA) │ │ │ ├─────────────────────────────────────┤ │ FEATURE │ FEATURE │ FEATURE │ │ CARD │ CARD │ CARD │ ├─────────────────────────────────────┤ │ FOOTER │ └─────────────────────────────────────┘ ``` ### 2. Theme Guidelines **Color Rules:** - NEVER use generic bootstrap-style blue (#007bff) — it looks dated - Prefer oklch() for modern color definitions - Use semantic color variables (--primary, --secondary, --muted, etc.) - Consider both light and dark mode from the start **Font Selection (Google Fonts):** ``` Sans-serif: Inter, Roboto, Poppins, Montserrat, Outfit, Plus Jakarta Sans, DM Sans, Space Grotesk Monospace: JetBrains Mono, Fira Code, Source Code Pro, IBM Plex Mono, Space Mono, Geist Mono Serif: Merriweather, Playfair Display, Lora, Source Serif Pro, Libre Baskerville Display: Architects Daughter, Oxanium ``` **Spacing & Shadows:** - Use consistent spacing scale (0.25rem base) - Shadows should be subtle — avoid heavy drop shadows - Consider using oklch() for shadow colors too ### 3. Theme Patterns **Modern Dark Mode (Vercel/Linear style):** ```css :root { --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); --primary: oklch(0.205 0 0); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.970 0 0); --muted: oklch(0.970 0 0); --muted-foreground: oklch(0.556 0 0); --border: oklch(0.922 0 0); --radius: 0.625rem; --font-sans: Inter, system-ui, sans-serif; } ``` **Neo-Brutalism (90s web revival):** ```css :root { --background: oklch(1 0 0); --foreground: oklch(0 0 0); --primary: oklch(0.649 0.237 26.97); --secondary: oklch(0.968 0.211 109.77); --accent: oklch(0.564 0.241 260.82); --border: oklch(0 0 0); --radius: 0px; --shadow: 4px 4px 0px 0px hsl(0 0% 0%); --font-sans: DM Sans, sans-serif; --font-mono: Space Mono, monospace; } ``` **Glassmorphism:** ```css .glass { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 1rem; } ``` ### 4. Animation Guidelines **Micro-syntax for planning:** ``` button: 150ms [S1→0.95→1] press hover: 200ms [Y0→-2, shadow↗] fadeIn: 400ms ease-out [Y+20→0, α0→1] slideIn: 350ms ease-out [X-100→0, α0→1] bounce: 600ms [S0.95→1.05→1] ``` **Common patterns:** - Entry animations: 300-500ms, ease-out - Hover states: 150-200ms - Button press: 100-150ms - Page transitions: 300-400ms ### 5. Implementation Rules **Tailwind CSS:** ```html ``` **Flowbite (component library):** ```html ``` **Icons (Lucide):** ```html ``` **Images:** - Use real placeholder services: Unsplash, placehold.co - Never make up image URLs - Example: `https://images.unsplash.com/photo-xxx?w=800&h=600` ### 6. Responsive Design Always design mobile-first and responsive: ```css /* Mobile first */ .container { padding: 1rem; } /* Tablet */ @media (min-width: 768px) { .container { padding: 2rem; } } /* Desktop */ @media (min-width: 1024px) { .container { max-width: 1200px; margin: 0 auto; } } ``` ### 7. Accessibility - Use semantic HTML (header, main, nav, section, article) - Include proper heading hierarchy (h1 → h2 → h3) - Add aria-labels to interactive elements - Ensure sufficient color contrast (4.5:1 minimum) - Support keyboard navigation ### 8. Component Design Tips **Cards:** - Subtle shadows, not heavy drop shadows - Consistent padding (p-4 to p-6) - Hover state: slight lift + shadow increase **Buttons:** - Clear visual hierarchy (primary, secondary, ghost) - Adequate touch targets (min 44x44px) - Loading and disabled states **Forms:** - Clear labels above inputs - Visible focus states - Inline validation feedback - Adequate spacing between fields **Navigation:** - Sticky header for long pages - Clear active state indication - Mobile-friendly hamburger menu --- ## Quick Reference | Element | Recommendation | |---------|---------------| | Primary font | Inter, Outfit, DM Sans | | Code font | JetBrains Mono, Fira Code | | Border radius | 0.5rem - 1rem (modern), 0 (brutalist) | | Shadow | Subtle, 1-2 layers max | | Spacing | 4px base unit (0.25rem) | | Animation | 150-400ms, ease-out | | Colors | oklch() for modern, avoid generic blue | --- *Based on SuperDesign patterns — https://superdesign.dev*

相关技能

设计创意

Automation Workflows

设计和实施自动化工作流程,以节省时间和规模化操作作为独家. 用于识别重复任务实现自动化,构建跨工具的工作流程,设置触发器和行动,或优化现有自动化. 包括自动化机会识别,工作流程设计,工具选择(Zapier,Make,n8n),测试,和维护. 触发"自动","自动","工作流程自动…

设计创意

Ui Ux Pro Max

UI/UX设计智能及建筑抛光接口实施指导. 当用户要求UI设计,UX流量,信息架构,视觉风格方向,设计系统/托盘,组件规格,副本/显微镜,可访问性,或生成/critique/refine前端UI(HTML/CSS/JS,React,Next.js,Vue,Svelte,Tailw…

设计创意

N8n Workflow Automation

设计和输出 n8n 工作流程 JSON 有强力触发器, idempotency, 错误处理, 记录, 重试, 以及 人入"一站"审查队列. 当您需要可审计的自动化时使用.

设计创意

Agentmail

API-第一电子邮件平台为AI代理设计. 创建和管理专用的电子邮件收件箱,在程序上发送和接收电子邮件,并以webhooks和实时事件处理基于电子邮件的工作流程. 需要设置代理邮件身份时使用,发送代理邮件,处理收到的电子邮件工作流程,或者用代理友好的基础设施来替换Gmail等传统电…