Design

From rileyhilliard/claude-essentials · View interactive version

Design is an AI agent skill from the GitHub repository rileyhilliard/claude-essentials. Design direction and craft rules for product UIs (dashboards, admin tools, SaaS apps, data-heavy interfaces), with a list of AI-default styles to avoid and CSS or Tailwind implementation details. Use when building or restyling a page, component, layout, or theme, choosing color, type and spacing, or

How to use this skill

Skill file

If the current repo has its own design rules or skills (check .claude/rules/ and the repo CLAUDE.md), those take precedence. Apply this skill where they're silent.

Design Principles

Core philosophy: Every interface should look designed by a team that obsesses over 1-pixel differences. Not stripped, _crafted_. And designed for its specific context.

Avoid AI Sameness

AI-generated UIs have a recognizable "median of the internet" feel. Polished but generic, like everything was designed by the same committee. Break out of that by making deliberate choices instead of reaching for defaults.

AI default patterns to actively avoid:

| AI default | Why it happens | Do this instead |

|---|---|---|

| Indigo/purple gradients | Tailwind's bg-indigo-500 saturated training data | Choose an accent color that fits the product's emotional job |

| Inter or system fonts everywhere | Statistically safest choice | Pick typography that matches the product personality (see Choose Typography below) |

| Three-column icon grid | Every SaaS landing page template uses this | Vary card layouts by content type. Metric cards, feature cards, and testimonial cards should look different from each other |

| Centered hero + CTA button | The default starting point for every landing page | Consider what the user actually needs first. Maybe it's a dense dashboard, a split layout, or content-forward with no hero at all |

| Uniform border-radius on everything | rounded-lg applied without thinking | Pick a radius system and vary it by component role (sharp for data, softer for interactive) |

| White/light gray background + subtle shadow cards | The safest possible surface treatment | Commit to a depth strategy that matches the product (see the craft reference's Depth Strategy section) |

| Decorative gradients on hero sections | Looks "modern" without communicating anything | If using gradients, make them functional (show hierarchy, direct attention) not decorative |

| Cream or off-white page background | Claude's default "tasteful" surface | Take the background from the color foundation you chose (see Choose Foundation below) |

| Italic accent word inside a headline | Claude's default editorial flourish | Keep the headline in one type style; if it needs emphasis, use weight or placement |

| Numbered section labels ("01 / 02 / 03") | Claude's default way to signal structure | Use plain headings, and number sections only when their order matters to the user |

| Monospace eyebrow labels above headings | Claude's default "technical" accent | Drop the eyebrow or make it real navigation (breadcrumb, category); keep monospace for data |

| Pill-shaped buttons (rounded-full) | Claude's default button shape | Use the radius system from the craft reference's Border Radius section |

The test: If you swapped your brand name with a competitor's and the design still works, it's too generic. Something about the color foundation, typography, spacing rhythm, or layout density should feel specific to _this_ product.

Controlled imperfection creates character. Perfect symmetry and uniform spacing everywhere reads as machine-generated. Human-designed interfaces have intentional asymmetry: a sidebar slightly narrower than expected, a headline that breaks the grid for emphasis, whitespace that breathes unevenly to create visual rhythm. These are deliberate choices, not sloppiness.

For section headers, eyebrows, card grids, icons, motion and UI copy, and when auditing an existing page for a generic look, read references/slop.md. It has two quick tests, a catalog of patterns with greps to find them, and a page review checklist.

Design Direction

Before writing code, commit to a direction. Don't default. Think about what this specific product needs to feel like.

Think About Context

Choose a Personality

| Direction | Feel | When to Use |

|-----------|------|-------------|

| Precision & Density | Tight spacing, monochrome, info-forward | Power users who live in the tool. Linear, Raycast, terminal aesthetics. |

| Warmth & Approachability | Generous spacing, soft shadows, friendly | Products that want to feel human. Notion, Coda, collaborative tools. |

| Sophistication & Trust | Cool tones, layered depth, gravitas | Products handling money or sensitive data. Stripe, Mercury. |

| Boldness & Clarity | High contrast, dramatic negative space | Modern, decisive products. Vercel, minimal dashboards. |

| Utility & Function | Muted palette, functional density | Work matters more than chrome. GitHub, developer tools. |

| Data & Analysis | Chart-optimized, technical but accessible | Analytics, metrics, business intelligence. |

Pick one. Or blend two. But commit to a direction that fits the product.

Choose Foundation

Color foundation (don't default to warm):

Light or dark? Dark feels technical, focused, premium. Light feels open, approachable, clean. Choose based on context.

Accent color: ONE that means something. Blue = trust. Green = growth. Orange = energy. Violet = creativity.

Choose Layout

Choose Typography

Card Layouts

Internal layouts should vary by content. A metric card doesn't have to look like a plan card doesn't have to look like a settings card. One might have a sparkline, another an avatar stack, another a progress ring.

Surface treatment stays consistent: same border weight, shadow depth, corner radius, padding scale.

Isolated Controls

Don't use native <select> or <input type="date"> where the design needs styled controls. They render OS-native widgets that can't be styled; use the project's component library or build a custom control.

Custom select triggers: display: inline-flex with white-space: nowrap to keep text and icons on same row.

Navigation Context

Screens need grounding:

When building sidebars, consider using same background as main content. Linear, Vercel use subtle border for separation rather than different backgrounds.

Dark Mode

Anti-Patterns

Avoid:

The Standard

Different products want different things. A dev tool wants precision and density. A collaborative product wants warmth and space. A financial product wants trust and sophistication.

Same quality bar, context-driven execution.

Implementation

Detect which styling approach the project uses, then load the matching reference:

| Project uses | Load |

|---|---|

| Vanilla CSS, CSS Modules, styled-components, or no Tailwind | references/craft-css.md |

| Tailwind CSS | references/craft-tailwind.md |

If unclear, check for a tailwindcss dependency in package.json, or @import "tailwindcss" / @theme in the project's CSS. Tailwind v4 uses those and has no tailwind.config by default; v3 uses a tailwind.config file and @tailwind directives. Default to CSS if none of these is found.

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.