frontend-design

vudovn/antigravity-kit · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/vudovn/antigravity-kit --skill frontend-design
0 commentsdiscussion
summary

Philosophy: Every pixel has purpose. Restraint is luxury. User psychology drives decisions.

  • Core Principle: THINK, don't memorize. ASK, don't assume.
skill.md

Frontend Design System

Philosophy: Every pixel has purpose. Restraint is luxury. User psychology drives decisions. Core Principle: THINK, don't memorize. ASK, don't assume.


🎯 Selective Reading Rule (MANDATORY)

Read REQUIRED files always, OPTIONAL only when needed:

File Status When to Read
ux-psychology.md 🔴 REQUIRED Always read first!
color-system.md ⚪ Optional Color/palette decisions
typography-system.md ⚪ Optional Font selection/pairing
visual-effects.md ⚪ Optional Glassmorphism, shadows, gradients
animation-guide.md ⚪ Optional Animation needed
motion-graphics.md ⚪ Optional Lottie, GSAP, 3D
decision-trees.md ⚪ Optional Context templates

🔴 ux-psychology.md = ALWAYS READ. Others = only if relevant.


🔧 Runtime Scripts

Execute these for audits (don't read, just run):

Script Purpose Usage
scripts/ux_audit.py UX Psychology & Accessibility Audit python scripts/ux_audit.py <project_path>

⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)

STOP! If the user's request is open-ended, DO NOT default to your favorites.

When User Prompt is Vague, ASK:

Color not specified? Ask:

"What color palette do you prefer? (blue/green/orange/neutral/other?)"

Style not specified? Ask:

"What style are you going for? (minimal/bold/retro/futuristic/organic?)"

Layout not specified? Ask:

"Do you have a layout preference? (single column/grid/asymmetric/full-width?)"

⛔ DEFAULT TENDENCIES TO AVOID (ANTI-SAFE HARBOR):

AI Default Tendency Why It's Bad Think Instead
Bento Grids (Modern Cliché) Used in every AI design Why does this content NEED a grid?
Hero Split (Left/Right) Predictable & Boring How about Massive Typography or Vertical Narrative?
Mesh/Aurora Gradients The "new" lazy background What's a radical color pairing?
Glassmorphism AI's idea of "premium" How about solid, high-contrast flat?
Deep Cyan / Fintech Blue Safe harbor from purple ban Why not Red, Black, or Neon Green?
"Orchestrate / Empower" AI-generated copywriting How would a human say this?
Dark background + neon glow Overused, "AI look" What does the BRAND actually need?
Rounded everything Generic/Safe Where can I use sharp, brutalist edges?

🔴 "Every 'safe' structure you choose brings you one step closer to a generic template. TAKE RISKS."


1. Constraint Analysis (ALWAYS FIRST)

Before any design work, ANSWER THESE or ASK USER:

Constraint Question Why It Matters
Timeline How much time? Determines complexity
Content Ready or placeholder? Affects layout flexibility
Brand Existing guidelines? May dictate colors/fonts
Tech What stack? Affects capabilities
Audience Who exactly? Drives all visual decisions

Audience → Design Approach

Audience Think About
Gen Z Bold, fast, mobile-first, authentic
Millennials Clean, minimal, value-driven
Gen X Familiar, trustworthy, clear
Boomers Readable, high contrast, simple
B2B Professional, data-focused, trust
Luxury Restrained elegance, whitespace

2. UX Psychology Principles

Core Laws (Internalize These)

Law Principle Application
Hick's Law More choices = slower decisions Limit options, use progressive disclosure
Fitts' Law Bigger + closer = easier to click Size CTAs appropriately
Miller's Law ~7 items in working memory Chunk content into groups
Von Restorff Different = memorable Make CTAs visually distinct
Serial Position First/last remembered most Key info at start/end

Emotional Design Levels

VISCERAL (instant)  → First impression: colors, imagery, overall feel
BEHAVIORAL (use)    → Using it: speed, feedback, efficiency
REFLECTIVE (memory) → After: "I like what this says about me"

