PixelPilot uiux-custom-cursor.instructions.md

Design instructions for custom mouse cursors, magnetic buttons, and pointer effects on websites.

In plain words
What is it for?
Adding, choosing, and safely implementing cursor styles for luxury, expressive, editorial, or minimalist interfaces.
Why use it?
They help apply cursor effects only where they fit the visual style and avoid accessibility or usability problems on touch devices and for reduced-motion users.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dev-lou/pixelpilot/uiux-custom-cursor
Clone the repo
git clone --depth 1 https://github.com/dev-lou/PixelPilot

Made for: GitHub Copilot.

Per session 3,525 This file is loaded in full into every session.
When invoked 3,525 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.03525 $0.03525
Opus 5 $0.01762 $0.01762
Sonnet 5 $0.00705 $0.00705
Haiku 4.5 $0.00352 $0.00352

Measured 2d ago against content hash 3fc19747689d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

PixelPilot uiux-custom-cursor.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vscode/.github/instructions/uiux-custom-cursor.instructions.md · 416 lines

How it starts

The opening of the file, as written. The whole thing — 416 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI/UX Custom Cursor 2026

Custom cursors, magnetic buttons, and cursor-based interactions for Luxury and Expressive design languages. Polish that makes a site feel hand-crafted. Never use on Technical or Warm systems — cursor tricks frustrate data-heavy UIs.


WHEN TO USE CUSTOM CURSORS

Language Custom cursor? Type
Luxury ✅ Yes Minimal dot + border ring
Expressive ✅ Yes Vivid blob, color-shift, large
Editorial Optional Subtle crosshair or line cursor
Minimalist Optional Tiny dot only, very subtle
Premium Modern ❌ No Functional — don't distract
Warm & Human ❌ No Standard cursor = approachable
Technical ❌ No Standard cursor = productivity

Rules:

  • Always preserve the default cursor for interactive elements (links, buttons) — override back to pointer
  • Never on mobile/touch — @media (pointer: fine) guards everything
  • Never when prefers-reduced-motion: reduce — hide custom cursor, show default
  • Custom cursor hides the native cursor with cursor: none on <body>

VARIANT 1 — LUXURY (Dot + Ring)

Tiny filled dot that moves exactly. Larger ring that follows with lag. Minimal, elegant, barely noticeable — that's the point.

<!-- Place directly after <body> opens -->
<div id="cursor-dot"  class="cursor-dot"  aria-hidden="true"></div>
<div id="cursor-ring" class="cursor-ring" aria-hidden="true"></div>
@media (pointer: fine) {
  /* Hide native cursor everywhere */
  * { cursor: none !important; }

  /* Restore pointer cursor on interactive elements
     (still cursor: none — but cursor-ring handles the visual) */
  a, button, [role="button"], label, select,
  input, textarea, .clickable { cursor: none !important; }

  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 99999;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, background 0.2s, width 0.2s, height 0.2s;
    will-change: transform;
  }

  .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 99998;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--text);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: transform 0.08s, width 0.3s var(--ease-luxury),
                height 0.3s var(--ease-luxury), opacity 0.3s, border-color 0.3s;
    will-change: transform;
  }

  /* Hover states — on interactive elements */
  body.cursor-hover .cursor-dot {
    width: 0; height: 0; background: transparent;
  }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px; opacity: 0.25;
    background: color-mix(in srgb, var(--text) 5%, transparent);
  }

  /* Click state */
  body.cursor-click .cursor-dot  { transform: translate(-50%,-50%) scale(0.5); }
  body.cursor-click .cursor-ring { transform: translate(-50%,-50%) scale(0.8); }

  /* Inverted on dark backgrounds (if hero image is dark) */
  body.cursor-inverted .cursor-dot  { background: white; }
  body.cursor-inverted .cursor-ring { border-color: white; }
}

/* Disable on touch + reduced motion */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
  * { cursor: auto !important; }
}

Read the full file on GitHub · 416 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 416 lines · 3,525 tokens per session scan A 3fc19747689d

Subscribe to this mod's changes

PixelPilot uiux-custom-cursor.instructions.md is an instructions file published in the GitHub repository dev-lou/PixelPilot (2 stars, last pushed 4mo ago), licensed MIT. It adds 3,525 tokens to every session, about $0.0176 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.