Frontend design fix react

From matteocervelli/llms · View interactive version

Frontend design fix react is an AI agent skill from the GitHub repository matteocervelli/llms. Fix generic React component designs by applying aesthetic upgrades across the 5 design dimensions (typography, color, motion, spatial composition, backgrounds)

How to use this skill

Skill file

Frontend Design Fix - React

Overview

Transform bland, generic React component designs into visually distinctive interfaces by systematically applying the 5 design dimensions from Anthropic's design framework.

Core Workflow

1. Analysis Phase

2. Assessment Phase

3. Dimension-Based Fixes

Typography
Color & Theme
Motion
Spatial Composition
Backgrounds

4. Implementation

5. Validation

Design Audit Checklist

Typography Audit

Color & Theme Audit

Motion Audit

Spatial Composition Audit

Background Audit

Implementation Tips

React + Tailwind Example

// Use CSS custom properties with Tailwind
const theme = {
  colors: {
    display: "'Playfair Display', serif",
    body: "'Inter', sans-serif",
    mono: "'IBM Plex Mono', monospace",
  }
};

export function DesignedComponent() {
  return (
    <div className="
      bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900
      min-h-screen
      font-[family-name:var(--font-body)]
    ">
      <h1 className="
        font-[family-name:var(--font-display)]
        text-6xl font-black
        animate-fade-in-up
      ">
        Distinctive Title
      </h1>
    </div>
  );
}

Framer Motion for Orchestration

import { motion } from 'framer-motion';

const containerVariants = {
  hidden: { opacity: 0 },
  visible: {
    opacity: 1,
    transition: {
      staggerChildren: 0.1,
      delayChildren: 0.2,
    },
  },
};

const itemVariants = {
  hidden: { opacity: 0, y: 20 },
  visible: { opacity: 1, y: 0 },
};

export function StaggeredList({ items }) {
  return (
    <motion.div
      variants={containerVariants}
      initial="hidden"
      animate="visible"
    >
      {items.map((item) => (
        <motion.div key={item.id} variants={itemVariants}>
          {item.content}
        </motion.div>
      ))}
    </motion.div>
  );
}

Theme Provider Pattern

import { createContext, useContext } from 'react';

const ThemeContext = createContext({});

export function ThemeProvider({ children }) {
  const theme = {
    colors: {
      primary: '#1a1a1a',
      accent: '#ff6b35',
      surface: '#fafafa',
    },
    fonts: {
      display: "'Playfair Display', serif",
      body: "'Inter', sans-serif",
    },
  };

  return (
    <ThemeContext.Provider value={theme}>
      {children}
    </ThemeContext.Provider>
  );
}

export function useTheme() {
  return useContext(ThemeContext);
}

Accessibility Maintenance

Examples

See /examples/showcase.md for before/after comparisons:

Success Metrics

After applying fixes, the design should:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.