# Cursor Atmosphere

> A feathered light follows the cursor, revealing a glowing texture. On touch screens it drifts on its own and follows a drag.

Category: Backgrounds · MotionKit Plus · Updated 2026-10-21 · Live demo: https://www.motionkitui.com/components/cursor-atmosphere

## When to use it

Interactive heroes and feature sections where the pointer explores a hidden texture, and it still works on phones.

## How it works

A soft wash of colour and a brighter copy of the dot or grid texture are both masked by a radial gradient at the light's position. The pointer steers the light through springs. Without a pointer, the light drifts along a slow figure-of-eight, and a finger steers it only while pressed, so scrolling never yanks it around.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/cursor-atmosphere` after adding their registry token from https://www.motionkitui.com/account.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `colors` | `[string, string, string]` | `["#5FAEB4", "#0E7C86", "#A56D5B"]` | Centre, middle and outer colours of the light. |
| `radius` | `number` | `280` | Radius of the light in pixels. |
| `intensity` | `number` | `0.8` | Strength of the light, 0 to 1. |
| `interactive` | `boolean` | `true` | Follow the pointer. Off, it drifts on its own. |
| `pattern` | `"dots" \| "grid" \| "none"` | `"dots"` | The texture the light reveals. |
| `children` | `ReactNode` |  | Your content, layered above. |

## Accessibility

- **Keyboard: Not applicable.** Decorative, nothing to focus. Without a pointer, the light drifts on its own.
- **Screen readers: Pass.** Every light layer is hidden from assistive tech; only your content is read.
- **Reduced motion: Pass.** With reduced motion on, the light rests in the middle and the drift stops.
- **Colour contrast: Pass.** The light stays dim behind content: even at full intensity, ivory text over the brightest point measures 8.9:1.
