Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#UI

Advanced AI Prompt for Theme-Aware Inversion Cursor

Customize the variables below to instantly engineer your prompt.

Required Variables

theme-aware-inversion-cursor.txt
Act as a Design Systems Engineer. Create a highly intelligent custom cursor architecture that programmatically polls the DOM to detect the active global site theme (specifically listening for the [DARK_MODE_SELECTOR] versus the [LIGHT_MODE_SELECTOR] on the `<body>` or `<html>` tag). Utilizing a `MutationObserver`, the JavaScript must instantly intercept theme toggles and orchestrate a flawless, interpolated visual shift of the cursor's hex colors, border thickness, and drop-shadow glow over a strict [TRANSITION_TIME] duration. You must mathematically prove that the hardcoded CSS variables for both the Light and Dark cursor states strictly adhere to WCAG 2.1 AAA contrast guidelines (7:1 ratio) against their respective backgrounds. Provide the complete ES6 Class-based or React Hook implementation to ensure clean, isolated state management that doesn't pollute the global scope.

Example Text Output

"A theme-reactive script that updates the cursor's CSS variables whenever the site's 'dark-mode' class is toggled."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Theme-Aware Inversion Cursor" prompt used for?

A theme-reactive script that updates the cursor's CSS variables whenever the site's 'dark-mode' class is toggled.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.