Trust Building

  • Security indicators on sensitive actions
  • Social proof where relevant
  • Clear contact/support access
  • Consistent, professional design
  • Transparent policies

3. Layout Principles

Golden Ratio (φ = 1.618)

Use for proportional harmony:
├── Content : Sidebar = roughly 62% : 38%
├── Each heading size = previous × 1.618 (for dramatic scale)
├── Spacing can follow: sm → md → lg (each × 1.618)

8-Point Grid Concept

All spacing and sizing in multiples of 8:
├── Tight: 4px (half-step for micro)
├── Small: 8px
├── Medium: 16px
├── Large: 24px, 32px
├── XL: 48px, 64px, 80px
└── Adjust based on content density

Key Sizing Principles

Element Consideration
Touch targets Minimum comfortable tap size
Buttons Height based on importance hierarchy
Inputs Match button height for alignment
Cards Consistent padding, breathable
Reading width 45-75 characters optimal

4. Color Principles

60-30-10 Rule

60% → Primary/Background (calm, neutral base)
30% → Secondary (supporting areas)
10% → Accent (CTAs, highlights, attention)

Color Psychology (For Decision Making)

If You Need... Consider Hues Avoid
Trust, calm Blue family Aggressive reds
Growth, nature Green family Industrial grays
Energy, urgency Orange, red Passive blues
Luxury, creativity Deep Teal, Gold, Emerald Cheap-feeling brights
Clean, minimal Neutrals Overwhelming color

Selection Process

  1. What's the industry? (narrows options)
  2. What's the emotion? (picks primary)
  3. Light or dark mode? (sets foundation)
  4. ASK USER if not specified

For detailed color theory: color-system.md


5. Typography Principles

Scale Selection

Content Type Scale Ratio Feel
Dense UI 1.125-1.2 Compact, efficient
General web 1.25 Balanced (most common)
Editorial 1.333 Readable, spacious
Hero/display 1.5-1.618 Dramatic impact

Pairing Concept

Contrast + Harmony:
├── DIFFERENT enough for hierarchy
├── SIMILAR enough for cohesion
└── Usually: display + neutral, or serif + sans

Readability Rules

  • Line length: 45-75 characters optimal
  • Line height: 1.4-1.6 for body text
  • Contrast: Check WCAG requirements
  • Size: 16px+ for body on web

For detailed typography: typography-system.md


6. Visual Effects Principles

Glassmorphism (When Appropriate)

Key properties:
├── Semi-transparent background
├── Backdrop blur
├── Subtle border for definition
└── ⚠️ **WARNING:** Standard blue/white glassmorphism is a modern cliché. Use it radically or not at all.

Shadow Hierarchy

Elevation concept:
├── Higher elements = larger shadows
├── Y-offset > X-offset (light from above)
├── Multiple layers = more realistic
└── Dark mode: may need glow instead

Gradient Usage

Harmonious gradients:
├── Adjacent colors on wheel (analogous)
├── OR same hue, different lightness
├── Avoid harsh complementary pairs
├── 🚫 **NO Mesh/Aurora Gradients** (floating blobs)
└── VARY from project to project radically

For complete effects guide: visual-effects.md


7. Animation Principles

Timing Concept

Duration based on:
├── Distance (further = longer)
├── Size (larger = slower)
├── Importance (critical = clear)
└── Context (urgent = fast, luxury = slow)

Easing Selection

Action Easing Why
Entering Ease-out Decelerate, settle in
Leaving Ease-in Accelerate, exit
Emphasis Ease-in-out Smooth, deliberate
Playful Bounce Fun, energetic

Performance

  • Animate only transform and opacity
  • Respect reduced-motion preference
  • Test on low-end devices

For animation patterns: animation-guide.md, for advanced: motion-graphics.md


8. "Wow Factor" Checklist

Premium Indicators

  • Generous whitespace (luxury = breathing room)
  • Subtle depth and dimension
  • Smooth, purposeful animations
  • Attention to detail (alignment, consistency)
  • Cohesive visual rhythm
  • Custom elements (not all defaults)

