agentsclimarketplace

Frontend design

Skill tuanldas/superteam/skills/frontend-design

Use when making design judgments for UI/UX work — auditing, specifying, reviewing, or building frontend interfaces. Covers accessibility, touch targets, typography, color, layout, spacing, animation, forms, navigation, design tokens, and AI slop detection. Reference for agents needing concrete design rules with specific values. Keywords: WCAG, contrast ratio, touch target, font pairing, color palette, responsive breakpoints, design tokens, CSS variables, animation timing, spacing scale, AI slop, anti-patterns.From its SKILL.md

Install
npx -y skills add tuanldas/superteam --skill frontend-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

9.9 KB, as published. Nobody here has run it

Frontend Design Knowledge

Design rules reference for Superteam agents. Priority-ordered, concrete values, scannable tables.

Skill type: Reference (design knowledge + rules) Audience: Agents/commands needing design judgment (ui-auditor, ux-designer, ui-researcher, /st:ui-design, /st:design-system) Pairs with: superteam:core-principles (visual-first, questioning, decision continuity)

Priority System

Lower number = higher priority. When rules conflict, higher priority wins.

PriorityCategoryWhy This Rank
P1AccessibilityLegal, ethical, blocks users entirely
P2Touch & InteractionBroken interactions = unusable
P3PerformanceSlow = abandoned
P4TypographyReadability = core function
P5Color & ThemeBrand, mood, accessibility overlap
P6Layout & ResponsiveContent must reach all devices
P7SpacingVisual rhythm, scanability
P8Animation & MotionDelight, but never at cost of P1-P7
P9Forms & FeedbackUser communication
P10NavigationWayfinding

Principle Summaries

Each principle has 2-3 key rules here. Full details with tables, examples, and code in reference files.

P1: Accessibility (CRITICAL) — references/core-constraints.md

WCAG 2.1 AA minimum. Text contrast >=4.5:1 (normal) / >=3:1 (large). Focus indicators visible, 2px+, 3:1 contrast. Semantic HTML over ARIA divs. Color never sole indicator.

Dark mode parity: Both modes need independent contrast verification — never mechanical inversion.

P2: Touch & Interaction — references/core-constraints.md

Touch targets: 44x44px minimum (mobile), 8px+ spacing between targets. Every interactive element needs all states (default/hover/focus/active/disabled/loading). Interaction feedback within 80-150ms.

P3: Performance — references/core-constraints.md

Only animate transform and opacity (GPU-composited). Core Web Vitals: LCP <=2.5s, INP <=200ms, CLS <=0.1. Fonts: font-display: swap, woff2, limit 2-3 files. Images: lazy load, explicit dimensions, WebP/AVIF.

P4: Typography — references/visual-design.md

Base 16px. Body line-height 1.5-1.6. Prose max-width 65-75ch. Max 2 font families + 1 code font. Avoid blacklisted fonts (Comic Sans, Papyrus, etc.) and flag overused ones (Inter, Roboto, Poppins).

P5: Color & Theme — references/visual-design.md

Semantic palette: primary/secondary/neutral + success/warning/error/info. 9 shades per color (50-950). Dark mode designed independently, not inverted. All combinations must pass contrast ratios (P1).

P6: Layout & Responsive — references/visual-design.md

Mobile-first. Breakpoints: 320/768/1024/1440px. Verify at all four. No horizontal scrolling. Container widths: prose 768px, dashboard 1440px, marketing 1280px.

P7: Spacing — references/visual-design.md

4px base unit, 4/8dp rhythm. Scale: 4/8/12/16/20/24/32/40/48/64/80/96px. No arbitrary values. Related items closer, unrelated further. Scale spacing with breakpoint.

P8: Animation & Motion — references/interaction-patterns.md

Duration 150-300ms for transitions, 80-150ms for micro-interactions. Only transform/opacity. prefers-reduced-motion is non-negotiable. One hero animation per page max.

P9: Forms & Feedback — references/interaction-patterns.md

Validate on blur, re-validate on change. Errors: specific text + icon below field (never color-only). Empty states need illustration + CTA. Success toast auto-dismiss 5s, error toast persistent.

P10: Navigation — references/interaction-patterns.md

Pattern matches app type (sidebar for SaaS, top nav for marketing). Mobile bottom tab bar max 5 items. No hover-dependent nav on mobile. Breadcrumbs for 3+ level hierarchies.


Design Token Architecture

Three-Layer System

Layer 1: Primitive     → Raw values (never use directly in components)
Layer 2: Semantic      → Meaning-based aliases (use these in components)
Layer 3: Component     → Component-specific tokens (optional, for complex systems)

CSS Variable Naming

/* Layer 1: Primitives — never use directly in components */
--color-blue-500: #3B82F6;  --space-4: 16px;  --radius-md: 8px;

