JSPM

mindgradient

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q61536F
  • License MIT

A modern, customizable, and easy-to-use CSS gradient library for creating beautiful, animated gradients.

Package Exports

  • mindgradient
  • mindgradient/mindgradient.css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mindgradient) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MindGradient CSS

A modern, customizable, and easy-to-use CSS gradient library for creating beautiful, animated gradients.

👉 Live Demo & Generator

MindGradient is a lightweight, plug-and-play CSS library that allows you to add stunning, animated gradients to any HTML element with just a single class. It's built with customization in mind, using modern CSS variables to make theming a breeze.


âœĻ Features

  • ðŸŽĻ 16+ Beautiful Presets – A curated collection of modern, elegant gradients.
  • âœĻ Subtle Animations – An optional animation class to bring your gradients to life.
  • 🛠 Fully Customizable – Easily change gradient colors using CSS variables.
  • ðŸŠķ Feather-light – Tiny footprint with zero dependencies.
  • ⚙ Interactive Generator – Visually create your own gradients and get the code instantly.

ðŸ“Ķ Installation

CDN

The quickest way is to link the stylesheet directly in your HTML <head> tag:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iqbalmind/mindgradient@latest/mindgradient.css">

NPM

Install the package using your favorite package manager:

npm install mindgradient

Then, import the CSS file into your main stylesheet or JavaScript file:

/* In your main CSS file */
@import 'mindgradient/mindgradient.css';

🚀 Usage

Add the desired gradient class (e.g., .grd-sunset) to any element.

(Optional) Add the .grd-animated class to enable subtle animation.

<!-- A simple static gradient -->
<div class="grd-sunset"></div>

<!-- An animated gradient -->
<div class="grd-ocean grd-animated"></div>

ðŸŽĻ Customization

Override the default colors of any gradient by redefining its CSS variables in your own stylesheet. Make sure your custom rules are loaded after mindgradient.css.

/* your-styles.css */
.grd-sunset {
  --grd-color-1: #0052D4; /* A new starting blue */
  --grd-color-2: #9CECFB; /* A new ending cyan */
}

ðŸĪ Contributing

Contributions are welcome! If you have ideas for new gradients, features, or improvements, please open an issue or submit a pull request on the GitHub repository

Changelog

See CHANGELOG.md for details.

📜 License

This project is licensed under the MIT License – see the LICENSE file for details.

Made with âĪ by IqbalMind