Skip to content

    Browse components

    Background Paths

    Two layered ribbons of flowing SVG curves with light running along their strokes. Pure SVG + CSS.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/background-paths

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/background-paths.json

    Usage

    import { BackgroundPaths } from "@/components/ui/background-paths";
    
    <div className="relative h-96">
      <BackgroundPaths color="#a78bfa" accent="#22d3ee" />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#a78bfa"Color at the start of each curve.
    accentstring"#22d3ee"Color at the end of each curve.
    countnumber32Curves per layer.
    speednumber1Animation speed multiplier.
    strokeWidthnumber1Stroke width multiplier.
    classNamestring—Extra classes for the root element.