npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@breaking/datocms-plugin-gradient-picker

v1.0.4

Published

A powerful gradient picker plugin for creating multi-color CSS gradients with full control over colors, stops, and angles. Perfect for creating beautiful backgrounds, hero sections, and visual effects. Outputs clean CSS gradient strings ready to use in yo

Readme

Gradient Picker

A powerful DatoCMS plugin for creating multi-color CSS gradients with full control over colors, stops, and angles. Perfect for creating beautiful backgrounds, hero sections, and visual effects.

Gradient Picker Cover

Features

  • Multi-color gradients: Add unlimited color stops to create complex, beautiful gradients
  • Full angle control: Adjust gradient direction with precise 360° control
  • Linear and radial gradients: Support for both gradient types with multiple patterns
  • Live preview: See your gradient in real-time as you create it
  • CSS-ready output: Generates clean, optimized CSS gradient strings
  • Intuitive interface: User-friendly color picker with advanced controls
  • Highly configurable: Customize which controls are visible to your editors

Installation

Install the plugin from the DatoCMS Plugin Marketplace.

Usage

Setting up the field

  1. Add the plugin to your DatoCMS project
  2. In your model, add a new field (String or Text type)
  3. Under "Presentation", select "Gradient Picker" as the field addon
  4. Save your changes

Creating gradients

The plugin integrates seamlessly with DatoCMS fields, adding a visual gradient preview below the native text input:

Field Preview

Click on the gradient preview to open the full-featured color picker where you can:

  • Add and remove color stops
  • Adjust colors with precision controls
  • Change gradient angles and types
  • Use preset gradients for quick styling
  • Switch between linear and radial modes

Gradients are stored as CSS-ready strings like:

linear-gradient(90deg, rgb(255,0,0) 0%, rgb(0,0,255) 100%)

Configuration

Customize the picker interface to match your needs by configuring which controls are visible to your editors:

Available configuration options:

  • Hide/show color input fields
  • Hide/show opacity controls
  • Hide/show preset gradients
  • Hide/show advanced sliders
  • Hide/show gradient type selector
  • Hide/show angle controls
  • And many more options...

Using gradients in your code

The gradient is stored as a CSS string, making it effortless to use in your frontend:

// In React/JSX
<div style={{ background: record.gradientField }}>
  Your content here
</div>

// In CSS-in-JS
const styles = {
  hero: {
    background: record.gradientField
  }
}

// In Next.js
<section style={{ background: data.hero.gradient }}>
  <h1>Beautiful gradient background</h1>
</section>

Development

This plugin uses pnpm v10 as the package manager.

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Build for production
pnpm build

Credits

Made by Breaking Web

License

MIT