Skip to content
StackD
Snow, the StackD component

Seasonal · StackD Pro

Snow

Snow that falls over the page and settles on your interface: mark any element with data-snow and a soft drift builds on its top edge, following its corners; move it fast and the snow slides off.

Get StackD Pro · €59/yearStackD Snow for Mac Pro

Code and Figma for every component, new ones almost every day.

See it in the store ›

Details

Category
Seasonal
Plan
StackD Pro
Code
React + Tailwind, TypeScript · 324 lines
Files
SnowLayer.tsx
Needs
React and Tailwind only
Agents
MCP server and shadcn registry

About

Snow that falls over your page and settles on your interface. Mark any element with data-snow and the flakes that land on its top edge build a soft drift there, following its rounded corners. Drag or scroll it and the drift goes with it; move it fast and the snow slides off and falls. The bottom of the page collects snow too.

One canvas over the page with pointer events off, so it never gets in the way. Near flakes are bigger and land; far ones are small and fall behind everything. React + Tailwind, no other libraries. Respects reduced motion.

Install

Once: add the StackD registry to components.json, with the licence key from your receipt in STACKD_LICENSE_KEY (in .env.local):

"registries": {
  "@stackd": {
    "url": "https://www.stackd.codes/r/{name}.json",
    "headers": { "X-License-Key": "${STACKD_LICENSE_KEY}" }
  }
}

With the shadcn CLI:

npx shadcn@latest add @stackd/snow-layer

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 Snow component to this project. Use the StackD MCP server: call get_component with { "name": "snow-layer" }, 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. It is a paid component: if the server says it needs a licence, tell me where to buy it.

Use

  1. Copy SnowLayer.tsx into your project (for example components/).
  2. Put it once in your layout, and add data-snow to what should collect snow:
import { SnowLayer } from './components/SnowLayer'

<SnowLayer />
<div data-snow className="rounded-2xl bg-white p-6">A card</div>

Only in one box (a card, a demo) instead of the whole page:

<div className="relative h-80 overflow-hidden">
  <SnowLayer contained />
  <div data-snow>…</div>
</div>

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

Options

PropDefaultWhat it does
amount180How many flakes fall at once
wind0.15-1 (to the left) to 1
depth18Tallest a drift gets, px
build2How fast drifts build: 1 gentle, 3 in seconds
groundtrueCollect snow on the bottom
color'#FFFFFF'Flake colour
fallingtruefalse: no new flakes, the snow lying stays
pausedfalseEverything stops
clear0Change this number to sweep all the snow off
containedfalseSnow only inside the parent element

Licence

You can use it in personal and commercial projects. Don't resell or share the component on its own.

Made by StackD · stackd.codes