Get Started
Components
- Components
- Accordion
- Alert Dialog
- Alert
- Aspect Ratio
- Avatar
- Backgrounds
- Badge
- Breadcrumb
- Button
- Calendar
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Dialog
- Diamond
- Drawer
- Dropdown Menu
- Hero
- Hover Card
- Input OTP
- Input
- Kbd
- Label
- Menubar
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll-area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Switch
- Table
- Tabs
- Textarea
- Toggle Group
- Toggle
- Tooltip
- Typography
Noise Background
Subtle texture adds depth without distraction
import { Noise } from "@/components/ui/backgrounds"
export function BackgroundsDemo() {
return (
<div className="bg-background relative h-64 w-full overflow-hidden rounded-lg border">
<Noise />
<div className="relative z-10 flex h-full items-center justify-center">
<div className="text-center">
<h3 className="text-2xl font-semibold">Noise Background</h3>
<p className="text-muted-foreground mt-2">
Subtle texture adds depth without distraction
</p>
</div>
</div>
</div>
)
}
Installation
bunx --bun shadcn@latest add https://ui.brodin.dev/r/backgrounds.json
Usage
import { Noise } from "@/components/ui/backgrounds"
<div className="relative">
<Noise />
<div className="relative">
{/* Your content here */}
</div>
</div>
Components
Noise
A subtle noise texture background that adds visual depth without being distracting.
Examples
Basic Noise
Content with Noise Background
The noise background provides a subtle texture that enhances the visual depth of your interface without overwhelming the content.
import { Noise } from "@/components/ui/backgrounds"
export function BackgroundsNoise() {
return (
<div className="bg-background relative h-48 w-full overflow-hidden rounded-lg border">
<Noise />
<div className="relative z-10 flex h-full flex-col justify-center p-6">
<div className="space-y-2">
<h4 className="text-lg font-medium">Content with Noise Background</h4>
<p className="text-muted-foreground text-sm">
The noise background provides a subtle texture that enhances the
visual depth of your interface without overwhelming the content.
</p>
<div className="mt-4 flex gap-2">
<div className="bg-primary h-2 w-12 rounded-full"></div>
<div className="bg-primary/60 h-2 w-8 rounded-full"></div>
<div className="bg-primary/30 h-2 w-6 rounded-full"></div>
</div>
</div>
</div>
</div>
)
}