Skip to main content

focusRing

Two-tone focus ring for every interactive element and the focused map. The inner ring is a shadow in the surface colour and the outer ring is an outline, so that forced-colors: active (which removes shadows but keeps outlines) still shows a ring, recoloured to Highlight.

This is a constant exported by @mapcairn/theme, checked against version 0.2.0.

Signature​

import { focusRing } from "@mapcairn/theme";

focusRing: {
readonly outline: `var(--${string}) solid var(--${string})`;
readonly outlineOffset: `var(--${string})`;
readonly boxShadow: `0 0 0 var(--${string}) var(--${string})`;
}

Source: packages/theme/src/tokens.css.ts:366