my/ui

Command Palette

Search for a command to run...

All components

Spring Warmth

gradients

A "Spring Warmth" 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-spring-warmth.json

Usage

import { GradientSpringWarmth } from "@/registry/gradients/spring-warmth";

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

Component source

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

/** "Spring Warmth" gradient. */
export const GradientSpringWarmth_CSS = "linear-gradient(0deg, #fad0c4 0%, #fad0c4 1%, #ffd1ff 100%)";

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

Source: WebGradients