my/ui

Command Palette

Search for a command to run...

All components

Deep Blue

gradients

A "Deep Blue" CSS gradient.

responsive · 600px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/gradient-deep-blue.json

Usage

import { GradientDeepBlue } from "@/registry/gradients/deep-blue";

export default function Demo() {
  return <GradientDeepBlue />;
}

Component source

import * as React from "react";
import { cn } from "@/lib/utils";

/** "Deep Blue" gradient. */
export const GradientDeepBlue_CSS = "linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%)";

export function GradientDeepBlue({ className, style, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      className={cn("h-40 w-full rounded-xl", className)}
      style={{ backgroundImage: "linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%)", ...style }}
      {...props}
    />
  );
}

Source: WebGradients