Skip to content

About

Raycast extension for creating, previewing, randomising, saving and exporting gradients.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Gradient Generator

Create, preview and save gradients in Raycast. Copy CSS, Tailwind or SwiftUI code, or export a PNG or SVG file. Everything runs locally.

Install from the Raycast Store · macOS

A conic gradient preview in Raycast, with color values and copy actions

Commands

Command What it does
Create Gradient Build a linear, radial or conic gradient with 2–10 hex colors.
Random Gradient Generate a gradient with two or three random colors.
Saved Gradients Search, preview, rename, copy or delete saved gradients.

Make your first gradient

  1. Open Create Gradient and choose Linear, Radial or Conic.
  2. Enter your colors as #RGB or #RRGGBB. For a linear gradient, set the angle too.
  3. Add an optional label and choose Preview Gradient.
  4. Open Actions to copy code, save the gradient or export a file.

For example, try #FF5733 and #33C1FF with a linear angle of 90 for a left-to-right blend. Color stops are evenly spaced; custom positions and per-stop transparency are not supported.

Copy and export

  • CSS: linear, radial and conic gradients using sRGB interpolation. Requires a browser that supports CSS gradient color-space syntax.
  • Tailwind: a bg-[…] class, or raw CSS if selected in extension settings.
  • SwiftUI: a complete GeneratedGradient view for macOS 12+ and iOS 15+.
  • PNG: an opaque image at your chosen size, with 1× or 2× pixel density.
  • SVG: linear and radial gradients. For conic gradients, use PNG or CSS.

Exports default to ~/Downloads; change the PNG and SVG folders in extension settings. The folder must exist. PNG output is limited to 8,192 pixels per side and 16,777,216 total pixels, including pixel density. Existing files require confirmation before replacement.

See saving and export details for labels, file limits and library recovery. Saved gradients stay in local Raycast storage; the extension does not provide cloud sync.

Development

Use macOS, Raycast, npm and Node.js 26.12.1 or newer (.nvmrc selects 26.12.1):

npm ci --ignore-scripts
npm run check
npm run dev

See development notes for source history, additional checks and the existing dependency advisory. The changelog, roadmap and release checklist track releases and future work.

Bug reports and feature requests and pull requests are welcome.

MIT licensed.

About

Raycast extension for creating, previewing, randomising, saving and exporting gradients.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages