component / backgrounds
PREVIEW READYDot Background
A centered technical dot field for demos and empty states.
dot background
INSTALL / SOURCE REGISTRY
Add Dot 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/dot-background.jsonregistry/default/recipes/dot-background.tsx
import * as React from "react"
import { clsx as cn } from "clsx"
import "@/components/designos/designos.css"
export function DotBackground({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>) { return <div className={cn("dos-background dos-bg-dot", 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