agentleFS
Piyush8296Piyush8296/claude-workspace/.claude/skills/frontend-design/SKILL.md

frontend-design

Skill2 starsChanged 7 months agoMITView on GitHub

Create distinctive, production-grade frontend interfaces. Use when building landing pages, dashboards, marketing sites, or any UI that needs to look polished and intentional — not generic AI-generated.

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use file-reading, arrange and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SeifBenayedSkill

    file-reading

    Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.

    Also in 7 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • mm-mazharSkill

    cache-components

    Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).

    Also in 6 projects that use this

  • SeifBenayedSkill

    pdf-reading

    Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.

    Also in 6 projects that use this

  • JokerRunSkill

    compound-engineering

    Compound Engineering workflow for AI-assisted development. Use when planning features, executing work, reviewing code, or codifying learnings. Follows the Plan → Work → Review → Compound loop where each unit of engineering makes subsequent work easier. Triggers on: plan this feature, implement this, review this code, compound learnings, create implementation plan, systematic development.

    Also in 5 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 10 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No generic AI slop: Every interface you build should have a clear aesthetic direction, intentional typography, and a constrained color …

    line 10
  2. Distinctive:

    Before writing any code, pick ONE bold direction:

    line 14
  3. Distinctive:

    Don't use 8 colors. Constraint breeds distinction.

    line 61
  4. Distinctive:

    Use an 8px grid: 8, 16, 24, 32, 48, 64, 96, 128

    line 168
  5. Distinctive:

    Before presenting any UI work:

    line 175

“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Design

Core Principle

No generic AI slop. Every interface you build should have a clear aesthetic direction, intentional typography, and a constrained color palette. If it looks like every other AI-generated page, it's wrong.

Aesthetic Direction

Before writing any code, pick ONE bold direction:

StyleCharacteristicsGood For
BrutalistRaw, bold typography, thick borders, monospace, high contrastDeveloper tools, creative agencies
EditorialLarge serif headlines, generous whitespace, magazine feelBlogs, media, content platforms
LuxuryThin fonts, dark backgrounds, subtle animations, restrained palettePremium products, fashion, finance
Retro-FuturisticNeon accents, dark UI, glowing borders, space-age typographyGaming, crypto, tech startups
OrganicSoft gradients, rounded corners, warm colors, natural imageryHealth, wellness, food, education
Corporate ModernClean sans-serif, blue/gray palette, structured grid, data-denseB2B SaaS, enterprise, dashboards

Typography Rules

Font Selection

  • Never use Arial, Inter, or system-ui alone — they scream "I didn't think about this"
  • Pick ONE display/heading font and ONE body font
  • Contrast matters: pair a serif heading with a sans-serif body, or vice versa

Recommended Pairings

HeadingBodyVibe
Playfair DisplaySource Sans 3Editorial, elegant
Space GroteskInterModern tech
FrauncesWork SansFriendly, warm
JetBrains MonoIBM Plex SansDeveloper, brutalist
Instrument SerifDM SansPremium, clean
Cabinet GroteskSatoshiStartup, fresh

Scale

/* Type scale: 1.250 (Major Third) */
--text-xs:   0.8rem;    /* 12.8px */
--text-sm:   1rem;      /* 16px   */
--text-base: 1.25rem;   /* 20px   */
--text-lg:   1.563rem;  /* 25px   */
--text-xl:   1.953rem;  /* 31.25px */
--text-2xl:  2.441rem;  /* 39px   */
--text-3xl:  3.052rem;  /* 48.8px */
--text-hero: 4.768rem;  /* 76.3px */

Color Palette

Constraint: 1 Primary + 1 Accent + Neutrals

Don't use 8 colors. Constraint breeds distinction.

:root {
  /* Primary: your brand */
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1d4ed8;

  /* Accent: for CTAs, highlights, emphasis */
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;

  /* Neutrals: the backbone */
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
}

Dark Mode

Invert the neutrals, keep the hues. Reduce saturation slightly for eye comfort.

Micro-Interactions

Every interactive element needs a response. Dead-feeling UIs are the hallmark of AI-generated pages.

/* Button hover: lift + shadow */
.btn {
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn:active {
  transform: translateY(0);
}

/* Card hover: subtle lift */
.card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Link hover: underline animation */
.link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 300ms ease;
}
.link:hover {
  background-size: 100% 1px;
}

/* Focus: ring, not outline */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
  border-radius: 4px;
}

Loading States

Skeleton screens, never spinners. Skeletons preview the content shape. Spinners say "I have no idea what's coming."

function CardSkeleton() {
  return (
    <div className="animate-pulse space-y-3 rounded-lg border p-4">
      <div className="h-4 w-3/4 rounded bg-gray-200" />
      <div className="h-3 w-1/2 rounded bg-gray-200" />
      <div className="h-24 w-full rounded bg-gray-200" />
      <div className="flex gap-2">
        <div className="h-8 w-20 rounded bg-gray-200" />
        <div className="h-8 w-20 rounded bg-gray-200" />
      </div>
    </div>
  );
}

Layout Patterns

Hero Section

  • Headline: max 8 words, large display font
  • Sub-headline: max 20 words, body font, lighter weight
  • CTA: one primary button, one ghost/link secondary
  • Visual: image, illustration, or gradient — not a wall of text

Content Grid

  • Cards: consistent height via grid-template-rows: subgrid or fixed aspect ratios
  • Gap: 1.5rem (24px) minimum between cards
  • Responsive: 1 column mobile, 2 tablet, 3-4 desktop

Spacing System

  • Use an 8px grid: 8, 16, 24, 32, 48, 64, 96, 128
  • Section padding: 64px mobile, 96px desktop
  • Between elements: 16-24px
  • Between sections: 48-96px

Pre-Delivery Checklist

Before presenting any UI work:

  • Aesthetic direction is intentional and consistent
  • Typography: display font + body font, proper hierarchy
  • Color: constrained palette, proper contrast (4.5:1+)
  • Every button/link has hover + focus + active states
  • Loading: skeleton screens, not spinners
  • Empty states: helpful message + CTA
  • Responsive: tested at 375px, 768px, 1024px, 1440px
  • Touch targets: 44px minimum on mobile
  • Animations respect prefers-reduced-motion
  • No orphaned text (single words on a line)

Anti-Patterns

Generic AI LookDistinctive Design
System font stack onlyIntentional font pairing
5+ colors everywhere1 primary + 1 accent + neutrals
No hover statesMicro-interactions on every interactive
Spinner for loadingSkeleton matching content shape
Generic stock imageryIllustrations, gradients, or custom graphics
Equal spacing everywhereRhythmic spacing with clear hierarchy
Centered everythingAsymmetric layouts with tension

Integration with Other Skills

  • react-patterns: Component structure for design components
  • css-architecture: Tailwind/CSS Modules implementation
  • accessibility: Contrast, focus, motion preferences
  • performance-optimization: Image optimization, font loading

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.