Skip to main content
Clever Ops

Film Grain Stack

A filmic wrapper for React content, seeded token-inked grain cycled under 3Hz, a token-derived vignette, and ±1px gate weave; grain stays ≤0.12 opacity so text contrast survives. Tailwind-themed.

Preview & code

Loading Film Grain Stack preview

Installation

pnpm dlx shadcn@latest add @cleverui/film-grain-stack

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { FilmGrainStack } from '@/components/blocks/film-grain-stack'
Exampletsx
import { FilmGrainStack } from '@/components/blocks/film-grain-stack'

export default function FilmGrainStackDemo() {
  return (
    <FilmGrainStack intensity={0.7} className="bg-background">
      <section className="mx-auto flex min-h-[600px] max-w-4xl flex-col items-start justify-center px-6 py-24">
        <p className="font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground sm:text-xs">
          Northlight Post · Reel 07
        </p>
        <h2 className="mt-4 max-w-2xl text-4xl font-semibold tracking-tight text-balance text-foreground sm:text-6xl">
          Graded in camera. Grain added honestly.
        </h2>
        <p className="mt-6 max-w-xl text-sm leading-relaxed text-muted-foreground sm:text-base">
          Every frame passes a real gate, a breath of weave, a wash of silver halide, and a
          fall-off that keeps your eye on the middle of the frame. The interface underneath
          stays sharp, live, and fully readable.
        </p>
        <div className="mt-10 flex flex-wrap items-center gap-5">
          <a
            href="#suite"
            className="inline-flex h-11 items-center justify-center rounded-lg bg-primary px-6 text-sm font-medium text-primary-foreground transition-transform duration-150 hover:scale-[1.02] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-hidden"
          >
            Book the grading suite
          </a>
          <span className="font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground">
            35 mm scan · ±1 px weave
          </span>
        </div>
      </section>
    </FilmGrainStack>
  )
}

API reference

FilmGrainStack accepts the following props.

PropTypeDefaultDescription
intensitynumber0.60–1, scales grain alpha (hard-capped ≤0.12), vignette depth, and weave
children*React.ReactNode

…plus everything from React.HTMLAttributes<HTMLDivElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Film Grain Stack component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/film-grain-stack`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Film Grain Stack require?

Film Grain Stack has no npm dependencies beyond React and Tailwind CSS itself, so there is nothing extra to install or keep updated.

Can I theme Film Grain Stack to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services