Skip to content
DesignOSby h4rithd
Components/Ambient Background
component / backgrounds

Ambient Background

A restrained moving dual-radial atmosphere for large surfaces.

PREVIEW READY
LIVE PREVIEWDARK / LIGHT COMPATIBLE
ambient background
INSTALL / SOURCE REGISTRY

Add Ambient 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/ambient-background.json
registry/default/recipes/ambient-background.tsx
import * as React from "react"
import { clsx as cn } from "clsx"
import "@/components/designos/designos.css"

/** A restrained moving gradient made for large hero and empty-state surfaces. */
export function AmbientBackground({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>) { return <div className={cn("dos-background dos-bg-ambient", 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