Skip to content
Onycx-ui
ESC

Noise Overlay

Add a subtle, static film-grain texture with an SVG overlay.

Dependencies
No extra packages
Size
53 lines
Controls
6 controls

Installation

CLI · shadcn registry

npx shadcn@latest add https://ui.onycx.dev/r/noise-overlay.json

1 · Dependencies

None beyond React and Tailwind.

2 · Copy the source

components/onycx/noise-overlay.tsx

Requires React 19 and Tailwind CSS v4. Copy the source from the noise-overlay.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.

Props

PropTypeDefaultDescription
opacitynumber0.018Clamped to 0–1; the original is .018.
position"fixed" | "absolute""fixed"Viewport-wide, or confined to the nearest positioned parent.
frequency / octavesnumber0.85 / 3feTurbulence baseFrequency and numOctaves.
tilenumber240viewBox of the SVG tile. With no intrinsic size the tile is scaled to the layer like contain and repeats, so the grain scales with the viewport, as in the original.
blend"normal" | "overlay" | "soft-light" | "multiply" | "screen""normal"mix-blend-mode; the original uses none.
zIndexnumber60Stacking order of the layer.