Skip to content
StackD
Chrome word, the StackD component

Text · Free

Chrome word

A shape in flat grey that melts into chrome or a heat map under the cursor, in hard bands from rim to core; the Bot, a word or three more shapes.

Free on Gumroad: the download arrives in your inbox.

Details

Category
Text
Plan
Free
Code
React + Tailwind, TypeScript · 361 lines
Files
ChromeWord.tsx
Needs
React and Tailwind only
Agents
MCP server and shadcn registry

About

A shape in flat, dull grey, until the cursor comes. Around the cursor the shape is painted in hard bands from the rim of every stroke to its core: polished chrome, or a colour map like a heat camera. Right under the pointer the cores open into rings and the strokes thin, like something melting. Leave and it fades back to grey. Press it for the next shape: the Bot (it watches you and blinks), your word, an asterisk, a flower or waves.

One canvas, no other libraries, no WebGL. It only draws while something moves.

Install

With the shadcn CLI:

npx shadcn@latest add https://www.stackd.codes/r/chrome-word.json

Or let your agent add it through the StackD MCP server:

claude mcp add --transport http stackd https://www.stackd.codes/mcp

Prompt for your agent

Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.

Add the StackD Chrome word component to this project. Use the StackD MCP server: call get_component with { "name": "chrome-word" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles.

Use

  1. Copy ChromeWord.tsx into your project (for example components/ChromeWord.tsx).
  2. Use it:
import { ChromeWord } from './components/ChromeWord'

<ChromeWord shape="hexbot" theme="dark" />
<ChromeWord text="Melt" material="neon" />
<ChromeWord shape="flower" material="fire" cycle={false} />

In Next.js the file already starts with 'use client'. In other React setups that line does nothing.

Options

PropDefaultWhat it does
text'FLUX'The word, for shape 'word'. Short, bold words look best
shape'word''word', 'hexbot', 'asterisk', 'flower' or 'waves'. Pressing steps to the next
material'metal'The paint: 'metal' (chrome), or a colour map: 'neon', 'fire', 'sea', 'pop'
pull0.6How much the cursor melts the shape, and how wide the paint shows, 0 to 1
theme'light''light' on a white card, 'dark' on ink
width, height320, 180Size in px. The shape is drawn for 320 × 180 and scaled to fit
cycletruePress to change shape
glowThe paint at a fixed point, { x, y } from 0 to 1, with no cursor: for still images or to show the paint at rest
onShapeChangeCalled when a press changes the shape
classNameExtra classes

The paints are exported as PALETTES: each is a list of stops from the rim (0) to the core (1), in RGBA. Add your own by adding a key and its stops.

Works with

Mouse and touch (a finger paints, a quick tap changes shape). With reduced motion on, nothing eases: the paint follows the pointer straight away.

How it works

The shape is drawn once and blurred into a field of how deep each pixel sits inside a stroke. The cursor cools that field toward its middle, so the cores open into rings, and every pixel's value is looked up in a table of 256 colours. The colour maps are laid down in hard bands: each colour holds, then turns sharply into the next.