Rishi

Colorshot Gradient Picker

Component

About

Color and gradient picker for React. Solid, linear, radial and conic gradients, OKLCH, eyedropper and swatch groups. Plain CSS strings in and out. MIT, from Colorshot by Orshot.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Colorshot Gradient Picker to your project and fits it to your theme.

Code

How Colorshot Gradient Picker is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { useState } from "react";
import GradientPicker from "@/components/ui/colorshot-gradient-picker";

export default function ConicGradientDemo() {
  const [fill, setFill] = useState(
    "conic-gradient(from 90deg, #F97316, #EC4899, #8B5CF6, #F97316)"
  );

  return (
    <div className="flex flex-col items-center gap-4 p-6">
      <div
        className="h-24 w-24 rounded-full border"
        style={{ background: fill }}
      />
      <GradientPicker value={fill} onChange={setFill} modes={["conic"]} />
    </div>
  );
}

Dependencies