anthropics/skills180kfrontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
前端开发
Designs layout systems and responsive interfaces including grid systems, flexbox patterns, sidebar layouts, and responsive breakpoints. Use when structuring app layouts, building responsive designs, or creating complex page structures.
把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。
读取 https://funcoding.ai/skills/ancoleman/ai-design-components/designing-layouts/install.md ,按里面的步骤帮我安装这个 Skill。
This skill provides comprehensive guidance for creating responsive layout systems using modern CSS techniques. It covers grid systems, flexbox patterns, container queries, spacing systems, and mobile-first design strategies to build flexible, accessible interfaces that adapt seamlessly across devices.
Invoke this skill when:
For structured, two-dimensional layouts, use CSS Grid with design tokens.
12-Column Grid:
.grid-container {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: var(--grid-gap);
max-width: var(--container-max-width);
margin: 0 auto;
padding: 0 var(--container-padding-x);
}
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }
Auto-Fit Responsive Grid:
.auto-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
gap: var(--grid-gap);
}
For complex grid layouts and advanced patterns, see references/layout-patterns.md.
For one-dimensional layouts and alignment control.
Holy Grail Layout:
.holy-grail {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.holy-grail__body {
flex: 1;
display: flex;
}
.holy-grail__nav {
width: var(--sidebar-width);
flex-shrink: 0;
}
.holy-grail__main {
flex: 1;
min-width: 0; /* Prevent overflow */
}
.holy-grail__aside {
width: var(--sidebar-width);
flex-shrink: 0;
}
For additional flexbox patterns including sticky footer and centering, see references/css-techniques.md.
For component-responsive design that adapts based on container size, not viewport.
.card-container {
container-type: inline-size;
container-name: card;
}
@container card (min-width: 400px) {
.card {
grid-template-columns: auto 1fr;
gap: var(--spacing-lg);
}
}
@container card (min-width: 600px) {
.card {
grid-template-columns: 200px 1fr auto;
}
}
Container queries are production-ready in all modern browsers (2025). For detailed usage and fallback strategies, see references/responsive-strategies.md.
Use mobile-first approach with semantic breakpoints.
/* Mobile-first breakpoints using design tokens */
@media (min-width: 640px) { /* sm: Tablet portrait */
.container { max-width: 640px; }
}
@media (min-width: 768px) { /* md: Tablet landscape */
.container { max-width: 768px; }
}
@media (min-width: 1024px) { /* lg: Desktop */
.container { max-width: 1024px; }
}
@media (min-width: 1280px) { /* xl: Wide desktop */
.container { max-width: 1280px; }
}
@media (min-width: 1536px) { /* 2xl: Ultra-wide */
.container { max-width: 1536px; }
}
For fluid typography and advanced responsive techniques, see references/responsive-strategies.md.
Implement consistent spacing using design tokens.
/* Base unit: 4px or 8px */
:root {
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 32px;
--spacing-2xl: 48px;
--spacing-3xl: 64px;
}
/* Apply systematically */
.section { padding: var(--section-spacing) 0; }
.container { padding: 0 var(--container-padding-x); }
.card { padding: var(--spacing-lg); }
.stack > * + * { margin-top: var(--spacing-md); }
For utility-first approach with custom configuration:
// tailwind.config.js
module.exports = {
theme: {
extend: {
spacing: {
'xs': 'var(--spacing-xs)',
'sm': 'var(--spacing-sm)',
'md': 'var(--spacing-md)',
'lg': 'var(--spacing-lg)',
'xl': 'var(--spacing-xl)',
},
screens: {
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
}
}
}
}
For Tailwind patterns and optimization, see references/library-guide.md.
Determine layout type and responsive behavior needed.
Use design tokens from skills/design-tokens/ for consistent spacing, breakpoints, and sizing.
For responsive breakpoints:
node scripts/generate_breakpoints.js --approach mobile-first
For fluid typography scale:
node scripts/calculate_fluid_typography.js --min-vw 320 --max-vw 1920
Check semantic HTML and landmark regions:
node scripts/validate_layout_accessibility.js path/to/component.tsx
Test across device sizes using responsive preview tools and actual devices.
scripts/generate_breakpoints.js - Generate responsive breakpoint systemscripts/calculate_fluid_typography.js - Calculate fluid typography scalesscripts/validate_layout_accessibility.js - Validate semantic HTML and ARIA landmarksreferences/layout-patterns.md - Common layout patterns (sidebar, masonry, split-pane)references/responsive-strategies.md - Mobile-first design and responsive techniquesreferences/css-techniques.md - Modern CSS features (Grid, Flexbox, Container Queries)references/accessibility-layouts.md - Semantic HTML and ARIA landmarksreferences/library-guide.md - Framework integration (Tailwind, styled-components)references/performance-optimization.md - CSS performance and layout thrashingexamples/admin-layout.tsx - Complete admin dashboard with sidebarexamples/responsive-grid.tsx - Auto-responsive grid systemexamples/masonry-layout.tsx - Pinterest-style masonry gridexamples/split-pane.tsx - Resizable split-pane interfaceassets/breakpoint-config.json - Standard breakpoint configurationsassets/layout-templates.json - Common layout templatesassets/spacing-scale.json - Spacing system configurations
anthropics/skills180kGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
前端开发
anthropics/skills180kSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
前端开发
addyosmani/agent-skills103kGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.
前端开发
addyosmani/agent-skills103kBuilds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.
前端开发
addyosmani/agent-skills103kOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.
前端开发
nexu-io/open-design100kOpenDesign's feature business case for the plugin marketplace: the user pain, options, tradeoffs, and the measure of success. Built as a decision-grade product management deck for PM, eng, design, leadership.
前端开发