dragoon0x/everything-design-taste

focus-state-design

Keyboard focus indicator design, focus management, and accessible focus patterns.

First seen Jul 18, 2026

Installation

$ npx skills add dragoon0x/everything-design-taste --skill focus-state-design

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from dragoon0x/everything-design-taste · top by installs.

npx skills add dragoon0x/everything-design-taste

Browse all from dragoon0x/everything-design-taste

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 11
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,169 B
  • docs SUMMARY.md 107 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Focus State Design

Focus Ring Design

Requirements

  • Visible on all backgrounds (light and dark).
  • Minimum 3:1 contrast ratio against surrounding area.
  • Must not rely on color alone (use outline, not just color change).

Recommended Style

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

/* Remove default only when providing custom */
:focus:not(:focus-visible) {
  outline: none;
}

Focus Management

  • Modal opens: focus moves to first interactive element inside.
  • Modal closes: focus returns to the element that opened it.
  • Dynamic content: focus moves to new content (toast, expanded section).
  • Page navigation: focus moves to main content area.

Anti-Patterns

  • outline: none without replacement (accessibility violation).
  • Focus rings that are invisible on some backgrounds.
  • Focus order that doesn't match visual order.
  • No focus management in dynamic content (modals, drawers).