Skip to content

MS-107 · Decorative primitives (Fog, Sparkle, Candle, Spotlight, Starfield) #520

Description

@adityapat24

Fog

Sparkles

Candles

Spotlight beams

Stars

Steps

  1. <Fog variant="cornerTopLeft"|"cornerBottomRight"|"sideLeft"|"sideRight"|"ribbon" animate>: wave SVGs with the cream #f7dfbc → lavender → transparent gradient; optional slow drift (CSS, 12–20s).
  2. <Sparkle size color twinkle delay> + <SparkleCluster> (the 3-star groups).
  3. <Candle height flame animate>: indigo candlestick, cream candle, flame flicker and a pulsing glow.
  4. <Spotlight angle length color origin fixture>: a translucent beam with soft edges, plus the optional black lamp head (hero bushes).
  5. <Starfield density seed>: a deterministic seeded star field in one SVG, with density 0–1 (the hero fades it by progress).
  6. Every component accepts className/style, forwards ref, and puts data-anim on the root. An animate={false} prop turns off all idle motion (SM uses it); reduced motion also turns it off.
  7. /dev/decor demo page.

Acceptance criteria

  • Each primitive matches its Figma source
  • Idle animations only use transform/opacity
  • animate={false} and reduced motion both give a fully static render
  • Starfield renders the same on server and client (no hydration mismatch)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions