Start

Accessibility and where not to use

What the library does to stay out of the way, and where a custom cursor doesn't belong.

A custom cursor is a progressive enhancement, not a fit for every page. Test the fallback in your own integration: CSS cascade, browser support and script failures can affect the result.

Where not to use it

Keep custom cursors out of:

  • checkout, cart and payment;
  • sign-in, sign-up and other form-heavy flows;
  • dashboards and admin tools;
  • health, government and education services;
  • anywhere the cursor itself is part of a task: drawing tools, maps, editors, games.

If a site mixes these with marketing pages, scope the cursor to the marketing pages, or opt regions out with data-cursor="native". The agent prompts and skill ask about the site type before installing for exactly this reason.

What the library does for you

Both sets

  • Targets normal and hover cursors while leaving text inputs and textareas, and disabled controls, out of the hover rules. Test your site’s own cursor rules: CSS specificity and inheritance affect the result.
  • Requires a fine, hover-capable primary pointer, and switches off for forced colours and increased contrast. Static CSS specifically requires prefers-contrast: no-preference.
  • Built-in colour variants validate at least 3:1 contrast between fill and keyline. This does not guarantee contrast against every page background or for custom brand artwork.

Animated set

  • The cursor element is aria-hidden, pointer-events: none and never focusable.
  • Hides while the visitor navigates with the keyboard; never touches focus outlines.
  • Under “reduce motion” it follows the pointer exactly, with no easing, trails or stretch.
  • Auto-yield: the runtime yields to computed cursor values other than auto, default or pointer, except none (which it cannot distinguish from its own cursor hiding).
  • Frame-time monitor: if the page gets slow, it drops smoothing first, then hands back to the native cursor.
  • Attempts to restore the native cursor on runtime errors and when the pointer leaves the window. It yields over iframe elements; when running inside an iframe it switches to enhance mode rather than hiding the native cursor.

Known limits

  • Plain text can lose the I-beam (both sets). Ordinary paragraphs and contenteditable areas may show the custom normal cursor instead, depending on the browser and site styles.
  • Site cursor rules can conflict. Static hover rules can override site rules, and Animated replace mode uses !important when hiding the cursor on an individual element. Test important cursor states and opt regions out where needed.
  • OS pointer size and colour (Animated, replace mode): the web can’t read them, so a visitor’s larger or recoloured pointer doesn’t carry over. Static cursors are images the browser draws, and in tests they scaled with the macOS pointer size; Windows is not yet verified (see Browser support).

What you should do

  • Never convey information only through the cursor. A “View” label must match something visible on the page.
  • Offer a “Use default cursor” toggle.
  • Test with the keyboard only, with a screen magnifier, at 200% zoom, and with a large OS pointer.