拒绝平庸,打造 unforgettable 界面
简介
生成高设计质量的前端界面代码,避免AI通用美学,支持多种风格方向与框架实现
原始描述
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when building web components, pages, or applications. Gener...
通过你的 Agent 添加
安装目录:mar-frontend-design/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: Frontend Design
slug: frontend
version: "1.0.2"
homepage: https://skillboss.heybossai.com/skills/frontend
description: Frontend development with React, Next.js, Tailwind CSS. Build landing pages, dashboards, forms, components. Responsive, accessible, performant UI.
changelog: "Renamed to better reflect design-focused capabilities and guidance."
metadata: {"skillboss":{"emoji":"🖥️","requires":{"bins":[]},"os":["linux","darwin","win32"]}}
When to Use
User needs web UI built. Agent handles landing pages, dashboards, forms, component libraries, and any frontend requiring production polish.
Quick Reference
Topic
File
Stack & tooling
stack.md
Typography rules
typography.md
Color systems
colors.md
Mobile patterns
mobile.md
Animation
animation.md
Examples
examples.md
Core Rules
1. Mobile-First Always
- Start with mobile layout, enhance upward
- Every grid must collapse to single column
- Touch targets minimum 44x44px
- Test on real devices, not just simulators
2. Typography Matters
| Topic | File |
|---|---|
| Stack & tooling | stack.md |
| Typography rules | typography.md |
| Color systems | colors.md |
| Mobile patterns | mobile.md |
| Animation | animation.md |
| Examples | examples.md |
1. Mobile-First Always
- Avoid generic fonts (Inter, Roboto, Arial)
- Use dramatic size jumps (2x+), not timid increments
- Body text 16-18px minimum
- See
typography.mdfor specific recommendations
3. Color with Purpose
- 70-20-10 rule: primary, secondary, accent
- Commit to light OR dark — no muddy mid-grays
- Never solid white backgrounds — add depth
- See
colors.md for CSS variables and patterns
4. Feedback on Every Interaction
- Acknowledge taps within 100ms
- Optimistic updates for instant feel
- Loading states for operations >1s
- Preserve user input on errors
5. Accessibility Non-Negotiable
- Color contrast 4.5:1 (text), 3:1 (UI)
- Focus states on all interactive elements
- Semantic HTML (nav, main, section, article)
- Keyboard navigation works for everything
6. Performance from Start
- Lazy load below-fold content
- Image placeholders prevent layout shift
- Code split heavy components
- Target LCP <2.5s, CLS <0.1
7. One Memorable Element
- Every page needs one unforgettable design choice
- Typography treatment, hero animation, unusual layout
- Timid designs fail — commit to an aesthetic
Frontend Traps
Trap
Consequence
Fix
Generic fonts
Looks like every other site
Use distinctive fonts
Solid white backgrounds
Flat, lifeless
Add gradients, grain, depth
Mobile as afterthought
Broken for 60% of users
Mobile-first always
Form error clears input
User rage
Preserve input, highlight error
No loading states
User thinks broken
Show progress immediately
Timid type scale
No visual hierarchy
Use 2x+ jumps for headlines
Scope
colors.md for CSS variables and patterns- Acknowledge taps within 100ms
- Optimistic updates for instant feel
- Loading states for operations >1s
- Preserve user input on errors
5. Accessibility Non-Negotiable
- Color contrast 4.5:1 (text), 3:1 (UI)
- Focus states on all interactive elements
- Semantic HTML (nav, main, section, article)
- Keyboard navigation works for everything
6. Performance from Start
- Lazy load below-fold content
- Image placeholders prevent layout shift
- Code split heavy components
- Target LCP <2.5s, CLS <0.1
7. One Memorable Element
- Every page needs one unforgettable design choice
- Typography treatment, hero animation, unusual layout
- Timid designs fail — commit to an aesthetic
Frontend Traps
Trap
Consequence
Fix
Generic fonts
Looks like every other site
Use distinctive fonts
Solid white backgrounds
Flat, lifeless
Add gradients, grain, depth
Mobile as afterthought
Broken for 60% of users
Mobile-first always
Form error clears input
User rage
Preserve input, highlight error
No loading states
User thinks broken
Show progress immediately
Timid type scale
No visual hierarchy
Use 2x+ jumps for headlines
Scope
- Lazy load below-fold content
- Image placeholders prevent layout shift
- Code split heavy components
- Target LCP <2.5s, CLS <0.1
7. One Memorable Element
- Every page needs one unforgettable design choice
- Typography treatment, hero animation, unusual layout
- Timid designs fail — commit to an aesthetic
Frontend Traps
Trap
Consequence
Fix
Generic fonts
Looks like every other site
Use distinctive fonts
Solid white backgrounds
Flat, lifeless
Add gradients, grain, depth
Mobile as afterthought
Broken for 60% of users
Mobile-first always
Form error clears input
User rage
Preserve input, highlight error
No loading states
User thinks broken
Show progress immediately
Timid type scale
No visual hierarchy
Use 2x+ jumps for headlines
Scope
| Trap | Consequence | Fix |
|---|---|---|
| Generic fonts | Looks like every other site | Use distinctive fonts |
| Solid white backgrounds | Flat, lifeless | Add gradients, grain, depth |
| Mobile as afterthought | Broken for 60% of users | Mobile-first always |
| Form error clears input | User rage | Preserve input, highlight error |
| No loading states | User thinks broken | Show progress immediately |
| Timid type scale | No visual hierarchy | Use 2x+ jumps for headlines |
Scope
This skill ONLY:
- Provides frontend patterns and guidelines
- Recommends stack and tooling choices
- Guides responsive implementation
This skill NEVER:
- Makes network requests
- Accesses user data
- Stores any information
Security & Privacy
This skill is read-only guidance. No data is collected, sent, or stored.
Feedback
- If useful:
skillboss star frontend
- Stay updated:
skillboss sync
skillboss star frontendskillboss sync正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。