Blobity cursor

From shiqkuangsan/oh-my-daily-skills · View interactive version

Blobity cursor is an AI agent skill from the GitHub repository shiqkuangsan/oh-my-daily-skills. Use when adding or repairing Blobity cursor effects in HTML, React, Vue, or Astro, especially for theme-aware colors, tooltip mode, touch-device behavior, and SPA lifecycle cleanup.

How to use this skill

Skill file

Blobity Cursor

Integrate Blobity as a desktop-only progressive enhancement. The value of this skill is the library-specific lifecycle, blend-mode math, and framework adapters; ordinary UI implementation stays with the agent.

Resource Routing

Minimal Contract

import Blobity from "blobity";

const isTouch = "ontouchstart" in window || navigator.maxTouchPoints > 0;
if (!isTouch) {
  const blobity = new Blobity({
    licenseKey: "opensource",
    invert: true,
    color: "#ffffff",
    dotColor: "#10b981",
    radius: 6,
    magnetic: false,
    zIndex: 50,
    focusableElements: "a, button, [data-blobity], [data-blobity-tooltip]",
  });
}

Install from npm in bundled projects. For a no-build static page, use the pinned ESM import https://esm.sh/blobity@0.2.3; do not use an unpinned latest URL.

Hide the native cursor only after Blobity initializes successfully. Scope cursor: none to a class such as body.blobity-active, and remove the class during cleanup.

Theme Rule

With invert: true, output is approximately abs(page - canvas):

Do not guess custom light-theme colors when visual fidelity matters; use references/color-math.md.

Interaction and Lifecycle

Verification

Verify on desktop and touch-sized viewports:

Boundaries

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.