Web Design

From opencodos/opencodos · View interactive version

Web Design is an AI agent skill from the GitHub repository opencodos/opencodos. Review files for web interface guideline compliance. Use when checking UI code quality or design consistency.

How to use this skill

Skill file

Web Design Guidelines

Review files for compliance with Web Interface Guidelines.

Trigger

/web-design [files] or "review this UI" or "check design compliance"

Execution Steps

1. Fetch Current Guidelines

# Guidelines are maintained at:
curl https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md

2. Read Target Files

If files specified, read them. Otherwise ask user which files to review.

3. Validate Against Rules

Check each file against all guidelines.

4. Output Findings

Format: file:line - [RULE] description

Core Guidelines

Typography

/* Good font stack */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
  Roboto, Oxygen, Ubuntu, sans-serif;

Color & Contrast

:root {
  --color-text: #1a1a1a;
  --color-bg: #ffffff;
  --color-primary: #0066cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f0f0f0;
    --color-bg: #1a1a1a;
  }
}

Spacing & Layout

/* Spacing tokens */
--space-1: 0.25rem;  /* 4px */
--space-2: 0.5rem;   /* 8px */
--space-3: 1rem;     /* 16px */
--space-4: 1.5rem;   /* 24px */
--space-5: 2rem;     /* 32px */
--space-6: 3rem;     /* 48px */

Interactive Elements

button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:active {
  transform: scale(0.98);
}

Motion & Animation

@media (prefers-reduced-motion: no-preference) {
  .element {
    transition: transform 200ms ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .element {
    transition: none;
  }
}

Forms

<label for="email">Email</label>
<input
  type="email"
  id="email"
  aria-describedby="email-error"
  aria-invalid="true"
/>
<span id="email-error" role="alert">
  Please enter a valid email
</span>

Accessibility

<a href="#main-content" class="skip-link">
  Skip to main content
</a>

<main id="main-content" tabindex="-1">
  <!-- content -->
</main>

Performance

<img
  src="hero.jpg"
  srcset="hero-400.jpg 400w, hero-800.jpg 800w"
  sizes="(max-width: 600px) 400px, 800px"
  loading="lazy"
  alt="Hero image"
/>

Checklist

Source

Based on Vercel Labs' web-interface-guidelines.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.