Trust Builders

  • Security cues where appropriate
  • Social proof / testimonials
  • Clear value proposition
  • Professional imagery
  • Consistent design language

Emotional Triggers

  • Hero that evokes intended emotion
  • Human elements (faces, stories)
  • Progress/achievement indicators
  • Moments of delight

9. Anti-Patterns (What NOT to Do)

❌ Lazy Design Indicators

  • Default system fonts without consideration
  • Stock imagery that doesn't match
  • Inconsistent spacing
  • Too many competing colors
  • Walls of text without hierarchy
  • Inaccessible contrast

❌ AI Tendency Patterns (AVOID!)

  • Same colors every project
  • Dark + neon as default
  • Purple/violet everything (PURPLE BAN ✅)
  • Bento grids for simple landing pages
  • Mesh Gradients & Glow Effects
  • Same layout structure / Vercel clone
  • Not asking user preferences

❌ Dark Patterns (Unethical)

  • Hidden costs
  • Fake urgency
  • Forced actions
  • Deceptive UI
  • Confirmshaming

10. Decision Process Summary

For EVERY design task:

1. CONSTRAINTS
   └── What's the timeline, brand, tech, audience?
   └── If unclear → ASK

2. CONTENT
   └── What content exists?
   └── What's the hierarchy?

3. STYLE DIRECTION
   └── What's appropriate for context?
   └── If unclear → ASK (don't default!)

4. EXECUTION
   └── Apply principles above
   └── Check against anti-patterns

5. REVIEW
   └── "Does this serve the user?"
   └── "Is this different from my defaults?"
   └── "Would I be proud of this?"

Reference Files

For deeper guidance on specific areas:


Related Skills

Skill When to Use
frontend-design (this) Before coding - Learn design principles (color, typography, UX psychology)
web-design-guidelines After coding - Audit for accessibility, performance, and best practices

Post-Design Workflow

After implementing your design, run the audit:

1. DESIGN   → Read frontend-design principles ← YOU ARE HERE
2. CODE     → Implement the design
3. AUDIT    → Run web-design-guidelines review
4. FIX      → Address findings from audit

Next Step: After coding, use web-design-guidelines skill to audit your implementation for accessibility, focus states, animations, and performance issues.


Remember: Design is THINKING, not copying. Every project deserves fresh consideration based on its unique context and users. Avoid the Modern SaaS Safe Harbor!


5. Next.js 16+ Modern Form Patterns

[!IMPORTANT] For Next.js 16+ projects, use the native next/form component instead of standard HTML <form> for all GET-based search/filter operations.

The <Form> Component Advantage

  • Automatic Client Navigation: Performs client-side transitions on submit.
  • Progressive Enhancement: Works even without JavaScript.
  • URL Sync: Automatically encodes input values into search params.

Implementation Example (Search Bar)

import Form from 'next/form'

export default function SearchBar() {
  return (
    <Form action=
how to use frontend-design

How to use frontend-design on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add frontend-design
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/vudovn/antigravity-kit --skill frontend-design

The skills CLI fetches frontend-design from GitHub repository vudovn/antigravity-kit and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/frontend-design

Reload or restart Cursor to activate frontend-design. Access the skill through slash commands (e.g., /frontend-design) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.834 reviews
  • Ganesh Mohane· Dec 24, 2024

    We added frontend-design from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Olivia Menon· Dec 20, 2024

    frontend-design is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Daniel Torres· Dec 8, 2024

    Solid pick for teams standardizing on skills: frontend-design is focused, and the summary matches what you get after install.

  • Carlos Huang· Nov 27, 2024

    I recommend frontend-design for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Sakshi Patil· Nov 15, 2024

    Useful defaults in frontend-design — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Liam Yang· Nov 11, 2024

    Keeps context tight: frontend-design is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Yash Thakker· Nov 7, 2024

    frontend-design fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Dhruvi Jain· Oct 26, 2024

    frontend-design has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Carlos Zhang· Oct 18, 2024

    Keeps context tight: frontend-design is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Chaitanya Patil· Oct 6, 2024

    Registry listing for frontend-design matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 34

1 / 4