component / backgrounds
PREVIEW READYNoise Background
A subtle embedded grain layer that avoids external image assets.
noise background
INSTALL / SOURCE REGISTRY
Add Noise Background to your project
The command adds the component source and its DesignOS base dependency.
$
pnpm dlx shadcn@latest add https://designos.h4rithd.com/r/noise-background.jsonregistry/default/recipes/noise-background.tsx
import * as React from "react"
import { clsx as cn } from "clsx"
import "@/components/designos/designos.css"
export function NoiseBackground({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>) { return <div className={cn("dos-background dos-bg-noise", className)} {...props}>{children}</div> }
Component contract
- Source-owned after installation
- Dark and light theme variables
- Keyboard and visible-focus behavior
- Reduced-motion fallback
- Responsive from 320px upward
- IBM Plex Sans + JetBrains Mono hierarchy