Skip to content
frontend-aesthetic logo

Frontend Aesthetic

frontend-aesthetic

UI/UX visual design, styling, and aesthetic validation

SKILL.md

Full skill instructions

Frontend Aesthetic

Visual design guidance for beautiful, consistent, and accessible UIs.

Core Principles

1. Visual Hierarchy

  • Size, color, contrast guide the eye
  • Primary actions should be obvious
  • Group related elements visually

2. Spacing & Layout

  • Use consistent spacing scale (4px, 8px, 16px, 24px, 32px, 48px, 64px)
  • Whitespace is a design element, not empty space
  • Align elements to a grid

3. Typography

  • Limit to 2-3 font families max
  • Use font weight for hierarchy (not just size)
  • Line height: 1.4-1.6 for body, 1.2 for headings
  • Max line length: 60-80 characters

4. Color

  • Primary, secondary, accent colors
  • Semantic colors: success (green), warning (yellow), error (red), info (blue)
  • Ensure 4.5:1 contrast ratio for accessibility
  • Dark mode: don't just invert, redesign

5. Motion & Animation

  • Subtle, purposeful animations (200-300ms)
  • Ease-out for entrances, ease-in for exits
  • Reduce motion for accessibility preference

Component Patterns

Buttons

/​* Primary */
background: var(--primary);
color: white;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;

/​* Hover: slight brightness change */
/​* Active: scale(0.98) */
/​* Disabled: opacity 0.5, cursor not-allowed */

Cards

background: var(--surface);
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
/​* Hover: elevate shadow */

Forms

  • Labels above inputs (not placeholder-only)
  • Clear focus states (outline, not just color)
  • Error states: red border + icon + message
  • Success feedback on submission

Navigation

  • Current page indicator
  • Consistent iconography
  • Mobile: bottom nav or hamburger (not both)

Aesthetic Validation with Playwright MCP

Use the actual Playwright MCP tools to validate visual design:

Step 1: Navigate and Screenshot

mcp__playwright__browser_navigate(url: "http://localhost:3000")
mcp__playwright__browser_take_screenshot(fullPage: true, filename: "full-page.png")

Step 2: Check Spacing & Alignment

mcp__playwright__browser_evaluate(function: `
  // Check computed margins/​paddings
  const elements = document.querySelectorAll('*');
  const spacings = new Set();
  elements.forEach(el => {
    const style = getComputedStyle(el);
    ['margin', 'padding'].forEach(prop => {
      ['Top', 'Right', 'Bottom', 'Left'].forEach(dir => {
        const val = parseInt(style[prop + dir]);
        if (val > 0) spacings.add(val);
      });
    });
  });
  return [...spacings].sort((a,b) => a-b);
`)

Check: Does it follow 4px/​8px grid?

Step 3: Check Color Palette

mcp__playwright__browser_evaluate(function: `
  const colors = new Set();
  document.querySelectorAll('*').forEach(el => {
    const style = getComputedStyle(el);
    colors.add(style.color);
    colors.add(style.backgroundColor);
  });
  return [...colors].filter(c => c !== 'rgba(0, 0, 0, 0)');
`)

Check: Limited palette? Consistent use?

Step 4: Check Typography

mcp__playwright__browser_evaluate(function: `
  const fonts = new Set();
  document.querySelectorAll('*').forEach(el => {
    fonts.add(getComputedStyle(el).fontFamily);
  });
  return [...fonts];
`)

Check: Max 2-3 font families?

Step 5: Responsive Test

mcp__playwright__browser_resize(width: 375, height: 667)
mcp__playwright__browser_take_screenshot(filename: "mobile.png")
mcp__playwright__browser_resize(width: 1280, height: 800)
mcp__playwright__browser_take_screenshot(filename: "desktop.png")

Step 6: Check Console for Errors

mcp__playwright__browser_console_messages(level: "error")

Common Anti-Patterns

Don'tDo Instead
Rainbow of colorsLimited, intentional palette
Tiny click targetsMin 44x44px touch targets
Text on busy backgroundsOverlay or solid backgrounds
Inconsistent border-radiusPick one: 4px, 8px, or 12px
Auto-playing animationsUser-triggered or subtle loops
Placeholder-only labelsVisible labels always

Design System Integration

When working with existing design systems:

  • Tailwind: Use config theme values
  • Material UI: Follow MD3 guidelines
  • Chakra: Use theme tokens
  • Custom: Document tokens in CSS variables

Workflow

  1. Audit: Screenshot current state
  2. Identify: List aesthetic issues
  3. Prioritize: Fix high-impact items first
  4. Implement: Make CSS/​component changes
  5. Validate: Screenshot after, compare

Integration

  • playwright-automation: Take screenshots, inspect DOM
  • web-design-guidelines: Technical accessibility rules
  • react-best-practices: Component architecture

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View