/* Layer 2: Semantic — use these in components */
--color-primary: var(--color-blue-500);
--color-text-primary: var(--color-gray-900);
--color-bg-surface: var(--color-white);
--spacing-section: var(--space-8);

/* Layer 3: Component — optional, for complex systems */
--button-bg: var(--color-primary);
--button-radius: var(--radius-card);
--card-padding: var(--spacing-section);

Token Naming: --{category}-{semantic}-{variant}

Color: --color-primary, --color-text-secondary | Spacing: --space-4 (16px) | Radius: --radius-sm (4px) | Shadow: --shadow-lg | Z-index: --z-modal: 100 | Duration: --duration-fast: 150ms

Master + Override Pattern

For multi-theme/white-label: master tokens in :root, brand overrides in .theme-* class. Overrides swap primitives (Layer 1), not semantics (Layer 2). This keeps the system predictable.

:root { --color-primary: var(--color-blue-500); --radius-card: 8px; }
.theme-brand-a { --color-primary: var(--color-indigo-600); --radius-card: 12px; }

AI Slop Anti-Patterns

Patterns that signal zero creative direction. Flag all, fix each.

#PatternSeverityFix
1Purple/violet gradient as default accentHIGHChoose context-appropriate palette
23-column feature grid with icon circlesHIGHVary columns (2, 4, asymmetric), use illustrations or screenshots
3Centered everything, uniform spacingHIGHVary alignment, create visual flow with asymmetry
4Uniform bubbly border-radius on all elementsMEDIUMVary radius by element type (buttons: 6px, cards: 12px, pills: 9999px)
5Generic hero copy ("Welcome to X", "Unlock the power of")HIGHSpecific value prop in 10 words or fewer
6Decorative blobs, floating circles, wavy SVG dividersMEDIUMRemove or replace with purposeful graphics
7Cookie-cutter section rhythm (same padding, same width)MEDIUMVary section height, padding, width, background
8Overused fonts (Inter, Roboto, Poppins everywhere)LOWChoose distinctive fonts from recommended list (P4)
9Card-grid-with-hover-shadow as only interactionMEDIUMVary interactions: reveal content, animate, link styles
10Gradient text on everythingMEDIUMReserve for 1 hero element max, or skip entirely
11Stock-photo hero with text overlayHIGHCustom illustration, product screenshot, or bold typography
12Identical spacing between ALL sectionsMEDIUMTighter within related groups, spacious between major sections
13Every button is rounded-full with gradientMEDIUMMatch button style to aesthetic direction
14Dark mode = just invert colorsHIGHDesign dark mode independently, re-check all contrast ratios

Detection principle: "Would a designer at a respected studio ship this without changes? If no creative direction was applied, flag it."


Quick Reference: Pre-Delivery Checklist

#CheckPass CriteriaRef
1Text contrast>=4.5:1 normal, >=3:1 largeP1
2Touch targets>=44x44px mobile, 8px+ spacingP2
3Focus indicatorsVisible, >=3:1 contrast, 2px+P1
4Semantic HTMLNo <div> for interactive elementsP1
5Keyboard navigationAll interactive elements reachableP1
6Interaction feedbackResponse within 80-150msP2
7Animation propertiesOnly transform/opacity animatedP3
8Font loadingfont-display: swap, woff2, preloadP3
9Type scaleConsistent scale, body 16px+, line-height >=1.5P4
10Font count<=2 families + 1 code fontP4
11Color systemSemantic tokens, not hardcoded hexP5
12Dark mode contrastIndependently verified, not invertedP5
13ResponsiveTested at 320/768/1024/1440px, no horizontal scrollP6
14Prose max-width65-75ch for readabilityP6
15Spacing scale4px base, no arbitrary valuesP7
16Reduced motionprefers-reduced-motion respectedP8
17Empty statesNot blank — illustration + CTAP9
18Error messagesSpecific, actionable, accessible (not color-only)P9
19AI slop checkNo patterns from anti-pattern list--
20Light/dark parityBoth modes visually tested, contrast verifiedP1+P5

Context Budget

FileLinesWhen to LoadTrigger
SKILL.md~200Always when making design judgmentsAuto: UI agents/commands
references/core-constraints.md~160Accessibility audit, touch targets, performance reviewP1/P2/P3 questions
references/visual-design.md~200Typography, color, layout, spacing decisionsP4/P5/P6/P7 questions
references/interaction-patterns.md~170Animation, forms, navigation designP8/P9/P10 questions

Progressive loading: SKILL.md gives summaries + decision criteria. Load reference files only when working on specific principles. Most tasks need SKILL.md + 1 reference file.

Integration

Pairs with:

  • superteam:core-principles — visual-first verification, questioning, decision continuity

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.