agentleFS
thatrebeccaraethatrebeccarae/claude-marketing/skills/frontend-design/SKILL.md

frontend-design

Skill159 starsChanged 9 months agoMITView on GitHub

Create distinctive, production-grade frontend interfaces with high design quality. Covers design thinking, typography pairing, color theory, motion design, spatial composition, and code quality. Generates real working code — HTML/CSS/JS or React — with intentional aesthetic direction, not generic AI output.

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

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create distinctive, production-grade web interfaces that avoid generic AI aesthetics.

    line 19
  2. Distinctive:

    Before writing code, answer:

    line 31
  3. Distinctive:

    Every interface should have one element someone remembers:

    line 56
  4. Distinctive:

    Start with one dominant color (the mood-setter)

    line 100
  5. Distinctive:

    Add 1-2 accent colors (for interaction, emphasis)

    line 101
  6. Distinctive:

    Add semantic colors (success, warning, error)

    line 103
  7. Distinctive:

    Test with real content, not lorem ipsum

    line 123
  8. Very specific:

    Avoid animating width, height, margin, padding (trigger layout)

    line 176
  9. Very specific:

    Use will-change sparingly and only on elements that will animate

    line 177
  10. Distinctive:

    Prefer CSS over JS for simple animations

    line 178
  11. Very specific:

    Use prefers-reduced-motion media query for accessibility

    line 179
  12. Distinctive:

    Use asymmetry and grid-breaking elements intentionally

    line 184
  13. Distinctive:

    No external dependencies unless essential (CDN fonts are fine)

    line 195

“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

Create distinctive, production-grade web interfaces that avoid generic AI aesthetics.

Install

git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/frontend-design ~/.claude/skills/

Design Thinking Process

1. Understand Context

Before writing code, answer:

  • Purpose: What problem does this interface solve? Who uses it?
  • Audience: Technical sophistication, expectations, emotional state when arriving
  • Constraints: Framework requirements, browser support, performance budget, accessibility needs

2. Commit to an Aesthetic Direction

Choose a specific point of view — not "clean and modern" but a real aesthetic:

DirectionCharacteristics
Brutally minimalMonochrome, system fonts, stark spacing, no decoration
MaximalistDense, layered, multiple type scales, rich texture
Retro-futuristicNeon accents, dark backgrounds, grid lines, monospace
Organic/naturalSoft shapes, earth tones, hand-drawn elements, warm
Luxury/refinedThin serifs, generous whitespace, muted palette, restrained
Playful/toy-likeRounded shapes, bright primaries, bouncy animations
Editorial/magazineStrong grid, dramatic type hierarchy, pull quotes
Brutalist/rawExposed structure, monospace, raw HTML feeling
Art deco/geometricSymmetry, metallic accents, decorative borders, angular
Soft/pastelLight palette, gentle gradients, rounded, approachable
Industrial/utilitarianExposed grid, status indicators, dense information

3. Identify the Memorable Thing

Every interface should have one element someone remembers:

  • An unexpected interaction
  • A distinctive type treatment
  • A bold color choice
  • An animation that surprises
  • A layout that breaks convention

4. Execute with Intentionality

The key is commitment, not intensity. Maximalism executed fully works. Minimalism executed with precision works. The mushy middle does not.

Typography

Principles

  • Choose distinctive fonts, NOT defaults (avoid Arial, Inter, Roboto for display use)
  • Pair a display font (personality) with a body font (readability)
  • Size hierarchy: display (48-96px), heading (24-36px), body (16-18px), small (12-14px)
  • Tight letter-spacing on large display text (-0.02 to -0.04em)
  • Normal or slightly loose spacing on body text

Free Font Sources

SourceBest For
Google FontsWidest selection, easy CDN
FontshareHigh-quality display fonts
FontsourceSelf-hosted, npm installable
Atipo FoundryDistinctive display faces

Pairing Strategy

DisplayBodyVibe
Serif (dramatic)Sans-serif (clean)Editorial, luxury
Geometric sansHumanist sansModern, friendly
MonospaceSystem sansTechnical, brutalist
Slab serifNeutral sansBold, structured
Handwritten/displayGeometric sansPlayful, creative

Color & Theme

Building a Palette

  1. Start with one dominant color (the mood-setter)
  2. Add 1-2 accent colors (for interaction, emphasis)
  3. Define neutral scale (backgrounds, borders, text)
  4. Add semantic colors (success, warning, error)
  5. Store everything in CSS custom properties
:root {
  --color-primary: #...;
  --color-accent: #...;
  --color-bg: #...;
  --color-surface: #...;
  --color-text: #...;
  --color-text-secondary: #...;
  --color-border: #...;
}

Rules

  • Dominant + accent, not evenly distributed
  • WCAG AA contrast minimum (4.5:1 for text, 3:1 for large text)
  • Dark vs. light: commit fully. Do not hedge.
  • Test with real content, not lorem ipsum

Motion & Animation

CSS Transitions (Micro-interactions)

.button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

CSS @keyframes (Ambient)

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating-element { animation: float 3s ease-in-out infinite; }

Scroll-Triggered (IntersectionObserver)

const observer = new IntersectionObserver((entries) => {
  entries.forEach(entry => {
    if (entry.isIntersecting) {
      entry.target.classList.add('visible');
    }
  });
}, { threshold: 0.1 });

document.querySelectorAll('.animate-on-scroll').forEach(el => observer.observe(el));

Staggered Reveals

.stagger-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.stagger-item.visible { opacity: 1; transform: translateY(0); }
.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.2s; }

Performance

  • Animate only transform and opacity (GPU-composited)
  • Avoid animating width, height, margin, padding (trigger layout)
  • Use will-change sparingly and only on elements that will animate
  • Prefer CSS over JS for simple animations
  • Use prefers-reduced-motion media query for accessibility

Spatial Composition

  • Break out of the centered-content-column default
  • Use asymmetry and grid-breaking elements intentionally
  • Overlap elements with z-index for depth
  • Generous negative space OR controlled density — commit to one
  • CSS Grid for complex layouts, Flexbox for component alignment

Code Quality

  • Semantic HTML (nav, main, article, section, aside, footer)
  • Accessible: ARIA labels, keyboard navigation, focus management
  • Responsive: mobile-first or fluid, tested at 320-1440px
  • Performance: lazy loading images, efficient selectors, minimal JS
  • No external dependencies unless essential (CDN fonts are fine)

Anti-Patterns

  • Generic AI aesthetics (purple gradients everywhere, glassmorphism on everything)
  • Cookie-cutter component libraries used without customization
  • Predictable layouts (hero → 3-column → testimonials → CTA)
  • "Clean and modern" as the entire design direction
  • Overused fonts (Inter, Poppins for display)
  • Decorative elements without purpose
  • Rounded everything (a specific choice is fine, but default rounding is lazy)
  • Dark mode with neon accents (overdone)

For typography pairings, color construction, animation library, and accessibility checklist, see REFERENCE.md.

Brand Context (Optional)

If brand-profile.json exists in the working directory, read it before designing. Use colors (primary, secondary, background, text) for the design system, typography (heading and body fonts) for type selections, aesthetic (mood keywords, texture, negative space) for layout decisions, and imagery (style, composition) for hero sections and visual elements. This profile is produced by the brand-dna skill.

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.