Agent skill
distinctive-frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Install this agent skill to your Project
npx add-skill https://github.com/refly-ai/skill-to-workflow/tree/main/skills-source/zijiebijiben/distinctive-frontend-design
SKILL.md
Distinctive Frontend Design
Overview
Guide Claude to create frontend interfaces with distinctive aesthetics and high design quality, moving beyond generic AI-generated designs. Apply specific design principles across typography, color, motion, and backgrounds to produce polished, creative outputs.
Core Design Principles
1. Typography
Primary Directive: Choose unique, interesting fonts that enhance aesthetics and avoid generic defaults.
Font Selection Guidelines:
- Avoid: Inter, Roboto, Arial, system fonts, Helvetica
- Prefer: Distinctive typefaces that match the project's character
- Consider: Display fonts for headlines, reader-friendly fonts for body text
- Pairing: Use high-contrast pairs (e.g., geometric sans + humanist serif)
Font Categories to Explore:
- Geometric sans-serif for modern, precise aesthetics
- Humanist serif for warmth and readability
- Monospace for technical or retro contexts
- Display fonts for bold statements
Implementation:
/* Example of distinctive typography */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&family=Crimson+Text:ital@0;1&display=swap');
:root {
--font-display: 'Space Grotesk', sans-serif;
--font-body: 'Crimson Text', serif;
}
2. Color & Theme
Primary Directive: Commit to a cohesive aesthetic with intentional color choices.
Color Strategy:
- Use CSS variables for consistency
- Employ dominant colors with sharp, strategic accents
- Avoid: Purple gradients on white, generic blue/gray schemes
- Draw inspiration from: IDE themes, cultural aesthetics, nature
Theme Development:
:root {
/* Define a cohesive palette */
--color-primary: #2D4A3E;
--color-accent: #E8B84B;
--color-background: #F8F6F1;
--color-surface: #FFFFFF;
--color-text: #1A1A1A;
--color-text-secondary: #5A5A5A;
}
Inspiration Sources:
- IDE themes: Nord, Dracula, Monokai, Solarized
- Cultural aesthetics: Solarpunk, Cyberpunk, Brutalism, Memphis
- Natural palettes: Desert, Ocean, Forest, Sunset
3. Motion & Animation
Primary Directive: Use animations for effects and micro-interactions, prioritizing CSS-only solutions.
Animation Guidelines:
- Focus on high-impact moments (page loads, state changes)
- Use staggered reveals for lists and grids
- Apply easing curves for natural movement
- Keep duration appropriate (150-300ms for micro-interactions)
Implementation Patterns:
/* Staggered reveal */
.item {
opacity: 0;
animation: fadeInUp 0.5s ease forwards;
}
.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Smooth state transitions */
.button {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
4. Backgrounds
Primary Directive: Create atmosphere and depth through layered effects rather than solid colors.
Background Techniques:
- Layered CSS gradients for depth
- Geometric patterns and shapes
- Contextual effects (mesh gradients, noise textures)
- Subtle animations on background elements
Implementation Examples:
/* Layered gradient background */
.hero {
background:
linear-gradient(135deg, rgba(45, 74, 62, 0.9) 0%, rgba(45, 74, 62, 0.7) 100%),
linear-gradient(45deg, #2D4A3E 25%, transparent 25%),
linear-gradient(-45deg, #2D4A3E 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #2D4A3E 75%),
linear-gradient(-45deg, transparent 75%, #2D4A3E 75%);
background-size: 100% 100%, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
background-position: 0 0, 0 0, 10px 0, 10px -10px, 0 10px;
}
/* Mesh gradient background */
.section {
background: radial-gradient(at 40% 20%, rgba(232, 184, 75, 0.3) 0px, transparent 50%),
radial-gradient(at 80% 80%, rgba(45, 74, 62, 0.2) 0px, transparent 50%);
}
Avoiding Generic Defaults
Explicitly Avoid These Elements:
Typography:
- Inter, Roboto, Arial, system-ui, sans-serif
- Single-weight font usage
- Lack of typographic hierarchy
Colors:
- Purple gradients on white backgrounds
- Generic blue/gray corporate schemes
- Flat, unsaturated color palettes
- Lack of color intention or theme
Layouts:
- Center-aligned everything without reason
- Predictable grid patterns without variation
- Cookie-cutter component arrangements
- Lack of whitespace strategy
Overall:
- Designs lacking context-specific character
- One-size-fits-all approaches
- Over-reliance on component libraries' default styling
Design Inspiration References
For theme-specific inspiration and detailed examples, see:
references/design-themes.md- Detailed theme examples (Solarpunk, Cyberpunk, Brutalist, etc.)references/design-patterns.md- Common patterns for different project types
Workflow
- Understand Context: Analyze the project's purpose and target audience
- Choose Theme Direction: Select or create a cohesive aesthetic approach
- Apply Typography: Select distinctive fonts that match the theme
- Define Color System: Create a cohesive palette using CSS variables
- Add Motion: Implement purposeful animations for key interactions
- Craft Backgrounds: Layer effects to create depth and atmosphere
- Verify Distinctiveness: Check that the design avoids generic defaults
Quality Checklist
Before finalizing any frontend design, verify:
- Typography uses distinctive, non-generic fonts
- Color scheme is cohesive and intentional
- CSS variables are defined for consistency
- Animations enhance key interactions
- Backgrounds create atmosphere (not just solid colors)
- Design has context-specific character
- Code is production-ready and polished
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-md-generator
交互式生成 GitHub Copilot agents.md 文件的工作流。当用户请求创建代理、构建自定义 Copilot 代理、生成 agents.md 或需要帮助配置 GitHub Copilot 自定义代理时使用。触发短语包括"创建代理"、"生成 agent.md"、"做一个文档代理"、"生成测试代理"等涉及 GitHub Copilot 代理配置的请求。
httpie-api-test
API 接口测试工作流,使用 HTTPie 作为核心工具。当用户需要测试 API 接口、执行接口调用、生成测试报告、管理接口依赖关系、或在项目中建立标准化的接口测试流程时使用此 skill。适用于 RESTful API 测试、接口联调、回归测试等场景。
sdd-development
Specification-Driven Development (SDD) methodology for building software where specifications are executable and drive code generation. Use when users want to: (1) Create feature specifications with /speckit.specify, (2) Generate implementation plans with /speckit.plan, (3) Create executable tasks with /speckit.tasks, (4) Follow test-first, library-first development, or (5) Implement constitutional architecture principles. Essential for structured AI-assisted development workflows.
notebooklm
Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.
github-actions-ssh-deploy
交互式配置 GitHub Actions 通过 SSH 密钥连接 VPS 的向导。当用户需要设置 GitHub Actions 部署到 VPS、配置 CI/CD SSH 连接、生成部署 workflow 时使用此 skill。通过问答方式收集必要信息后生成完整配置。
long-running-agent
Framework for building AI agents that work effectively across multiple context windows on complex, long-running tasks. Use when building agents for multi-hour/multi-day projects, implementing persistent coding workflows, creating systems that need state management across sessions, or when an agent needs to make incremental progress on large codebases. Provides initializer and coding agent patterns, progress tracking, feature management, and session handoff strategies.
Didn't find tool you were looking for?