Token导航 LogoToken导航TokenDH.com
前端设计只读unknown未标认证来源可访问许可证需确认审计未展示

web-design网页设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

247

周安装

10

下载量

78
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:web-design(网页设计)
来源仓库:https://skills.volces.com
仓库路径:web-design
安装命令:
OpenClaw / Moltbot / Clawbot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 对应宿主 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.sh安装方式未标明
OpenClaw / Moltbot / Clawbot

简介

web-design 用于辅助界面设计、视觉规范和交互体验优化。

  • 它帮助整理页面结构、生成 UI 方案或检查布局一致性,适用于产品设计阶段。
  • 使用时需结合品牌规范、设计系统和用户任务,避免堆砌装饰元素。
  • 涉及真实页面改动时,应通过截图或预览检查文本溢出和对齐问题。
  • 安装前请确认宿主兼容性(如 OpenClaw/Moltbot),并参考原始文档了解输出格式。

SKILL.md

Web Design Patterns

CSS implementation patterns for production-grade interfaces. For design fundamentals and decision-making, see ui-design. This skill focuses on code.

See also: ui-design for typography/color/spacing theory, frontend-design for creative aesthetics.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install web-design

Layout Principles

Use CSS Grid for two-dimensional layouts and Flexbox for one-dimensional flow. Choose the right tool for each context.

Layout NeedToolWhy
Page-level structureCSS Grid (grid-template-areas)Named regions, explicit row/column control
Navigation barsFlexboxSingle-axis alignment, spacing with gap
Card gridsGrid (auto-fill / auto-fit)Responsive without media queries
CenteringGrid (place-items: center)Shortest, most reliable centering
Sidebar + contentGrid (grid-template-columns: 250px 1fr)Proportional sizing with fixed sidebar
Stacking overlapsGrid + grid-area: 1/1Layer elements without position: absolute

Spatial Composition

Go beyond predictable layouts. Intentional asymmetry, overlapping elements, and grid-breaking accents create visual interest. Use grid stacking (grid-area: 1/1) instead of position: absolute for overlapping elements. Choose generous negative space for luxury/editorial aesthetics, or controlled density for data-rich interfaces — the choice must be intentional.

Typography

Typography carries 90% of a design's personality. Choose fonts that match the interface's purpose.

ContextDisplay Font DirectionBody Font DirectionExample Pairing
Editorial / magazineHigh-contrast serifNeutral humanist sansPlayfair Display + Source Sans 3
SaaS dashboardGeometric sansMatching weight sansDM Sans + DM Mono (data)
Creative portfolioExpressive displayClean readable sansSyne + Outfit
E-commerce luxuryThin modern serifElegant sansCormorant Garamond + Jost
Developer toolingMonospace displayMonospace bodyJetBrains Mono + IBM Plex Mono

Type Scale

Use a consistent ratio. A 1.25 (major third) scale works for most interfaces: text-xs 0.64rem, text-sm 0.8rem, text-base 1rem, text-lg 1.25rem, text-xl 1.563rem, text-2xl 1.953rem, text-3xl 2.441rem, text-4xl 3.052rem. Set body text to 1rem (16px minimum), line-height 1.5 for body, 1.1–1.2 for headings. Limit line length to 60–75ch.

Color

Building a Palette

Every palette needs five functional roles:

RolePurposeExample Usage
PrimaryBrand identity, primary actionsButtons, links, active states
NeutralText, borders, backgroundsBody text, cards, dividers
AccentSecondary actions, highlightsTags, badges, secondary buttons
Success / Warning / ErrorSemantic feedbackToasts, form validation, status
SurfaceLayered backgroundsCards on page, modals on overlay

Contrast and Depth

Create depth through surface layering, not just shadows:

:root {
  --surface-0: hsl(220 15% 8%);    /* page background */
  --surface-1: hsl(220 15% 12%);   /* card */
  --surface-2: hsl(220 15% 16%);   /* raised element */
  --surface-3: hsl(220 15% 20%);   /* popover / modal */
}

Use HSL or OKLCH for perceptually uniform color manipulation. Dominant color with sharp accents outperforms evenly-distributed palettes. Always verify WCAG contrast: 4.5:1 for normal text, 3:1 for large text.

Spacing

Consistent spacing creates rhythm. Use an 8px base unit (or 4px for dense UIs):

TokenValueUse
--space-10.25rem (4px)Inline icon gaps, tight padding
--space-20.5rem (8px)Input padding, compact lists
--space-30.75rem (12px)Button padding, card inner spacing
--space-41rem (16px)Default element spacing
--space-61.5rem (24px)Section padding, card gaps
--space-82rem (32px)Section separation
--space-123rem (48px)Major section breaks
--space-164rem (64px)Page-level vertical rhythm

Apply spacing consistently: use gap on Grid/Flexbox containers instead of margins on children. This eliminates margin-collapse bugs and simplifies responsive adjustments.

Visual Hierarchy

Guide the eye through deliberate contrast in size, weight, color, and space.

Hierarchy Techniques

TechniqueHowImpact
Size contrastHero heading 3–4x body sizeImmediate focal point
Weight contrastBold headings + regular bodyScannability
Color contrastPrimary text vs muted secondaryInformation layering
Spatial groupingTight spacing within groups, wide betweenGestalt proximity
ElevationShadows / surface layersInteractive affordance
Whitespace isolationEmpty space around key elementEmphasis through absence

