Grain Veil
Grain veil texture: noise drawn by one live SVG turbulence filter across the whole box, so it never tiles. Separate light and dark opacities and a theme-following blend; also exports a dither filter for gradient banding.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Installation
pnpm dlx shadcn@latest add @01orbital/grain-veilnpx shadcn@latest add @01orbital/grain-veilyarn dlx shadcn@latest add @01orbital/grain-veilbunx --bun shadcn@latest add @01orbital/grain-veilUsage
import { SideGlow } from "@/components/glow/side-glow"
import { Subheading } from "@/components/subheading/subheading"
import { GrainVeil } from "@/components/texture/grain-veil"
const COPY = {
title: "Night notes",
body: "Written after sundown.",
} as const
export default function GrainVeilDemo() {
return (
<div className="flex min-h-full w-full flex-1 items-center justify-center p-6">
<article className="relative isolate flex aspect-4/3 w-full max-w-96 flex-col justify-end overflow-hidden rounded-3xl bg-[oklch(0.372_0.044_257.3)] p-8 text-scene-foreground">
<SideGlow />
<GrainVeil opacity={0.3} />
<div className="relative">
<Subheading>{COPY.title}</Subheading>
<p className="mt-3 text-sm/6">{COPY.body}</p>
</div>
</article>
</div>
)
}This example installs with everything it uses:
pnpm dlx shadcn@latest add @01orbital/grain-veil-demonpx shadcn@latest add @01orbital/grain-veil-demoyarn dlx shadcn@latest add @01orbital/grain-veil-demobunx --bun shadcn@latest add @01orbital/grain-veil-demoExamples
Blushgrain-veil-blush
Grain Veil Blush: an example of grain-veil.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
pnpm dlx shadcn@latest add @01orbital/grain-veil-blushnpx shadcn@latest add @01orbital/grain-veil-blushyarn dlx shadcn@latest add @01orbital/grain-veil-blushbunx --bun shadcn@latest add @01orbital/grain-veil-blushTealgrain-veil-teal
Grain Veil Teal: an example of grain-veil.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
pnpm dlx shadcn@latest add @01orbital/grain-veil-tealnpx shadcn@latest add @01orbital/grain-veil-tealyarn dlx shadcn@latest add @01orbital/grain-veil-tealbunx --bun shadcn@latest add @01orbital/grain-veil-tealAnatomy
Grain Veil is built from 2 parts. In the example they nest like this:
GrainVeilGrainVeil: A faint, even film grain over the whole box that never repeats. Full-bleed art layer: drop it inside arelativeparent; it sits behind content and lets clicks through.DitherFilter: Filter def only: render it, then putfilter: url(#id)on your own gradient layer to dither away the banding. The id you pass is the id you reference.
API reference
GrainVeil
A faint, even film grain over the whole box that never repeats. Full-bleed art layer: drop it inside a relative parent; it sits behind content and lets clicks through.
Prop
Type
It also accepts the HTML attributes of the element it renders.
DitherFilter
Filter def only: render it, then put filter: url(#id) on your own gradient layer to dither away the banding. The id you pass is the id you reference.
Prop
Type
Dependencies
npm: cn. The CLI installs it for you.
Used in blocks
7 blocks are built with Grain Veil:
Cardstock Notice CTA
Dark Glow Rig Pricing
Glow Rig Icon Logo Cloud
Glow Rig Testimonial
Glow Rig Testimonial with Logo
Glow Rig Wordmark Logo Cloud
Moon Sphere Feature Panel
Last updated on