Grain Gradient

Grain Gradient

Three pools of colour drift and breathe across the page under a layer of film grain, mixed into the theme's own background — works on paper and on night.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/grain-gradient.json

▸ Or install manually

  1. Copy the source from the Code tab above.
  2. Place it at components/mellow/grain-gradient.tsx
  3. Import and use.

API Reference

PropTypeDefaultDescription
colors[string, string, string]["236, 122, 92", "142, 108, 220", "62, 168, 162"]Three pool colours as "R, G, B" triplets.
speednumber1Drift speed multiplier.
blendnumber0.55How strongly the colours saturate the page, 0–1.
grainnumber0.05Film grain amount, 0–0.2.
childrenReact.ReactNodeContent rendered above the gradient.
classNamestringAdditional CSS classes.