Frontend Design
Create distinctive, production-grade frontend interfaces that feel deliberate, premium, and current. Implement real working code with exceptional attention to aesthetic details and creative choices.
Design Thinking
Before coding, understand the context and commit to a clear aesthetic direction.
Output three things as text before coding:
- Visual thesis: one sentence describing mood, material, and energy (e.g., "brutally minimal dark interface with surgical precision" or "warm editorial magazine feel with generous whitespace")
- Content plan: hero, support, detail, final CTA
- Interaction thesis: 2-3 motion ideas that change the feel of the page
For each, consider:
- Purpose: What problem does this interface solve? Who uses it?
- Tone: Pick a direction and commit. Brutally minimal, maximalist, retro-futuristic, organic, luxury, playful, editorial, brutalist, art deco, soft pastel, industrial. These are starting points; design one true to the vision.
- Constraints: Framework, performance, accessibility requirements.
- Differentiation: What makes this unforgettable? What's the one thing someone remembers?
Match ambition to context. A brand landing page warrants bold, expressive choices. A dashboard warrants calm restraint. Both require intentionality.
Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is production-grade, visually striking, cohesive, and meticulously refined.
Beautiful Defaults
- Start with composition, not components.
- Prefer a full-bleed hero or full-canvas visual anchor.
- Make the brand or product name the loudest text.
- Keep copy short enough to scan in seconds.
- Use whitespace, alignment, scale, cropping, and contrast before adding chrome.
- Limit the system: two typefaces max, one accent color by default.
- Default to cardless layouts. Use sections, columns, dividers, lists, and media blocks instead.
- Treat the first viewport as a poster, not a document.
- Each section gets one job, one dominant visual idea, and one primary takeaway or action.
Aesthetics
Typography
Choose fonts that are beautiful, unique, and interesting. Pair a distinctive display font with a refined body font. Avoid generic fonts like Arial, Inter, Roboto, and system defaults. Never converge on common AI-favorite choices (Space Grotesk, for example) across generations.
Color and Theme
Commit to a cohesive palette. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes. One accent color unless the product already has a strong system.
Spatial Composition
Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density. Match the spatial approach to the visual thesis.
Backgrounds and Visual Details
Create atmosphere and depth rather than defaulting to solid colors. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays. Match effects to the overall aesthetic.
Motion
Use motion to create presence and hierarchy, not noise.
Ship at least 2-3 intentional motions for visually led work:
- One entrance sequence in the hero (staggered reveals with
animation-delay create more delight than scattered micro-interactions)
- One scroll-linked, sticky, or depth effect
- One hover, reveal, or layout transition that sharpens affordance
Prefer CSS-only solutions for plain HTML. Use Framer Motion when available in React for section reveals, shared layout transitions, scroll-linked shifts, sticky storytelling, and presence effects.
Motion rules:
- Noticeable in a quick recording
- Smooth on mobile
- Fast and restrained
- Consistent across the page
- Removed if ornamental only
- Wrapped in
@media (prefers-reduced-motion: no-preference) to respect accessibility settings
Landing Pages
Default sequence:
- Hero: brand or product, promise, CTA, and one dominant visual
- Support: one concrete feature, offer, or proof point
- Detail: atmosphere, workflow, product depth, or story
- Final CTA: convert, start, visit, or contact
Hero rules:
- One composition only. Full-bleed image or dominant visual plane.
- On branded landing pages, the hero runs edge-to-edge with no inherited page gutters or shared max-width. Constrain only the inner text/action column.
- Brand first, headline second, body third, CTA fourth.
- No hero cards, stat strips, logo clouds, pill soup, or floating dashboards by default.
- Keep headlines to roughly 2-3 lines on desktop, readable in one glance on mobile.
- Keep the text column narrow and anchored to a calm area of the image.
- All text over imagery must maintain strong contrast and clear tap targets.
If the first viewport still works after removing the image, the image is too weak. If the brand disappears after hiding the nav, the hierarchy is too weak.
Viewport budget: if the first screen includes a sticky/fixed header, that header counts against the hero. The combined header + hero content must fit within the initial viewport. When using 100vh/100svh heroes, subtract persistent UI chrome or overlay the header.
App UI
Default to calm, dense restraint:
- Strong typography and spacing
- Few colors
- Dense but readable information
- Minimal chrome
- Cards only when the card is the interaction
Organize around: primary workspace, navigation, secondary context or inspector, one clear accent for action or state.
Avoid: dashboard-card mosaics, thick borders on every region, decorative gradients behind routine product UI, multiple competing accent colors, ornamental icons that do not improve scanning.
If a panel can become plain layout without losing meaning, remove the card treatment.
Utility Copy for Product UI
On dashboards, admin tools, and operational workspaces, default to utility copy over marketing copy.
- Prioritize orientation, status, and action over promise, mood, or brand voice.
- Start with the working surface itself: KPIs, charts, filters, tables, status. No hero section unless explicitly requested.
- Section headings should say what the area is or what the user can do there.
- If a sentence could appear in a homepage hero or ad, rewrite it until it sounds like product UI.
- If a section does not help someone operate, monitor, or decide, remove it.
Imagery
Imagery must do narrative work.
- Use at least one strong, real-looking image for brands, venues, editorial pages, and lifestyle products.
- Prefer in-situ photography over abstract gradients for hero anchors.
- Choose or crop images with a stable tonal area for text.
- Do not use images with embedded signage, logos, or typographic clutter fighting the UI.
- If multiple moments are needed, use multiple images, not one collage.
The first viewport needs a real visual anchor. Decorative texture alone is not enough for landing pages (though textures and atmospheric effects work well as supporting elements throughout).
Copy
- Let the headline carry the meaning.
- Supporting copy: one short sentence.
- Cut repetition between sections.
- Do not include prompt language or design commentary in the UI.
- Give every section one responsibility: explain, prove, deepen, or convert.
- If deleting 30 percent of the copy improves the page, keep deleting.
Anti-Patterns
Never use generic AI-generated aesthetics:
- Overused font families (Inter, Roboto, Arial, system fonts)
- Cliched color schemes (particularly purple gradients on white backgrounds)
- Predictable layouts and component patterns
- Cookie-cutter design that lacks context-specific character
Reject these failures:
- Generic SaaS card grid as the first impression
- Beautiful image with weak brand presence
- Strong headline with no clear action
- Busy imagery behind text
- Sections that repeat the same mood statement
- Carousel with no narrative purpose
- App UI made of stacked cards instead of layout
- Split-screen hero where text isn't on a calm, unified side
- Filler copy or sections that need many tiny UI devices to explain themselves
Interpret creatively and make unexpected choices that feel genuinely designed for the context. Vary between light and dark themes, different fonts, different aesthetics. No two designs should feel the same.
Litmus Checks
Before delivering, verify:
- Is the brand or product unmistakable in the first screen?
- Is there one strong visual anchor?
- Can the page be understood by scanning headlines only?
- Does each section have one job?
- Are cards actually necessary?
- Does motion improve hierarchy or atmosphere?
- Would the design still feel premium if all decorative shadows were removed?
1---2name: frontend-design-143description: Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build landing pages, websites, dashboards, web components, or any frontend UI. Generates creative, polished code that avoids generic AI aesthetics.4---5
6# Frontend Design
7
8Create distinctive, production-grade frontend interfaces that feel deliberate, premium, and current. Implement real working code with exceptional attention to aesthetic details and creative choices.
9
10## Design Thinking
11
12Before coding, understand the context and commit to a clear aesthetic direction.
13
14Output three things as text before coding:
15
16- **Visual thesis**: one sentence describing mood, material, and energy (e.g., "brutally minimal dark interface with surgical precision" or "warm editorial magazine feel with generous whitespace")
17- **Content plan**: hero, support, detail, final CTA
18- **Interaction thesis**: 2-3 motion ideas that change the feel of the page
19
20For each, consider:
21
22- **Purpose**: What problem does this interface solve? Who uses it?
23- **Tone**: Pick a direction and commit. Brutally minimal, maximalist, retro-futuristic, organic, luxury, playful, editorial, brutalist, art deco, soft pastel, industrial. These are starting points; design one true to the vision.
24- **Constraints**: Framework, performance, accessibility requirements.
25- **Differentiation**: What makes this unforgettable? What's the one thing someone remembers?
26
27Match ambition to context. A brand landing page warrants bold, expressive choices. A dashboard warrants calm restraint. Both require intentionality.
28
29Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is production-grade, visually striking, cohesive, and meticulously refined.
30
31## Beautiful Defaults
32
33- Start with composition, not components.
34- Prefer a full-bleed hero or full-canvas visual anchor.
35- Make the brand or product name the loudest text.
36- Keep copy short enough to scan in seconds.
37- Use whitespace, alignment, scale, cropping, and contrast before adding chrome.
38- Limit the system: two typefaces max, one accent color by default.
39- Default to cardless layouts. Use sections, columns, dividers, lists, and media blocks instead.
40- Treat the first viewport as a poster, not a document.
41- Each section gets one job, one dominant visual idea, and one primary takeaway or action.
42
43## Aesthetics
44
45### Typography
46
47Choose fonts that are beautiful, unique, and interesting. Pair a distinctive display font with a refined body font. Avoid generic fonts like Arial, Inter, Roboto, and system defaults. Never converge on common AI-favorite choices (Space Grotesk, for example) across generations.
48
49### Color and Theme
50
51Commit to a cohesive palette. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes. One accent color unless the product already has a strong system.
52
53### Spatial Composition
54
55Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density. Match the spatial approach to the visual thesis.
56
57### Backgrounds and Visual Details
58
59Create atmosphere and depth rather than defaulting to solid colors. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays. Match effects to the overall aesthetic.
60
61## Motion
62
63Use motion to create presence and hierarchy, not noise.
64
65Ship at least 2-3 intentional motions for visually led work:
66
67- One entrance sequence in the hero (staggered reveals with `animation-delay` create more delight than scattered micro-interactions)
68- One scroll-linked, sticky, or depth effect
69- One hover, reveal, or layout transition that sharpens affordance
70
71Prefer CSS-only solutions for plain HTML. Use Framer Motion when available in React for section reveals, shared layout transitions, scroll-linked shifts, sticky storytelling, and presence effects.
72
73Motion rules:
74
75- Noticeable in a quick recording
76- Smooth on mobile
77- Fast and restrained
78- Consistent across the page
79- Removed if ornamental only
80- Wrapped in `@media (prefers-reduced-motion: no-preference)` to respect accessibility settings
81
82## Landing Pages
83
84Default sequence:
85
861. **Hero**: brand or product, promise, CTA, and one dominant visual
872. **Support**: one concrete feature, offer, or proof point
883. **Detail**: atmosphere, workflow, product depth, or story
894. **Final CTA**: convert, start, visit, or contact
90
91Hero rules:
92
93- One composition only. Full-bleed image or dominant visual plane.
94- On branded landing pages, the hero runs edge-to-edge with no inherited page gutters or shared max-width. Constrain only the inner text/action column.
95- Brand first, headline second, body third, CTA fourth.
96- No hero cards, stat strips, logo clouds, pill soup, or floating dashboards by default.
97- Keep headlines to roughly 2-3 lines on desktop, readable in one glance on mobile.
98- Keep the text column narrow and anchored to a calm area of the image.
99- All text over imagery must maintain strong contrast and clear tap targets.
100
101If the first viewport still works after removing the image, the image is too weak. If the brand disappears after hiding the nav, the hierarchy is too weak.
102
103Viewport budget: if the first screen includes a sticky/fixed header, that header counts against the hero. The combined header + hero content must fit within the initial viewport. When using `100vh`/`100svh` heroes, subtract persistent UI chrome or overlay the header.
104
105## App UI
106
107Default to calm, dense restraint:
108
109- Strong typography and spacing
110- Few colors
111- Dense but readable information
112- Minimal chrome
113- Cards only when the card is the interaction
114
115Organize around: primary workspace, navigation, secondary context or inspector, one clear accent for action or state.
116
117Avoid: dashboard-card mosaics, thick borders on every region, decorative gradients behind routine product UI, multiple competing accent colors, ornamental icons that do not improve scanning.
118
119If a panel can become plain layout without losing meaning, remove the card treatment.
120
121### Utility Copy for Product UI
122
123On dashboards, admin tools, and operational workspaces, default to utility copy over marketing copy.
124
125- Prioritize orientation, status, and action over promise, mood, or brand voice.
126- Start with the working surface itself: KPIs, charts, filters, tables, status. No hero section unless explicitly requested.
127- Section headings should say what the area is or what the user can do there.
128- If a sentence could appear in a homepage hero or ad, rewrite it until it sounds like product UI.
129- If a section does not help someone operate, monitor, or decide, remove it.
130
131## Imagery
132
133Imagery must do narrative work.
134
135- Use at least one strong, real-looking image for brands, venues, editorial pages, and lifestyle products.
136- Prefer in-situ photography over abstract gradients for hero anchors.
137- Choose or crop images with a stable tonal area for text.
138- Do not use images with embedded signage, logos, or typographic clutter fighting the UI.
139- If multiple moments are needed, use multiple images, not one collage.
140
141The first viewport needs a real visual anchor. Decorative texture alone is not enough for landing pages (though textures and atmospheric effects work well as supporting elements throughout).
142
143## Copy
144
145- Let the headline carry the meaning.
146- Supporting copy: one short sentence.
147- Cut repetition between sections.
148- Do not include prompt language or design commentary in the UI.
149- Give every section one responsibility: explain, prove, deepen, or convert.
150- If deleting 30 percent of the copy improves the page, keep deleting.
151
152## Anti-Patterns
153
154Never use generic AI-generated aesthetics:
155
156- Overused font families (Inter, Roboto, Arial, system fonts)
157- Cliched color schemes (particularly purple gradients on white backgrounds)
158- Predictable layouts and component patterns
159- Cookie-cutter design that lacks context-specific character
160
161Reject these failures:
162
163- Generic SaaS card grid as the first impression
164- Beautiful image with weak brand presence
165- Strong headline with no clear action
166- Busy imagery behind text
167- Sections that repeat the same mood statement
168- Carousel with no narrative purpose
169- App UI made of stacked cards instead of layout
170- Split-screen hero where text isn't on a calm, unified side
171- Filler copy or sections that need many tiny UI devices to explain themselves
172
173Interpret creatively and make unexpected choices that feel genuinely designed for the context. Vary between light and dark themes, different fonts, different aesthetics. No two designs should feel the same.
174
175## Litmus Checks
176
177Before delivering, verify:
178
179- Is the brand or product unmistakable in the first screen?
180- Is there one strong visual anchor?
181- Can the page be understood by scanning headlines only?
182- Does each section have one job?
183- Are cards actually necessary?
184- Does motion improve hierarchy or atmosphere?
185- Would the design still feel premium if all decorative shadows were removed?