---
name: web-design-guidelines
description: "Routes web UI work to maintained sources: Chrome modern-web-guidance for new HTML/CSS/JS, web-quality-skills for a11y, performance and SEO audits, and installed design skills. Adds UI copy rules and a file:line review format."
argument-hint: <file-or-pattern>
user-invocable: true
title: web-design-guidelines
canonical_url: https://skilld.dev/gh/fubits1/svelte-skills/web-design-guidelines
last_updated: 2026-10-27T03:01:58.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install fubits1/svelte-skills/web-design-guidelines`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/web-design-guidelines`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/fubits1/svelte-skills/web-design-guidelines) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/web-design-guidelines`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/web-design-guidelines --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/web-design-guidelines --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Web design guidelines

Pick the source that matches the task. The sources are maintained upstream: fetch or run them instead of answering from memory. Skip a skill that isn't installed; installing it is the user's call.

## Sources

| Task | Source | How |
| --- | --- | --- |
| Building a feature with HTML, CSS or client-side JS | GoogleChrome modern-web-guidance | Run `pnpx modern-web-guidance@latest search "<what you build>"`, then `pnpx modern-web-guidance@latest retrieve "<id>"`. Apply a guide's fallbacks for features that aren't Baseline Widely available, unless the project's CLAUDE.md sets another Baseline target |
| Accessibility, performance, Core Web Vitals, SEO or best-practice audit | addyosmani/web-quality-skills | Fetch `https://raw.githubusercontent.com/addyosmani/web-quality-skills/main/skills/<name>/SKILL.md`, with `<name>` one of `accessibility`, `performance`, `core-web-vitals`, `seo`, `best-practices`, or `web-quality-audit` for all of them |
| Visual direction for a new page or component | `frontend-design:frontend-design` | Invoke the skill |
| UX rules, palettes, font pairings, design tokens | `ui-ux-pro-max:ui-ux-pro-max`, `ui-ux-pro-max:design-system`, `ui-ux-pro-max:ui-styling` | Invoke the skill |
| Checking a running page | `chrome-devtools-mcp:a11y-debugging`, `chrome-devtools-mcp:debug-optimize-lcp` | Invoke the skill |
| Markup, CSS and locale rules the sources miss | `frontend:code-style` ("Markup and Locale"), `frontend:code-style-css` ("Rules for styles you write") | Apply them while writing; check them in a review |
| Svelte components | Svelte's `a11y_*` compiler warnings, `svelte-5:code-style-svelte`, `svelte:svelte-core-bestpractices` | `svelte-check` and the Svelte autofixer report the warnings. Treat each as a finding; suppress one only as `frontend:editing` allows |

## Precedence

- WCAG 2.2 AA is the floor: text contrast at least 4.5:1 (3:1 for large text and UI components) and targets at least 24x24 CSS px. Before you flag a smaller target, check the exceptions in WCAG 2.5.8: enough spacing, an equivalent control, a target inline in text, a size the browser sets, or an essential presentation. A stricter value from a design skill, such as 44x44 px touch targets, is a target on top of that floor.
- The project's own rules (CLAUDE.md, this marketplace's skills) override the generic sources.

## Interactive states

Buttons and links show a visible change on hover, active and focus. The cues that mark focus or selection meet 3:1 against adjacent colors (WCAG 1.4.11), and no state lowers the control's own contrast. A hover cue on its own doesn't need 3:1.

## Copy and typography

- Write `…`, not `...`, also in loading states (`Loading…`, `Saving…`). Placeholders end with `…` and show an example.
- Use curly quotes, not straight quotes.
- Put a non-breaking space in units, shortcuts and brand names: `10&nbsp;MB`, `⌘&nbsp;K`.
- Use Title Case for headings and buttons (Chicago style).
- Use numerals for counts: "8 deployments", not "eight".
- Label buttons with the action ("Save API Key", not "Continue"). Error messages say how to fix the problem.
- Write in active voice and second person. Use `&` instead of "and" only where space is short.

## Review output

To review files (`$ARGUMENTS`; ask which files if none are given), group findings by file in clickable `file:line` form, one terse finding per line, and write `✓ pass` for a clean file. State the issue and location; explain only when the fix isn't obvious.

This skill, `frontend:code-style` and `frontend:code-style-css` adapt several rules from Vercel's [web-design-guidelines](https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines) skill and its [Web Interface Guidelines](https://github.com/vercel-labs/web-interface-guidelines) (MIT).
