# discord/focus-rings

A centralized system for displaying and stylizing focus indicators anywhere on a webpage.

Repository: https://github.com/discord/focus-rings
Canonical: https://ross.abutalabs.com/products/focus-rings
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2025-03-13T17:46:18+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 11, release rhythm 8, longevity 100
- inputs: {"age_days": 2093, "days_push": 538, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1133, forks 26 (observed 2026-08-28T04:03:42.921642+00:00)

## What it is
A React library from Discord that renders and styles focus indicators for keyboard navigation anywhere on a webpage. It provides FocusRing and FocusRingScope components to centrally manage consistent, well-positioned focus outlines.

## Use cases
- add accessible focus rings to buttons and links in react
- implement keyboard navigation focus indicators across a web app
- style consistent focus outlines like discord does
- render focus rings inside scrollable or absolutely positioned containers
- replace inconsistent css focus styles with a centralized system

## When to choose
- you are building a React app that needs polished, app-wide keyboard focus indicators
- native CSS focus styles are insufficient for your design or positioning needs
- you want a battle-tested solution used in production by Discord

## When to avoid
- your project does not use React
- you only need simple outline styling achievable with plain CSS :focus-visible
- you need focus management for non-DOM or canvas-based UIs

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, accessibility, frontend-framework
- domain: web-development, frontend, accessibility
- platform: cross-platform
- tags: react, focus-indicators, keyboard-navigation, typescript, npm-package, web-server, nodejs

## Member repositories
- discord/focus-rings (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:42.921642+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:37:25.626188+00:00, confidence not recorded.
  - readme: https://github.com/discord/focus-rings (fetched 2026-08-28T04:03:42.921642+00:00, sha 4f391994278b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
