my/ui

Command Palette

Search for a command to run...

All components

New Life

gradients

A "New Life" 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-new-life.json

Usage

import { GradientNewLife } from "@/registry/gradients/new-life";

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

Component source

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

/** "New Life" gradient. */
export const GradientNewLife_CSS = "linear-gradient(0deg, #43e97b 0%, #38f9d7 100%)";

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

Source: WebGradients