web-design-guidelines
Web platform design and accessibility guidelines.
Skill by platform-design-skills
Chalk Labs
Need help deploying web-design-guidelines?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ehmo-web-design-guidelines
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/web-design-guidelines
What's inside
- Skill name
web-design-guidelines- Description
- Web platform design and accessibility guidelines. Use when building web interfaces, auditing accessibility, implementing responsive layouts, or reviewing web UI code. Triggers on tasks involving HTML, CSS, web components, WCAG compliance, responsive design, or web performance.
- License
- MIT
- Metadata
- author: platform-design-skills · version: 1.0.0
- Instructions
- 1,447 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: "web-design-guidelines" does not match folder "web"
- body: 1447 lines (spec recommends under 500)
Files (4)
- AGENTS.md
- SKILL.md
- metadata.json
- _sections.md · rules/
SKILL.md (first lines)
# Web Platform Design Guidelines
Framework-agnostic rules for accessible, performant, responsive web interfaces. Based on WCAG 2.2, MDN Web Docs, and modern web platform APIs.
---
## 1. Accessibility / WCAG [CRITICAL]
Accessibility is not optional. Most rules in this section map to WCAG 2.2 success criteria at Level A or AA. A small number of best-practice rules (noted inline) target Level AAA or go beyond WCAG.
### 1.1 Use Semantic HTML Elements
Use elements for their intended purpose. Semantic structure provides free accessibility, SEO, and reader-mode support.
| Element | Purpose |
|---------|---------|
| `<main>` | Primary page content (one per page) |
| `<nav>` | Navigation blocks |
| `<header>` | Introductory content or navigational aids |
| `<footer>` | Footer for nearest sectioning content |
| `<article>` | Self-contained, independently distributable content |
| `<section>` | Thematic grouping with a heading |
| `<aside>` | Tangentially related content (sidebars, callouts) |
| `<figure>` / `<figcaption>` | Illustrations, diagrams, code listings |
| `<details>` / `<summary>` | Expandable/collapsible disclosure widget |
| `<dialog>` | Modal or non-modal dialog boxes |
| `<time>` | Machine-readable dates/times |
| `<mark>` | Highlighted/referenced text |
| `<address>` | Contact information for nearest article/body |
```html
<!-- Good -->
<main>
<article>
<h1>Article Title</h1>
<p>Content...</p>
</article>
<aside>Related links</aside>
</main>
<!-- Bad: div soup -->
<div class="main">
<div class="article">
<div class="title">Article Title</div>
<div class="content">Content...</div>
</div>
</div>
```
**Anti-pattern**: Using `<div>` or `<span>` for interactive elements. Never write `<div onclick>` when `<button>` exists.
### 1.2 ARIA Labels on Interactive Elements
Every interactive element must have an accessible name. Prefer visible text; use `aria-label` or `aria-labelledby` only when visible text is insufficient (SC 4.1.2).
```html
<!-- Icon-only button: needs aria-label -->
<button aria-label="Close dialog">
<svg aria-hidden="true">...</svg>
</button>
<!-- Linked by labelledby -->
<h2 id="section-title">Notifications</h2>
<ul aria-labelledby="section-title">...</ul>
<!-- Redundant: visible text is enough -->
<button>Save Changes</button> <!-- No aria-label needed -->
```
### 1.3 Keyboard Navigation
All interactive elements must be reachable and operable via keyboard (SC 2.1.1).
- Use native interactive elements (`<button>`, `<a href>`, `<input>`, `<select>`) which are keyboard-accessible by default.
- Custom widgets need `tabindex="0"` to enter tab order and keydown handlers for activation.
- Never use `tabindex` values greater than 0.
- Trap focus inside modals; return focus on close.
```js
// Focus trap for modal
dialog.addEventListener('keydown', (e) => {
if (e.key === 'Tab') {
const focusable = dialog.querySelectorAll(
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
);
const first = focusable[0];
const last = focusable[focusable.length - 1];
if (e.shiftKey && document.activeElement === first) {
e.preventDefault();
last.focus();
} else if (!e.shiftKey && document.activeElement === last) {
e.preventDefault();
first.focus();
}
}
});
```
### 1.4 Visible Focus Indicators
Never remove focus outlines without providing a visible replacement (SC 2.4.7, enhanced SC 2.4.11 (AA) and SC 2.4.12 (AAA) in WCAG 2.2).
```css
/* Good: custom focus indicator */
:focus-visible {
outline: 3px solid var(--focus-color, #4A90D9);
outline-offset: 2px;
}
/* Remove default only when :focus-visible is supported */
:focus:not(:focus-visible) {
outline: none;
}
/* Bad: removing all focus styles */
/* *:focus { outline: none; } */
```
WCAG 2.2 requires focus indicators to have a minimum area of the perimeter of the component times 2px, with 3:1 contrast against adjacent colors.From ehmo/platform-design-skills, MIT.
More from ehmo/platform-design-skills
- 0.546score
tvos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Apple TV.
SkillDFreshness: D★ 623Claude Code +9 - 0.546score
visionos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Apple Vision Pro.
SkillDFreshness: D★ 623Claude Code +9 - 0.546score
watchos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Apple Watch.
SkillDFreshness: D★ 623Claude Code +9 - 0.537score
android-design-guidelines
platform-design-skills
Material Design 3 and Android platform guidelines.
SkillDFreshness: D★ 623Claude Code +9 - 0.537score
macos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Mac.
SkillDFreshness: D★ 623Claude Code +9 - 0.537score
ios-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for iPhone.
SkillDFreshness: D★ 623Claude Code +9 - 0.537score
ipados-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for iPad.
SkillDFreshness: D★ 623Claude Code +9
Signals
- Stars
- 623
- Forks
- 53
- Open issues
- 0
- Last commit (this folder)
- Mar 19, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- Repository
- github.com/ehmo/platform-design-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from platform-design-skills
- 0.546score
tvos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Apple TV.
SkillDFreshness: D★ 623Claude Code +9 - 0.546score
visionos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Apple Vision Pro.
SkillDFreshness: D★ 623Claude Code +9 - 0.546score
watchos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Apple Watch.
SkillDFreshness: D★ 623Claude Code +9 - 0.537score
android-design-guidelines
platform-design-skills
Material Design 3 and Android platform guidelines.
SkillDFreshness: D★ 623Claude Code +9 - 0.537score
macos-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for Mac.
SkillDFreshness: D★ 623Claude Code +9 - 0.537score
ios-design-guidelines
platform-design-skills
Apple Human Interface Guidelines for iPhone.
SkillDFreshness: D★ 623Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get web-design-guidelines running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
web-design-guidelines skill. Agent Mart. https://agentmart.dev/skills/ehmo-web-design-guidelines (last updated 2026-10-24)