designing-nextjs-ui
Skill12 starsChanged 2 months agoMITView on GitHub
Create professional, attractive, and visually striking user interfaces in Next.js. Use when building beautiful websites, landing pages, dashboards, or any UI that needs to stand out. Covers Tailwind CSS utilities, typography, animations, visual effects, responsive layouts, and modern design patterns. Includes gradient text, glass morphism, hover effects, and comprehensive spacing/layout systems. NOT when doing basic HTML/CSS without a framework.
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- AbdullahMalik17/Hacathan_5edited, first seen Jan 31, 2026
- AbdullahMalik17/My_skillsedited, first seen Jan 17, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- AbdullahMalik17/Hacathan_5★ 9100% same
- AbdullahMalik17/My_skills★ 9100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- browser-useSkill
- browsing-with-playwrightSkill
- building-chatgpt-appsSkill
- building-chat-interfacesSkill
- building-chat-widgetsSkill
- building-mcp-serversSkill
- building-nextjs-appsSkill
- building-rag-systemsSkill
- configuring-better-authSkill
- configuring-dapr-pubsubSkill
- containerizing-applicationsSkill
- context7-efficientSkill
- context-degradationSkill
- context-fundamentalsSkill
- context-optimizationSkill
- creating-skillsSkill
- deploying-cloud-k8sSkill
- deploying-kafka-k8sSkill
- deploying-postgres-k8sSkill
- digital-fte-orchestratorSkill
- doc-coauthoringSkill
- docxSkill
- evaluationSkill
- fetching-library-docsSkill
- generating-ceo-briefingSkill
- installing-skill-trackerSkill
- internal-commsSkill
- managing-calendarSkill
- managing-odooSkill
- managing-servicesSkill
- memory-systemsSkill
- multi-agent-patternsSkill
- nextjs-devtoolsSkill
- nx-monorepoSkill
- operating-k8s-localSkill
- operating-production-servicesSkill
- pdfSkill
- posting-facebookSkill
- posting-instagramSkill
- posting-linkedinSkill
- posting-twitterSkill
- pptxSkill
- project-designerSkill
- researching-with-deepwikiSkill
- scaffolding-fastapi-daprSkill
- scaffolding-openai-agentsSkill
- sending-emailsSkill
- skill-creatorSkill
- streaming-llm-responsesSkill
- styling-with-shadcnSkill
- systematic-debuggingSkill
- theme-factorySkill
- tool-designSkill
- watching-filesystemSkill
- watching-gmailSkill
- watching-whatsappSkill
- working-with-documentsSkill
- working-with-spreadsheetsSkill
- xlsxSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 15 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
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
- Very specific: line 4
Create professional, attractive, and visually striking user interfaces in Next.js.
- Distinctive: line 5
Use when building beautiful websites, landing pages, dashboards, or any UI that needs to stand out.
- Distinctive: line 9
NOT when doing basic HTML/CSS without a framework.
- Distinctive: line 14
Create visually stunning and highly functional interfaces using modern design patterns and Tailwind CSS.
- Distinctive: line 18
Avoid generic aesthetics: Every interface should have a clear visual identity:
- Distinctive: line 20
Commit to a bold aesthetic direction (minimalist, maximalist, editorial, etc.)
- Distinctive: line 21
Use intentional color palettes with purpose
- Distinctive: line 22
Add visual depth through shadows, gradients, and effects
- Distinctive: line 23
Create memorable layouts that break from standard patterns
- Distinctive: line 27
Use animations purposefully, not gratuitously
- Distinctive: line 28
Ensure accessibility (contrast, semantic HTML, screen readers)
- Distinctive: line 33
Don't reinvent the wheel. Use this proven combination for consistency and speed.
- Very specific: line 43
Use next/font/google to eliminate layout shift.
- Distinctive: line 113
Create stunning gradient text effects:
- Distinctive: line 133
Use animations strategically for attention and feedback:
- Very specific: line 168
Use large numbers (text-6xl) with small labels (text-xs)
- Distinctive: line 176
Always design for mobile first, then enhance for larger screens:
- Distinctive: line 190
Use consistent spacing (0.25rem increments):
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Designing Professional Next.js UIs
Create visually stunning and highly functional interfaces using modern design patterns and Tailwind CSS.
Design Philosophy
Avoid generic aesthetics. Every interface should have a clear visual identity:
- Choose distinctive fonts (avoid overused Inter, Roboto, Arial)
- Commit to a bold aesthetic direction (minimalist, maximalist, editorial, etc.)
- Use intentional color palettes with purpose
- Add visual depth through shadows, gradients, and effects
- Create memorable layouts that break from standard patterns
Balance beauty with function. Beautiful design serves the user experience:
- Maintain clear hierarchy and readability
- Use animations purposefully, not gratuitously
- Ensure accessibility (contrast, semantic HTML, screen readers)
- Optimize for performance (next/font, proper image handling)
The "Gold Standard" Stack
Don't reinvent the wheel. Use this proven combination for consistency and speed.
- Tailwind CSS: For utility-first styling.
- Shadcn UI: For copy-paste accessible components (based on Radix UI).
- Framer Motion: For declarative animations.
- Lucide React: For consistent, clean iconography.
Visual Hierarchy & Typography
Fonts (next/font)
Use next/font/google to eliminate layout shift.
- Primary:
InterorGeist Sans(clean, modern legibility). - Headings (Optional):
Playfair DisplayorMerriweather(for "classy" contrast).
import { Inter, Playfair_Display } from 'next/font/google'
const inter = Inter({ subsets: ['latin'], variable: '--font-inter' })
const playfair = Playfair_Display({ subsets: ['latin'], variable: '--font-playfair' })
export default function RootLayout({ children }) {
return (
<html lang="en" className={`${inter.variable} ${playfair.variable}`}>
<body className="font-sans antialiased">{children}</body>
</html>
)
}Data Presentation Patterns
1. KPI / Metric Cards
Isolate key numbers. Use the "Label (Muted) -> Value (Bold) -> Context (Color)" hierarchy.
// See references/ui-patterns.md for full component code
<Card>
<CardHeader className="pb-2">
<CardTitle className="text-sm font-medium text-muted-foreground">
Total Revenue
</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">$45,231.89</div>
<p className="text-xs text-emerald-500 flex items-center mt-1">
+20.1% from last month
</p>
</CardContent>
</Card>2. The "Bento Grid" Layout
Organize dashboard widgets into a grid of distinct rectangular areas.
<div className="grid grid-cols-1 md:grid-cols-4 gap-4 p-4">
<div className="md:col-span-2 md:row-span-2 rounded-xl border bg-card text-card-foreground shadow">
{/* Main Chart */}
</div>
<div className="md:col-span-1 rounded-xl border bg-card text-card-foreground shadow">
{/* KPI 1 */}
</div>
<div className="md:col-span-1 rounded-xl border bg-card text-card-foreground shadow">
{/* KPI 2 */}
</div>
<div className="md:col-span-2 rounded-xl border bg-card text-card-foreground shadow">
{/* Recent Activity List */}
</div>
</div>3. Professional Tables
- Alignment: Text left, Numbers right.
- Headers: Muted uppercase or simple gray text.
- Rows: Border separators (no zebra striping usually).
- Font: Monospace for tabular numbers (
font-mono) if strict alignment is needed.
Visual Effects & Modern UI
Gradient Text (Eye-Catching)
Create stunning gradient text effects:
<h1 className="text-5xl font-extrabold">
<span className="bg-gradient-to-r from-pink-500 to-violet-500 bg-clip-text text-transparent">
Beautiful Gradient
</span>
</h1>Glass Morphism (Modern Depth)
Frosted glass effect for cards and overlays:
<div className="bg-white/10 backdrop-blur-lg rounded-xl p-6 ring-1 ring-white/20 shadow-xl">
<h3>Glass Card</h3>
</div>Animations & Motion
Use animations strategically for attention and feedback:
animate-bounce- Scroll indicators, CTAsanimate-pulse- Loading states, skeleton loadersanimate-spin- Loading spinners- Hover effects:
hover:scale-105,hover:shadow-xl - Transitions:
transition-all duration-300
See references/visual-effects.md for comprehensive guide on gradients, shadows, blur effects, animations, and hover patterns.
Advanced Typography
Making Words Stand Out
Color Emphasis:
<p className="text-gray-700">
Normal text with <span className="font-semibold text-violet-600">highlighted words</span>
</p>Gradient Text:
<span className="bg-gradient-to-r from-yellow-400 to-pink-500 bg-clip-text text-transparent">
Vibrant text
</span>Background Highlight:
<span className="bg-yellow-200 px-1 font-medium">marked text</span>Weight & Size Contrast:
- Mix
font-lightwithfont-boldin same paragraph - Use large numbers (
text-6xl) with small labels (text-xs) - Vary letter spacing:
tracking-tight,tracking-wide,tracking-widest
See references/typography-advanced.md for font loading, hierarchy systems, responsive typography, and dark mode patterns.
Responsive Layouts
Mobile-First Approach
Always design for mobile first, then enhance for larger screens:
<div className="
grid grid-cols-1 /* Mobile: single column */
sm:grid-cols-2 /* Tablet: 2 columns */
lg:grid-cols-3 /* Desktop: 3 columns */
gap-4 sm:gap-6 lg:gap-8 /* Progressive spacing */
">
{/* Grid items */}
</div>Spacing Scale
Use consistent spacing (0.25rem increments):
gap-2,gap-4,gap-6,gap-8- Between itemsp-4,px-6,py-8- Paddingmt-8,mb-4,mx-auto- Margins
Layout Patterns
- Flexbox:
flex items-center justify-between - Grid:
grid grid-cols-4 gap-4 - Container:
max-w-6xl mx-auto px-4 - Aspect Ratio:
aspect-video,aspect-square
See references/layout-patterns.md for complete responsive patterns, Flexbox, Grid systems, spacing utilities, and container patterns.
Micro-Interactions (Framer Motion)
Make the app feel "alive" but not noisy.
// Subtle fade-in for page content
<motion.div
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }}
>
{children}
</motion.div>Quick Reference
Typography:
- Fonts: Use
next/font/googlefor zero layout shift - Hierarchy:
text-6xl→text-4xl→text-2xl→text-xl→text-base - Emphasis: Gradient text, color contrast, weight variation
Visual Effects:
- Gradients:
bg-gradient-to-r from-{color} to-{color} - Shadows:
shadow-md,shadow-lg,shadow-xl,shadow-2xl - Blur:
backdrop-blur-md,backdrop-blur-lg - Animations:
animate-bounce,animate-pulse,hover:scale-105
Layout:
- Responsive:
sm:,md:,lg:,xl:breakpoints - Flexbox:
flex items-center justify-between gap-4 - Grid:
grid grid-cols-{n} gap-{size} - Spacing:
p-{n},m-{n},gap-{n}(multiples of 0.25rem)
Colors:
- Text:
text-gray-900 dark:text-white - Background:
bg-white dark:bg-gray-800 - Borders:
border border-gray-200 dark:border-gray-700
Verification
Run: python scripts/verify.py
Related Skills
- building-nextjs-apps - Core Next.js architecture
- styling-with-shadcn - Deep dive into Shadcn components
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
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.