Practical Pattern — Card Hierarchy

Layer hierarchy within cards: eyebrow (xs, uppercase, muted) → title (xl, semibold) → body (base, secondary color, 1.6 line-height) → action (spaced apart with margin-top). Use surface color for separation and consistent padding from spacing tokens.

Responsive Design

Breakpoint Strategy

BreakpointTargetApproach
< 640pxMobileSingle column, stacked navigation, touch targets ≥ 44px
640–1024pxTabletTwo-column options, collapsible sidebars
1024–1440pxDesktopFull layout, hover interactions enabled
> 1440pxWideMax-width container (1280px), prevent ultra-wide line lengths

Fluid Techniques

Prefer fluid sizing over rigid breakpoints where possible:

/* Fluid typography — scales between 640px and 1440px viewport */
h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }

/* Fluid spacing */
section { padding-block: clamp(2rem, 1rem + 4vw, 6rem); }

/* Intrinsic grid — no media queries needed */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-6); }

Use container queries (@container) for component-level responsiveness when a component's layout should respond to its container, not the viewport.

Accessibility

Accessibility is not optional. Build it in from the start.

RequirementImplementationStandard
Color contrast4.5:1 normal text, 3:1 large text / UIWCAG 2.1 AA
Keyboard navigationAll interactive elements focusable and operableWCAG 2.1.1
Focus indicatorsVisible :focus-visible ring, 2px+ offsetWCAG 2.4.7
Semantic HTMLUse <button>, <nav>, <main>, <article> etc.WCAG 1.3.1
Alt textDescriptive for informational images, alt="" for decorativeWCAG 1.1.1
Motion safetyRespect prefers-reduced-motionWCAG 2.3.3
Touch targetsMinimum 44×44px interactive areasWCAG 2.5.8
ARIA when neededaria-label, aria-live, role only when native semantics insufficientWCAG 4.1.2
/* Robust focus indicator */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

Component Design

Anatomy of a Well-Designed Component

Every UI component should have clear states, consistent spacing, and predictable behavior:

StateVisual TreatmentExample
DefaultBase stylingButton at rest
HoverSubtle shift — background, shadow, or scalebackground lightens 5-10%
Active / PressedCompressed feel — reduced shadow, slight insettransform: scale(0.98)
FocusHigh-visibility ring, no outline removal:focus-visible ring
DisabledReduced opacity, cursor: not-allowedopacity: 0.5
LoadingSpinner or skeleton, disabled interactionInline spinner replacing label

Design Token Architecture

Structure tokens in three layers for maintainability:

/* Layer 1: Primitive values */
--blue-500: oklch(0.55 0.2 250);
--gray-100: oklch(0.95 0.005 250);
--radius-md: 0.5rem;

/* Layer 2: Semantic aliases */
--color-primary: var(--blue-500);
--color-surface: var(--gray-100);
--radius-button: var(--radius-md);

/* Layer 3: Component-specific */
--btn-bg: var(--color-primary);
--btn-radius: var(--radius-button);
--btn-padding: var(--space-2) var(--space-4);

This three-layer approach allows theme switching by remapping Layer 2 without touching components.

Interaction Patterns

Motion and Animation

Use motion to communicate state changes, not to decorate. Focus on high-impact moments:

InteractionDurationEasingPurpose
Button hover150msease-outAcknowledge interaction
Modal open250msease-outDraw attention
Modal close200msease-inQuick dismissal
Page transition300msease-in-outMaintain spatial context
Stagger reveal50–80ms delay per itemease-outSequential content loading
Micro-feedback100msease-outToggle, checkbox, switch
/* Staggered entrance animation */
.stagger-item {
  opacity: 0;
  translate: 0 1rem;
  animation: reveal 0.5s ease-out forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0ms; }
.stagger-item:nth-child(2) { animation-delay: 60ms; }
.stagger-item:nth-child(3) { animation-delay: 120ms; }

@keyframes reveal {
  to { opacity: 1; translate: 0 0; }
}

Scroll-Driven Effects

Use native animation-timeline: scroll() (behind @supports) for parallax and reveal effects without JavaScript. Wrap in feature detection to gracefully degrade.

Design Quality Checklist

Before shipping, verify against these criteria:

  • Typography: Intentional font pairing, consistent scale, readable line lengths
  • Color: Cohesive palette, WCAG contrast met, semantic feedback colors defined
  • Spacing: Consistent rhythm using spacing tokens, no ad-hoc pixel values
  • Hierarchy: Clear visual flow — eye path follows intended reading order
  • Responsiveness: Tested at mobile, tablet, desktop; no horizontal overflow
  • Accessibility: Keyboard navigable, focus visible, screen-reader tested, motion-safe
  • States: All interactive elements have hover, active, focus, disabled, and loading states
  • Personality: Design has a clear point-of-view — not generic template aesthetic
  • Performance: Images optimized, fonts subset, animations GPU-accelerated (transform, opacity)
  • Dark mode: If supported, surfaces use layered lightness, not inverted colors

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

92.88%
按下载量换算72

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills