my/ui

Command Palette

Search for a command to run...

All components

Sunny Morning

gradients

A "Sunny Morning" 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-sunny-morning.json

Usage

import { GradientSunnyMorning } from "@/registry/gradients/sunny-morning";

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

Component source

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

/** "Sunny Morning" gradient. */
export const GradientSunnyMorning_CSS = "linear-gradient(120deg, #f6d365 0%, #fda085 100%)";

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

Source: WebGradients