Holding
Climate
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardClimate(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-climateAbout this component
A thermostat with one ring of sixty ticks that you turn by dragging round it or with the arrow keys. The lit ticks ramp from cool blue through mint to amber, the glow takes the target's colour, and a small 3D mark at the foot says whether the room is holding (a soft leaf), heating (a glossy flame) or cooling (a frosted crystal).
Triggers
- Card
- Glow
- Gradient
- Spring
- State change
- Mouse tracking
- Neumorphic
- 3D
- Icon swap
Techniques
- @property
- CSS variables
- CSS transition
- Event position
- Radial gradient
- Keyframes
- Spring
- SVG
- SVG filter
- Filter
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The dial is role=slider with aria-valuemin, max, now and a spoken value; Arrow keys step 0.5, Page Up/Down step 2, Home and End jump to the ends. A visible focus ring in the target colour circles the dial. A polite live region says Heating, Cooling or Holding.
Use it in anything you build, commercial and client work included. Licence