Skip to content
frontend-design logo

Frontend Design

frontend-design

Create distinctive, mobile-first Next.js interfaces with high design quality. Use when building pages, components, or layouts. Generates polished code that avoids generic AI aesthetics.

SKILL.md

Full skill instructions

Tech Stack

  • Next.js 14+ App Router
  • TypeScript
  • Tailwind CSS
  • Mobile-first breakpoints (sm → md → lg → xl)

Mobile-First Rules

  1. Default styles = mobile. No breakpoint prefix means phone.
  2. Scale up: text-sm md:text-base lg:text-lg
  3. Touch targets: Minimum 44x44px for interactive elements
  4. Stack by default: Use flex-col then md:flex-row
  5. Test at 375px width first, then 320px for edge cases
  6. Thumb zones: Place primary actions in bottom 60% of screen

Low-Bandwidth & Emerging Markets

Design for users with slow 3G, data caps, and older devices.

Performance Budget

  • First paint: Under 1.5s on 3G
  • Total page weight: Under 500KB ideal, 1MB maximum
  • JavaScript: Minimize client-side JS, prefer Server Components
  • Images: Under 100KB each, use WebP/​AVIF with fallbacks

Asset Optimization

  1. Use Next.js <Image> — never raw <img> tags
  2. Lazy load below-fold content — loading="lazy" or dynamic imports
  3. Subset fonts — only characters you need, prefer font-display: swap
  4. Compress aggressively — quality 75-80 is usually indistinguishable
  5. Avoid decorative images — every image must earn its bytes

Code Splitting

  1. Dynamic imports for routes/​modules — next/​dynamic with ssr: false when appropriate
  2. Split by interaction — don't load modal code until modal opens
  3. Analyze bundle — run next build and check chunk sizes regularly

Offline-Tolerant Patterns

  1. localStorage for progress — save state so users can resume
  2. Graceful degradation — app works if analytics/​fonts fail to load
  3. Optimistic UI — show success immediately, sync when possible
  4. Cache static assets — configure proper Cache-Control headers

Reduce Third-Party Scripts

  1. One analytics tool — not three
  2. Defer non-critical scripts — strategy="lazyOnload" in next/​script
  3. Self-host when possible — fonts, icons, critical libraries
  4. Audit regularly — each external script = potential failure point

Device Constraints

  1. Older Android phones — test on Chrome DevTools throttling (4x CPU slowdown)
  2. Limited RAM — avoid memory-heavy animations, large state objects
  3. Small screens — some users still on 320px width devices
  4. Touch-only — no hover states as primary interaction

Design Principles

Before coding, commit to a BOLD aesthetic direction:

  • Tone: Pick one extreme—brutally minimal, maximalist, retro-futuristic, organic, luxury, playful, editorial, brutalist, art deco, soft/​pastel, industrial
  • Differentiation: What makes this UNFORGETTABLE?

Typography

  • Choose distinctive fonts, never Inter/​Arial/​Roboto/​system fonts
  • Pair a display font with a refined body font
  • Use Google Fonts or next/​font for optimization
  • For low-bandwidth: Consider system font stacks as fallback-first

Color & Theme

  • Use CSS variables in globals.css
  • Dominant color + sharp accent beats evenly-distributed palettes
  • Commit to light OR dark, don't hedge
  • High contrast — many users outdoors on dim screens

Motion

  • CSS-only when possible
  • One orchestrated page load > scattered micro-interactions
  • Use animation-delay for staggered reveals
  • Respect prefers-reduced-motion — some devices struggle with animations

Layout

  • Unexpected compositions: asymmetry, overlap, grid-breaking
  • Generous negative space OR controlled density
  • Never center everything
  • Single-column default — complexity only at larger breakpoints

File Structure

src/
  components/    # Reusable components
  app/           # Pages and layouts
  styles/        # Global CSS

Anti-Patterns (NEVER)

  • Generic gradients on white backgrounds
  • Cookie-cutter card layouts
  • Predictable hero + 3-column features
  • Space Grotesk (overused)
  • Purple/​blue tech gradients
  • Heavy client-side rendering for static content
  • Multiple analytics scripts loading synchronously
  • Unoptimized images or raw <img> tags
  • Assuming fast, stable internet

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View